Skip to content

update fp8 training #10720

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

Merged
merged 5 commits into from
Jun 11, 2025
Merged

update fp8 training #10720

merged 5 commits into from
Jun 11, 2025

Conversation

lugimzzz
Copy link
Contributor

@lugimzzz lugimzzz commented Jun 10, 2025

PR types

Others

PR changes

APIs

Description

1.改用FP8改用forward fp8_fp8_half_gemm_fused,如果反向不使用FP8无需安装TE
2.反向进行padding,支持moe场景中seq_len不为fp8倍数场景
3.去除多余dtype view

Copy link

paddle-bot bot commented Jun 10, 2025

Thanks for your contribution!

Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 10.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 46.93%. Comparing base (7309a5d) to head (683d5ef).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/quantization/qat_utils.py 10.00% 18 Missing ⚠️

❌ Your patch status has failed because the patch coverage (10.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project status has failed because the head coverage (46.93%) 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   #10720   +/-   ##
========================================
  Coverage    46.93%   46.93%           
========================================
  Files          800      800           
  Lines       132741   132739    -2     
========================================
+ Hits         62304    62305    +1     
+ Misses       70437    70434    -3     

☔ 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.

@lugimzzz lugimzzz changed the title support fp8 save update fp8 training Jun 10, 2025
Copy link
Collaborator

@nepeplwu nepeplwu left a comment

Choose a reason for hiding this comment

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

LGTM

@nepeplwu nepeplwu merged commit 4615d00 into PaddlePaddle:develop Jun 11, 2025
9 of 12 checks passed
@lugimzzz lugimzzz deleted the fp8 branch June 11, 2025 03:25
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.

3 participants