Skip to content

support triton optimizer #10575

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

lugimzzz
Copy link
Contributor

@lugimzzz lugimzzz commented May 9, 2025

PR types

New features

PR changes

APIs

Description

支持triton版本adamw

  • 启用方式"optim": "adamw_custom"
  • "use_lowprecision_moment": "true"则moment1/moment2 为bf16

padldle使用triton方式:

pip install triton==3.2.0
python -m pip install git+https://github.com/zhoutianzi666/UseTritonInPaddle.git
python -c "import use_triton_in_paddle; use_triton_in_paddle.make_triton_compatible_with_paddle()"

Copy link

paddle-bot bot commented May 9, 2025

Thanks for your contribution!

Copy link

codecov bot commented May 9, 2025

Codecov Report

Attention: Patch coverage is 13.04348% with 80 lines in your changes missing coverage. Please review.

Project coverage is 48.68%. Comparing base (759ae99) to head (b476bea).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/utils/optimizer.py 6.52% 43 Missing ⚠️
paddlenlp/utils/adamw_triton.py 16.27% 36 Missing ⚠️
paddlenlp/trainer/trainer.py 50.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (13.04%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project check has failed because the head coverage (48.68%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10575      +/-   ##
===========================================
+ Coverage    48.66%   48.68%   +0.01%     
===========================================
  Files          768      769       +1     
  Lines       127103   127048      -55     
===========================================
- Hits         61860    61857       -3     
+ Misses       65243    65191      -52     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant