Open alpertunga-bile opened 1 month ago
cc @muellerzr WDYT?
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Hey @alpertunga-bile, is there any reason why you want to set report_to
after initializing default_train_args
?
Hello @SunMarc, I am training 5 models with a single script in Google Colab, so I need to change the values according to the selected model. Since there are multiple condition checks and the checks affect multiple values; I am assigning them after the init ctor.
Before the updates I had no problem but later it tries to use the wandb
package since it is pre-installed in Google Colab. I followed the documentation and since I am following this assignment pattern I tried assigning the value none
to the return_to
variable after the init ctor then this issue occurred.
I think the solution will provide flexibility and protection from the side effect of the constructor to the user who follows the documentation and uses this assignment pattern. However it seems that this is a rare issue and assignment pattern so the solution will not have any impact on the user experience.
System Info
transformers
version: 4.47.0.dev0Who can help?
@muellerzr @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
default_train_args.report_to = "none"
trainer = Trainer(model=model, args=default_train_args)