Skip to content

[Graph Optimization][CI] Add ERNIE45T 21B sot test#5538

Merged
SigureMo merged 3 commits intoPaddlePaddle:developfrom
cattidea:add_sot_CI
Dec 12, 2025
Merged

[Graph Optimization][CI] Add ERNIE45T 21B sot test#5538
SigureMo merged 3 commits intoPaddlePaddle:developfrom
cattidea:add_sot_CI

Conversation

@DrRyanHuang
Copy link
Collaborator

Motivation

#5445 导致所有 SOT + CUDAGraph 模型全部运行失败

assert forward_meta.rotary_embs.shape == [2, 1, self.max_seq_len, 1, 64]

这一行的 assert 语句中, .shape 和之前 #5495 一样,引入 memcpy_h2d
第一维是个动态shape,会出现 forward_meta.rotary_embs.shape[0] 是个 Tensor 和 2 比较的情况(其余位置常量折叠了),是这个 2 引入的 h2d

CI 没拦住的原因是:
#5495 添加的单测是 CINN 的,CINN的DCE(死代码消除)把上面的 memcpy_h2d 消除了🤣🤣🤣🤣

鸣谢: @EmmonsCurse 老师🫡

Modifications

添加 ERNIE45T 21B SOT 测试

Usage or Command

NO NEED

Accuracy Tests

NO NEED

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 Dec 12, 2025

Thanks for your contribution!

@SigureMo
Copy link
Member

SigureMo commented Dec 12, 2025

raise 一个 Error恢复 assert 确保 CI 是挂的

EmmonsCurse
EmmonsCurse previously approved these changes Dec 12, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@3c1f7b8). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5538   +/-   ##
==========================================
  Coverage           ?   60.75%           
==========================================
  Files              ?      329           
  Lines              ?    41140           
  Branches           ?     6271           
==========================================
  Hits               ?    24993           
  Misses             ?    14260           
  Partials           ?     1887           
Flag Coverage Δ
GPU 60.75% <ø> (?)

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.

@SigureMo SigureMo merged commit d01cb27 into PaddlePaddle:develop Dec 12, 2025
16 of 18 checks passed
@SigureMo SigureMo deleted the add_sot_CI branch December 12, 2025 16:43
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