Skip to content

support_lastnorm_gather_split_r2.4#5925

Merged
yuanlehome merged 3 commits intoPaddlePaddle:release/2.4from
xiaoluomi:support_lastnorm_gather_split_2.4
Jan 9, 2026
Merged

support_lastnorm_gather_split_r2.4#5925
yuanlehome merged 3 commits intoPaddlePaddle:release/2.4from
xiaoluomi:support_lastnorm_gather_split_2.4

Conversation

@xiaoluomi
Copy link
Contributor

Motivation

开启SP时,LLM主模型的last norm和gather过程耦合在一起,不便于多步投机解码调用。故将此特殊的norm和gather进行解耦。

Modifications

修改各个moe模型的组网,在组网中将其解耦。

Usage or Command

Accuracy Tests

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

paddle-bot bot commented Jan 7, 2026

Thanks for your contribution!

@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 15.78947% with 16 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/2.4@44e44ab). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/model_executor/models/gpt_oss.py 0.00% 4 Missing ⚠️
fastdeploy/model_executor/models/deepseek_v3.py 0.00% 1 Missing and 1 partial ⚠️
fastdeploy/model_executor/models/ernie4_5_moe.py 0.00% 1 Missing and 1 partial ⚠️
fastdeploy/model_executor/models/ernie4_5_mtp.py 50.00% 1 Missing and 1 partial ⚠️
...del_executor/models/ernie4_5_vl/ernie4_5_vl_moe.py 0.00% 1 Missing and 1 partial ⚠️
fastdeploy/model_executor/models/glm4_moe.py 0.00% 1 Missing and 1 partial ⚠️
fastdeploy/model_executor/models/qwen3moe.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             release/2.4    #5925   +/-   ##
==============================================
  Coverage               ?   58.80%           
==============================================
  Files                  ?      329           
  Lines                  ?    40848           
  Branches               ?     6227           
==============================================
  Hits                   ?    24019           
  Misses                 ?    14951           
  Partials               ?     1878           
Flag Coverage Δ
GPU 58.80% <15.78%> (?)

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.

@yuanlehome yuanlehome merged commit f12b7a7 into PaddlePaddle:release/2.4 Jan 9, 2026
22 of 29 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.

3 participants