Skip to content

[Bugfix][NPU] Fix talker_mtp ACL graph capture missing force_uniform_decode - #7008

Merged
hsliuustc0106 merged 4 commits into
vllm-project:mainfrom
Wallbreazzz:fix/npu-talker-mtp-uniform-decode
Sep 17, 2026
Merged

hsliuustc0106 merged 4 commits into
vllm-project:mainfrom
Wallbreazzz:fix/npu-talker-mtp-uniform-decode

Conversation

@Wallbreazzz

Copy link
Copy Markdown
Contributor

What

NPU TTS models (e.g. Moss-TTS) crash on first request with RuntimeError: CUDA graph capturing detected at an inappropriate time.

Root cause

_capture_talker_mtp_graphs calls _determine_batch_execution_and_padding without force_uniform_decode. On NPU, this method checks has_initial_state = np.all(num_computed_tokens_cpu > 0), which is False during capture (no real requests) but True at runtime (decode requests have computed tokens). This makes BatchDescriptor.uniform differ (False at capture vs True at runtime), causing an ACLGraphWrapper cache miss → lazy capture attempt → error.

GPU is unaffected because base vLLM's _is_uniform_decode does not check has_initial_state.

Fix

Pass force_uniform_decode=True during capture so the descriptor matches runtime.

Verified on Ascend 910B with Moss-TTS-Local-Transformer-v1.5 (v0.28.0 image).

NPU's _determine_batch_execution_and_padding checks has_initial_state
(num_computed_tokens > 0) for uniform_decode, which is False during
graph capture (no real requests) but True at runtime (decode requests
have computed tokens). This BatchDescriptor.uniform mismatch causes
ACLGraphWrapper cache miss → lazy capture attempt → RuntimeError
'CUDA graph capturing detected at an inappropriate time'.

Signed-off-by: Wallbreazzz <wallbreazzz@users.noreply.github.com>
Signed-off-by: Wallbreazzz <110282866+Wallbreazzz@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vllm-omni-review-bot

Copy link
Copy Markdown

This PR appears to belong to: docs/design/module/execution_platforms.md.

Module owners: @gcanlin @tjtanaa @xuechendi

@Wallbreazzz, please review your own changes and leave a short self-review comment describing what you checked. PRs without author self-review may not be assigned a reviewer.

Please take a look when you have a chance. If you would like an automated review, mention @vllm-omni-review-bot in a comment.

@vllm-omni-review-bot

vllm-omni-review-bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Omni ReviewBot triage note

Automated triage of commit 2123f1685b9a produced:

  • Priority: high. Prompt maintainer attention is suggested.

These are automated triage suggestions only — the final decision belongs to the maintainers.

@hsliuustc0106 hsliuustc0106 added bug Something isn't working NPU PR related to Ascend NPU labels Sep 3, 2026
@gcanlin gcanlin added the ready label to trigger buildkite CI label Sep 8, 2026
@gcanlin gcanlin added ready label to trigger buildkite CI and removed ready label to trigger buildkite CI labels Sep 8, 2026

@FayeSpica FayeSpica left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hsliuustc0106 hsliuustc0106 added ready label to trigger buildkite CI and removed ready label to trigger buildkite CI labels Sep 17, 2026
@hsliuustc0106
hsliuustc0106 enabled auto-merge (squash) September 17, 2026 03:47
@hsliuustc0106 hsliuustc0106 added the high priority high priority issue, needs to be done asap label Sep 17, 2026

@tjtanaa tjtanaa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm on rocm

@hsliuustc0106
hsliuustc0106 merged commit a769d93 into vllm-project:main Sep 17, 2026
7 of 9 checks passed
mlaneuville pushed a commit to mlaneuville/vllm-omni that referenced this pull request Sep 22, 2026
…decode (vllm-project#7008)

Signed-off-by: Wallbreazzz <wallbreazzz@users.noreply.github.com>
Signed-off-by: Wallbreazzz <110282866+Wallbreazzz@users.noreply.github.com>
Co-authored-by: Canlin Guo <canlinguosdu@gmail.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Signed-off-by: Matthieu Laneuville <matthieu.laneuville@surf.nl>
khairulkabir1661 pushed a commit to khairulkabir1661/vllm-omni that referenced this pull request Sep 25, 2026
…decode (vllm-project#7008)

Signed-off-by: Wallbreazzz <wallbreazzz@users.noreply.github.com>
Signed-off-by: Wallbreazzz <110282866+Wallbreazzz@users.noreply.github.com>
Co-authored-by: Canlin Guo <canlinguosdu@gmail.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working high priority high priority issue, needs to be done asap NPU PR related to Ascend NPU ready label to trigger buildkite CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants