Repository navigation
[Bugfix][NPU] Fix talker_mtp ACL graph capture missing force_uniform_decode - #7008
hsliuustc0106 merged 4 commits into
Conversation
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>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
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. |
Omni ReviewBot triage noteAutomated triage of commit
These are automated triage suggestions only — the final decision belongs to the maintainers. |
…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>
…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>
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_graphscalls_determine_batch_execution_and_paddingwithoutforce_uniform_decode. On NPU, this method checkshas_initial_state = np.all(num_computed_tokens_cpu > 0), which isFalseduring capture (no real requests) butTrueat runtime (decode requests have computed tokens). This makesBatchDescriptor.uniformdiffer (Falseat capture vsTrueat runtime), causing anACLGraphWrappercache miss → lazy capture attempt → error.GPU is unaffected because base vLLM's
_is_uniform_decodedoes not checkhas_initial_state.Fix
Pass
force_uniform_decode=Trueduring capture so the descriptor matches runtime.Verified on Ascend 910B with Moss-TTS-Local-Transformer-v1.5 (v0.28.0 image).