Skip to content

[Executor] Default use CUDAGraph - #3594

Merged
Jiang-Jia-Jun merged 50 commits into
PaddlePaddle:developfrom
gongshaotian:start_intercept
Oct 21, 2025
Merged

Jiang-Jia-Jun merged 50 commits into
PaddlePaddle:developfrom
gongshaotian:start_intercept

Conversation

@gongshaotian

@gongshaotian gongshaotian commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator

Summary

  1. CUDAGraph has been enabled by default in some scenarios at the beginning of this PR.
  2. CUDAGraph will be automatically closed for functions that are not compatible with CUDAGraph (speculative decoding, RL training, multi-mode model). Added some GraphOptConfig related startup parameter checks:

User interface changes

The --use-cudagraph startup parameter is deleted, you can also manually control the CUDAGraph by setting --graph-optimization-config .

--graph-optimization-config '{"use_cudagraph":false}'

Detailed description reference graph_optimization.md

@paddle-bot

paddle-bot Bot commented Aug 25, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@gongshaotian gongshaotian changed the title [Config] Add GraphOptConfig start intercept [Config] Add GraphOptConfig start interception Aug 25, 2025

@gzy19990617 gzy19990617 left a comment

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.

LGTM

YuanRisheng
YuanRisheng previously approved these changes Aug 25, 2025
@codecov-commenter

codecov-commenter commented Aug 25, 2025

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #3594   +/-   ##
=========================================
  Coverage           ?       0           
=========================================
  Files              ?       0           
  Lines              ?       0           
  Branches           ?       0           
=========================================
  Hits               ?       0           
  Misses             ?       0           
  Partials           ?       0           

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

@gongshaotian gongshaotian changed the title [Config] Add GraphOptConfig start interception [Executor] Default use CUDAGraph Aug 25, 2025
Comment thread tests/ce/deploy/21b_sot.yaml
Comment thread docs/parameters.md Outdated
Comment thread docs/zh/features/graph_optimization.md Outdated
Comment thread fastdeploy/config.py Outdated
Comment thread fastdeploy/config.py
Comment thread fastdeploy/config.py
Comment thread docs/zh/features/graph_optimization.md Outdated
@gongshaotian gongshaotian self-assigned this Aug 28, 2025

@yuanlehome yuanlehome left a comment

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.

LGTM👍

@gongshaotian

gongshaotian commented Oct 21, 2025

Copy link
Copy Markdown
Collaborator Author

fastdeploy/model_executor/graph_optimization/utils.py:新增显存 Debug 工具,无须单测
fastdeploy/worker/gpu_model_runner.py 和 fastdeploy/config.py:新增防御性代码,非报错无法覆盖
申请豁免覆盖率@Jiang-Jia-Jun

@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit 775edcc into PaddlePaddle:develop Oct 21, 2025
23 of 28 checks passed
max_model_len: 32768
max_num_seqs: 96
gpu_memory_utilization: 0.9
gpu_memory_utilization: 0.85

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.

gpu_memory_utilization修改 也不会导致性能下降吗?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

gpu_memory_utilization修改 也不会导致性能下降吗?

从测试结果来看是上升的

@gongshaotian
gongshaotian deleted the start_intercept branch November 3, 2025 06:49
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
* add start intercept

* Adjustment GraphOptConfig

* pre-commit

* default use cudagraph

* set default value

* default use cuda graph

* pre-commit

* fix test case bug

* disable rl

* fix moba attention

* only support gpu

* Temporarily disable PD Disaggregation

* set max_num_seqs of test case as 1

* set max_num_seqs and temperature

* fix max_num_batched_tokens bug

* close cuda graph

* success run wint2

* profile run with max_num_batched_tokens

* 1.add c++ memchecker 2.success run wint2

* updatee a800 yaml

* update docs

* 1. delete check 2. fix plas attn test case

* default use use_unique_memory_pool

* add try-except for warmup

* ban mtp, mm, rl

* fix test case mock

* fix ci bug

* fix form_model_get_output_topp0 bug

* fix ci bug

* refine deepseek ci

* refine code

* Disable PD

* fix sot yaml
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.

7 participants