[MM][CG][BugFix] Fix Ernie-4.5-VL encoder CG postprocess for multi-path outputs - #51461
Merged
khluu merged 1 commit intoAug 11, 2026
Merged
Conversation
Signed-off-by: qyYue1389 <yueqiuyang1389@gmail.com>
qyYue1389
force-pushed
the
ernie45vl-postprocess-multipath-fix
branch
from
August 7, 2026 23:33
8e2c731 to
0150aa4
Compare
Member
|
/ci run |
khluu
enabled auto-merge (squash)
August 10, 2026 21:46
|
✅ Triggered Buildkite CI #83216 for commit |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fix-forward for the crash that prompted #51263 (revert of #45254), instead of reverting.
SupportsEncoderCudaGraph.postprocess_encoder_outputnow receivesoutputs: dict[str, torch.Tensor]keyed by encoder path (multi-path graph support), butErnie4_5_VLMoeForConditionalGeneration's override still treatedthe first arg as a single tensor:
File "vllm/model_executor/models/ernie45_vl.py", line 1734, in postprocess_encoder_output grid_thw = batch_mm_kwargs["image_grid_thw"].to(output.device) AttributeError: 'dict' object has no attribute 'device'#45254and the multi-path framework change merged around the same time, so each was green independently but the combination broke encoder CUDA-graph replay for Ernie-4.5-VL onmain.Test
pytest tests/models/multimodal/generation/test_vit_cudagraph.py::test_vit_cudagraph_image[ernie45_vl]— the same case reported in #51263 (build 82629).
Closes #51263 by fixing forward