-
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
TrainerState's property num_input_tokens_seen
is not updating
#34567
Comments
You need to set transformers/src/transformers/trainer.py Line 2456 in 33868a0
|
Hey thanks @techkang |
I think it expects the
The error occurs because calling
|
You are correct and a PR is already proposed to fix this problem: #34554. |
Awesome, can close this now |
System Info
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Here is the sample code to reproduce the error
Following is the output
Expected behavior
In the expected behaviour this property should be kept updating withing training loop with the number of input tokens seen on every step.
The text was updated successfully, but these errors were encountered: