[Cherry-Pick][BugFix] cherry-pick #7238 support moe for sm103#7240
Merged
Conversation
|
Thanks for your contribution! |
PaddlePaddle-bot
left a comment
There was a problem hiding this comment.
🤖 AI Code Review |
2026-04-08
📋 Review 摘要
PR 概述:支持 MOE GEMM kernel 在 SM103 (Compute Capability 10.3) 设备上编译运行
变更范围:custom_ops/gpu_ops/cutlass_kernels/moe_gemm/ (2 个文件)
影响面 Tag:[BugFix] [OP]
📝 PR 规范检查
✅ 标题包含有效 Tag [BugFix]
✅ 描述包含 Motivation 和 Modifications 部分
问题
| 级别 | 文件 | 概述 |
|---|---|---|
| - | - | - |
未发现阻塞性问题。
总体评价
变更简单直接,通过扩展架构检查范围使 SM103 设备能够编译 MOE kernel。SM103 (Compute Capability 10.3) 将使用 Sm80 kernel 运行,这在没有专用 kernel 实现的情况下是合理的方案。
技术细节
- 编译时检查:
__CUDA_ARCH__ < 1010→< 1100,使 SM103 (1030) 在 Sm80 kernel 编译范围内 - 运行时检查:
sm_ < 101→< 104,同步修改运行时 SM 版本分发逻辑 - 影响范围:SM80-SM103 (8.0-10.3) 所有设备都使用 Sm80 kernel
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/2.6 #7240 +/- ##
==============================================
Coverage ? 73.87%
==============================================
Files ? 376
Lines ? 52886
Branches ? 8249
==============================================
Hits ? 39071
Misses ? 11089
Partials ? 2726
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zoooo0820
approved these changes
Apr 8, 2026
Deleter-D
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
支持moe sm103编译
Modifications
支持sm103编译
Usage or Command
no
Accuracy Tests
no
Checklist
[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]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.