-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
fix type annotation for debug arg #24033
fix type annotation for debug arg #24033
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this!
It seems it's introduced an issue for the examples tests and is throwing TypeError
. Once that's been resolved, ping and I'll review again. Lets us know if you have any questions or issues in the meantime.
…to fix_trainig_args_debug_type_annotation
Hi @amyeroberts, I have made a fix to the code. I'm not certain if there is a more concise way to address this, but I added an additional check for |
@Bearnardd Thanks for updating. Could you share a snippet to reproduce showing the evaluation of If I create the training arguments directly, when working from In [1]: from transformers import TrainingArguments
In [2]: args = TrainingArguments("dummy_dir")
In [3]: args.debug
Out[3]: [] So it might be an environment or how it's being used in a script thing? |
Hi @amyeroberts! It was one od the failing test cases. I will be back at home tomorrow so I will check that to confirm :) |
Hi @amyeroberts! I have done some quick debugging. I was able to obtain the same results as you while running your snippet. However the problem appears when you try to run things from CLI. One of the test cases that were failing is
In the Is this explanation understandable for you or do you need some additional context/information :) ? |
@Bearnardd Thanks for such a detailed investigation and write up! In this case, resolving this with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
What does this PR do?
Fix type annotation for
debug
argument intraining_args.py
Fixes #23958
Who can review?