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

feat:grad-clip #146

Merged
merged 2 commits into from
Dec 20, 2024
Merged

feat:grad-clip #146

merged 2 commits into from
Dec 20, 2024

Conversation

JSabadin
Copy link
Contributor

Add Gradient Clipping Options to Trainer Config

This PR introduces two new options in the Trainer configuration for gradient clipping:

  • gradient_clip_val: Allows users to set a value for gradient clipping (default: None for no clipping).
  • gradient_clip_algorithm: Specifies the clipping algorithm, either "norm" (clip by norm) or "value" (clip element-wise, default: None).

@JSabadin JSabadin requested a review from a team as a code owner December 20, 2024 06:37
@JSabadin JSabadin requested review from kozlov721, klemen1999, tersekmatija and conorsim and removed request for a team December 20, 2024 06:37
@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 20, 2024
Copy link
Collaborator

@kozlov721 kozlov721 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.01%. Comparing base (631b905) to head (0e81f77).
Report is 25 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #146      +/-   ##
==========================================
- Coverage   96.31%   95.01%   -1.31%     
==========================================
  Files         147      170      +23     
  Lines        6304     7516    +1212     
==========================================
+ Hits         6072     7141    +1069     
- Misses        232      375     +143     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@klemen1999 klemen1999 merged commit b315fd9 into main Dec 20, 2024
8 of 9 checks passed
@klemen1999 klemen1999 deleted the feat/gradient-clip branch December 20, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants