Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean print in auto_trainer #9357

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions paddlenlp/trainer/auto_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ def _wrap_for_auto(self, model, train_dataloader):
if self.enable_autocast_context_manager:
unified_strategy.amp.custom_black_list.extend(["reduce_sum", "c_softmax_with_cross_entropy"])
if self.args.fp16_opt_level == "O2":
print("custom_white_list", unified_strategy.amp.custom_white_list, flush=1)
unified_strategy.amp.custom_white_list.extend(["lookup_table", "lookup_table_v2"])
print("custom_white_list", unified_strategy.amp.custom_white_list, flush=1)

# dist.to_static() obtains the input spec information through next(dataloader), but this has side effects
# on the passed-in dataloader, altering the state of the sampler of the dataloader. In some cases, once
Expand Down
Loading