[Model Runner V2] Fix v2 AttributeError: 'CohereASRDecoder' object has no attribute 'embed_input_ids'#44568
Conversation
Signed-off-by: yewentao256 <zhyanwentao@126.com>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
| "WhisperForConditionalGeneration" in vllm_config.model_config.architectures | ||
| or "CohereAsrForConditionalGeneration" in vllm_config.model_config.architectures |
There was a problem hiding this comment.
Are there any other models in this category that we should add?
Do we any other way to determine this from the model and/or config?
There was a problem hiding this comment.
Seems not, took a look and vllm/model_executor/models/funasr.py vllm/model_executor/models/fireredasr2.py vllm/model_executor/models/fireredlid.py they all have embed_input_ids(), I don't find other models missing
There was a problem hiding this comment.
If we check using supports_transcription_only instead, may influence other models, so I think current fix is minimal and precise.
…as no attribute 'embed_input_ids'` (vllm-project#44568) Signed-off-by: yewentao256 <zhyanwentao@126.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…as no attribute 'embed_input_ids'` (vllm-project#44568) Signed-off-by: yewentao256 <zhyanwentao@126.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Purpose
Fixing for #44443
VLLM_USE_V2_MODEL_RUNNER=1 pytest tests/models/test_initialization.py::test_can_initialize_large_subset[CohereAsrForConditionalGeneration]Originally
Now
====================== 1 passed, 17 warnings in 72.84s (0:01:12) ======================