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

First eval loss logged as 0 with transformers==4.25.1 #34

Closed
stefanik12 opened this issue Mar 22, 2023 · 1 comment
Closed

First eval loss logged as 0 with transformers==4.25.1 #34

stefanik12 opened this issue Mar 22, 2023 · 1 comment

Comments

@stefanik12
Copy link
Collaborator

We found that in the version of transformers>=4.25.1, the first entry of objectives' evaluation loss gets a value of 0 (zero). This can cause preliminary early stopping in training configuration with StoppingStrategy.FIRST_OBJECTIVE_CONVERGED where no Evaluator(decides_convergence=True) is given among the Objective(val_evaluators).

Subsequently, the evaluation loss, logged with any training objective will look like on the picture below.

image

This behaviour is likely caused by a change in the implementation of transformers' Trainer after version 4.19.1 (where this issue does not occur) and before 4.25.1 where it has been registered.

After the issue is fixed, do not forget to open the required version of transformers in the adapter's setup.cfg; We temporarily fix it to version 4.19.1.

@stefanik12
Copy link
Collaborator Author

Fixed in #38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant