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

[Wait for #2803][Mixed Precision] Fix gradient clipping logic @open sesame 12/02 09:37 #2749

Merged

Conversation

DonghakPark
Copy link
Member

[Mixed Precision] Fix gradient clipping logic

update mixed precision - gradient clipping logic

  • when gradient clipping, gradient should unscale before calc l2norm

Resolves:

Self evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK [email protected]

@taos-ci
Copy link

taos-ci commented Oct 8, 2024

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2749. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

@DonghakPark DonghakPark changed the title [Mixed Precision] Fix gradient clipping logic [Wait for #2663][Mixed Precision] Fix gradient clipping logic Oct 8, 2024
@taos-ci
Copy link

taos-ci commented Oct 8, 2024

:octocat: cibot: @DonghakPark, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2749-202410081648530.3276469707489-2d4e34793f8bee4d6bcada6961a4d3345e7e8d56/.

@taos-ci
Copy link

taos-ci commented Nov 25, 2024

:octocat: cibot: @DonghakPark, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2749-202411251023080.00036811828613281-2a4167753060e51f0e04d20b8a66a6611ada5977/.

@DonghakPark DonghakPark changed the title [Wait for #2663][Mixed Precision] Fix gradient clipping logic [Wait for #2803][Mixed Precision] Fix gradient clipping logic Nov 25, 2024
Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@DonghakPark, 💯 All CI checkers are successfully verified. Thanks.

@DonghakPark DonghakPark force-pushed the fp16_gradient_clipping_fix branch 2 times, most recently from 10cae11 to fba7c09 Compare November 26, 2024 00:56
Copy link
Member

@skykongkong8 skykongkong8 left a comment

Choose a reason for hiding this comment

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

Is this about gradient "clipping"..? or just loss scaling

@DonghakPark
Copy link
Member Author

Is this about gradient "clipping"..? or just loss scaling

This PR about "loss scaling" at gradient clipping logic in case Mixed Precision

Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@DonghakPark, 💯 All CI checkers are successfully verified. Thanks.

Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@DonghakPark, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Collaborator

@jijoongmoon jijoongmoon 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
Contributor

@djeong20 djeong20 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jijoongmoon jijoongmoon changed the title [Wait for #2803][Mixed Precision] Fix gradient clipping logic [Wait for #2803][Mixed Precision] Fix gradient clipping logic @open sesame 12/02 09:37 Dec 2, 2024
Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@DonghakPark, 💯 All CI checkers are successfully verified. Thanks.

update mixed precision - gradient clipping logic
- when gradient clipping, gradient should unscale before calc l2norm

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
@DonghakPark DonghakPark force-pushed the fp16_gradient_clipping_fix branch from 30d3abc to 12ebb99 Compare December 2, 2024 01:47
Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@DonghakPark, 💯 All CI checkers are successfully verified. Thanks.

@jijoongmoon jijoongmoon merged commit 0ee82e0 into nnstreamer:main Dec 2, 2024
36 checks passed
@DonghakPark DonghakPark deleted the fp16_gradient_clipping_fix branch December 2, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants