Skip to content

Conversation

@gongshaotian
Copy link
Collaborator

Motivation

When use CUDAGraph with MTP, the default-constructed capture list method ignores the max shape, which is computed as:
self.scheduler_config.max_num_seqs * (self.speculative_config.num_speculative_tokens + 1)

Origin PR: #4617

Modifications

  1. Refactor default capture list
  2. Refie debug log

Usage or Command

Pass

Accuracy Tests

Pass

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.

Jiang-Jia-Jun and others added 30 commits August 31, 2025 21:31
* update enable chunked_prefill

* update code

* update code

* update code
* Update config.py

* Update ep.py

* Update fused_moe_backend_base.py

* Update dynamic_weight_manager.py

* Update worker_process.py

* fix ci
* Update serving_chat.py

* Update serving_completion.py

* Update serving_completion.py
…) (PaddlePaddle#3804)

* 延迟 import Config

* support chunked_prefill

* support chunked_prefill
* add moe noaux_tc tatics in trition backend

* fix

* add dp config
* Update no_proxy environment variable in CI workflow

* Install lsof and kill api_server processes

Install lsof tool and kill processes using it.
…se (PaddlePaddle#3855)

* Update no_proxy environment variable in CI workflow

* Install lsof and kill api_server processes

Install lsof tool and kill processes using it.

* Update dependency versions for stable release

* Update CI script to use stable dependencies
Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
* Support for async processor added.

* remove yappi code
* [Feature] Set scheduler v1 as default

* [Feature] Set scheduler v1 as default

* [Feature] Set scheduler v1 as default

* [Feature] Set scheduler v1 as default

* [Feature] Set scheduler v1 as default

* [Feature] Set scheduler v1 as default
* fix scheduler bug

* fix

* Update api_server.py
* add reasoning parser plugin

* fix finish reason

---------

Co-authored-by: Yuanle Liu <yuanlehome@163.com>
* [DEBUG] Adapt validation for paddleformers==0.2 in release/2.2

* [CI] update paddleformers==0.2 in release/2.2
* disable scheduler v1 in guided decoding

* disable scheduler v1 in guided decoding
zeroRains and others added 28 commits October 13, 2025 10:18
…he_messager in cudagraph and PD (PaddlePaddle#4252)

* fix the bug for prefilled_step_idx signal of cache_messager in cudagraph and PD

* support dp
* [Executor]CUDAGraph support Speculate Decode

* fix problem

* solve problem

* fix

* fast compile

* CUDAGraph + mtp support eb5(only target model)

* Revert "fast compile"

This reverts commit 3cfe837.

* fix precommit

* solve comment

* fix comment about #pragram unroll

---------

Co-authored-by: gongshaotian <gstain5555@outlook.com>
Co-authored-by: gongshaotian <gstian5555@outlook.com>
…le#4392)

* supports spec dynamic cfp8

* supports spec dynamic cfp8

---------

Co-authored-by: lzy <569782149@qq.com>
* Update common_engine.py

* Update zmq_client.py

* Update expert_service.py

---------

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
* support mtp chunk_prefill_v1

* fix mtp chunkprefill output

* fix mtp chunkprefill output, fix unit test

* fix save_output

---------

Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
* [setup optimize]Support git submodule (PaddlePaddle#4033)

* support git submodule

* update setup

* fix ci network

* fix clone

* revert clone linux

* delete args

* fix ci

* update

* fix

---------

Co-authored-by: YuanRisheng <yuanrisheng@baidu.com>
* support speculate_limit_thinking_content_length_v2

* fix

* fix import
* fix: image token output

* fix: code style

* fix: CompletionOutput.decode_type
… MTP + EP (PaddlePaddle#4430)

* Fix MTP dummy run bug

* Target Model and Draft Model using the same flag

* aovid moe bug in cudagraph padding

* In mtp replace use_cudagraph as step_use_cudagraph
* support logprob in mtp

* remove debug code

* fix

* feat: add draft_logprobs for Speculative Decode MTP

* Revert "feat: add draft_logprobs for Speculative Decode MTP"

This reverts commit d5a3c5c.

* fix

* feat: add draft_logprobs for Speculative Decode MTP

* feat: add draft_logprobs for Speculative Decode MTP

* fix some bugs

* fix codestyle

* fix bugs

* fix bugs

* fix bugs

* fix bus

* fix bugs

* fix unitest

---------

Co-authored-by: sunlei1024 <sunlei5788@gmail.com>
Co-authored-by: sunlei18 <sunlei18@sunlei18deMacBook-Pro.local>
* support mm prefix cache close

* add

* fix

* fix

* fix

---------

Co-authored-by: ltd0924 <luotingdan@baidu.com>
* [fix] fix requests & block metrics

* [chore] rename variables
* fix

* fix

* fix

* add test case

* add test case

* add test case
…ddle#4566)

* support mtp distribution equivalence verification

* fix bugs

* add unit test
@paddle-bot
Copy link

paddle-bot bot commented Oct 28, 2025

Thanks for your contribution!

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.