Skip to content

[OP] support deepgeem for sm103#7073

Open
BingooYang wants to merge 5 commits intoPaddlePaddle:developfrom
BingooYang:deepgemm_sm103
Open

[OP] support deepgeem for sm103#7073
BingooYang wants to merge 5 commits intoPaddlePaddle:developfrom
BingooYang:deepgemm_sm103

Conversation

@BingooYang
Copy link
Copy Markdown
Contributor

Motivation

deepgeem支持sm103

Modifications

deepgeem适配

Usage or Command

none

Accuracy Tests

none

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Mar 30, 2026

Thanks for your contribution!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 30, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@1a1d048). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...del_executor/layers/quantization/block_wise_fp8.py 25.00% 1 Missing and 2 partials ⚠️
...oy/model_executor/layers/quantization/fp8_utils.py 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #7073   +/-   ##
==========================================
  Coverage           ?   73.39%           
==========================================
  Files              ?      402           
  Lines              ?    56435           
  Branches           ?     8904           
==========================================
  Hits               ?    41422           
  Misses             ?    12081           
  Partials           ?     2932           
Flag Coverage Δ
GPU 73.39% <33.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@BingooYang BingooYang changed the title support deepgeem for sm103 [OP] support deepgeem for sm103 Mar 30, 2026
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

sm_version = get_sm_version()
if sm_version >= 100:
assert x_scale_tensor.dtype == paddle.uint8, "For sm100+, x_scale_tensor must be uint8 dtype."
if sm_version == 100 and current_platform.is_cuda():
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里>=100和==100的分支也可以合并吧,目前>100会落到90的分支?

):
if get_sm_version() == 100 and current_platform.is_cuda():
sm_version = get_sm_version()
if sm_version >= 100:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这个check是不是 fastdeploy/model_executor/layers/moe/fused_moe_deepgemm_backend.py 的group gemm处也可以加下

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.

4 participants