We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As seen here,
modalities/src/modalities/trainer.py
Line 144 in a599005
cumulated_loss_and_gradient_norm
A better solution would be to encapsulate the cumulated_loss_and_gradient_norm within a dedicated class that implements also the reduce operations.
The text was updated successfully, but these errors were encountered:
le1nux
Successfully merging a pull request may close this issue.
As seen here,
modalities/src/modalities/trainer.py
Line 144 in a599005
cumulated_loss_and_gradient_norm
is indexed directly in the train function, adding unnecessary complexity to the code.A better solution would be to encapsulate the
cumulated_loss_and_gradient_norm
within a dedicated class that implements also the reduce operations.The text was updated successfully, but these errors were encountered: