Skip to content

[OP] support deepgeem for sm103#7073

Merged
zoooo0820 merged 6 commits intoPaddlePaddle:developfrom
BingooYang:deepgemm_sm103
Apr 1, 2026
Merged

[OP] support deepgeem for sm103#7073
zoooo0820 merged 6 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 60.00000% with 2 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 66.66% 0 Missing and 1 partial ⚠️
...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           ?   72.33%           
==========================================
  Files              ?      376           
  Lines              ?    52853           
  Branches           ?     8247           
==========================================
  Hits               ?    38233           
  Misses             ?    11986           
  Partials           ?     2634           
Flag Coverage Δ
GPU 72.33% <60.00%> (?)

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处也可以加下

Copy link
Copy Markdown
Collaborator

@zoooo0820 zoooo0820 left a comment

Choose a reason for hiding this comment

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

LGTM

@zoooo0820 zoooo0820 merged commit 410988d into PaddlePaddle:develop Apr 1, 2026
53 of 55 checks passed
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