Skip to content

Conversation

@russellb
Copy link
Member

Whisper does not work with full cudagraphs. That is being worked on in
PR #25208.

The failure can be reproduced reliably via
tests/models/multimodal/generation/test_whisper.py, at least in my
H100 development environment. The tests passed on the PR and I'm not
sure why.

Regardless, this seems like the right change to make until #25208
sorts out exactly what changes are needed.

Signed-off-by: Russell Bryant rbryant@redhat.com

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to disable full CUDA graphs for encoder-decoder models, such as Whisper, by forcing them into PIECEWISE mode. While the intent is correct, the implementation contains a critical logical error. The condition self.model_config.is_encoder_decoder is not None will always evaluate to True because the is_encoder_decoder property returns a boolean. This would cause all models to incorrectly fall back to PIECEWISE mode, potentially leading to performance regressions. I have provided a review comment with a suggested fix to correct this condition.

@russellb russellb mentioned this pull request Sep 25, 2025
5 tasks
Whisper does not work with full cudagraphs. That is being worked on in
PR vllm-project#25208.

The failure can be reproduced reliably via
`tests/models/multimodal/generation/test_whisper.py`, at least in my
H100 development environment. The tests passed on the PR and I'm not
sure why.

Regardless, this seems like the right change to make until vllm-project#25208
sorts out exactly what changes are needed.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
@russellb russellb force-pushed the whisper-cudagraphs-piecewise branch from a36468b to 3e50d7f Compare September 25, 2025 18:52
@ProExpertProg ProExpertProg added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 25, 2025
Copy link
Member

@yewentao256 yewentao256 left a comment

Choose a reason for hiding this comment

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

Could we also report the E2E acc result to make sure the change is correct?
Also possibly for perf improvement

@tlrmchlsmth tlrmchlsmth enabled auto-merge (squash) September 25, 2025 19:05
@russellb
Copy link
Member Author

Could we also report the E2E acc result to make sure the change is correct? Also possibly for perf improvement

We do have a test that does pretty extensive accuracy testing. It tests a big dataset and measures the word error rate of our transcription. It will fail if the error rate goes above a certain threshold. It's in tests/entrypoints/openai/correctness/test_transcription_api_correctness.py

@mgoin mgoin added this to the v0.11.0 milestone Sep 25, 2025
@mgoin mgoin added the bug Something isn't working label Sep 25, 2025
Copy link
Member

@mgoin mgoin left a comment

Choose a reason for hiding this comment

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

Thanks @russellb, sorry for the trouble. Is that test failing on main?

@russellb
Copy link
Member Author

Thanks @russellb, sorry for the trouble. Is that test failing on main?

no big deal. I'm just confused why it works in CI but not locally. Is there something about the older GPUs in CI that would turn off cudagraphs or something?

@vllm-bot vllm-bot merged commit 13dd93c into vllm-project:main Sep 26, 2025
50 of 52 checks passed
yewentao256 pushed a commit that referenced this pull request Oct 3, 2025
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: yewentao256 <zhyanwentao@126.com>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 10, 2025
…ct#25701)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.com>
choprahetarth pushed a commit to Tandemn-Labs/vllm that referenced this pull request Oct 11, 2025
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 24, 2025
…ct#25701)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.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 ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants