Skip to content

[Bugfix] Fix Intern / Radio Pooling Tests#33044

Closed
alex-jw-brooks wants to merge 2 commits intovllm-project:mainfrom
alex-jw-brooks:intern_radio_tests
Closed

[Bugfix] Fix Intern / Radio Pooling Tests#33044
alex-jw-brooks wants to merge 2 commits intovllm-project:mainfrom
alex-jw-brooks:intern_radio_tests

Conversation

@alex-jw-brooks
Copy link
Copy Markdown
Contributor

@alex-jw-brooks alex-jw-brooks commented Jan 26, 2026

Purpose

Fixes test failures in #33028; here, we are creating the vision encoder components directly from their HF configs (or adapted pretrained config subclasses in vLLM) to test them in isolation. As a result, the vLLM Config is using the default fixture, which has None for the ModelConfig, and breaks when it tries to access the multimodal subconfig.

Falls back to None for the multimodal config is there is no ModelConfig on the retrieved vLLM Config for any reason.

Test Plan

Intern / Radio tests should pass.

Test Result

Tests pass

CC @DarkLight1337 @robertgshaw2-redhat

Signed-off-by: Alex-Brooks <Alex.Brooks@ibm.com>
@mergify mergify Bot added the bug Something isn't working label Jan 26, 2026
Copy link
Copy Markdown
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 correctly fixes a potential AttributeError in get_vit_attn_backend that could occur if vllm_config.model_config is None. The change to safely access multimodal_config is a good improvement.

I noticed that the same potential bug exists in the is_vit_use_data_parallel function within the same file (vllm/model_executor/models/vision.py). It also accesses vllm_config.model_config.multimodal_config without checking if vllm_config.model_config is None. I recommend applying a similar fix there to prevent future issues.

Signed-off-by: Alex-Brooks <Alex.Brooks@ibm.com>
Copy link
Copy Markdown
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@DarkLight1337
Copy link
Copy Markdown
Member

Oh, actually #33033 shuold fix this already

@alex-jw-brooks
Copy link
Copy Markdown
Contributor Author

Ah, didn't see it! I will close this one 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants