You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: qwen3_5_moe model type missing multimodal placeholder registration causing "Unknown modality: image" error #12271
Root Cause:
The qwen3_5_moe model type is not registered in MULTIMODAL_PLACEHOLDER_REGISTRY, so add_multimodal_placeholders() in tensorrt_llm/inputs/utils.py throws "Unknown modality" error.
Although Qwen3_5MoeForConditionalGeneration in tensorrt_llm/_torch/auto_deploy/models/custom/modeling_qwen3_5_moe.py implements full vision-language capabilities (pixel_values,
image_grid_thw, etc.), it model type lacks multimodal placeholder registration required by the serving layer.
Expected behavior
Add @register_input_processor decorator to Qwen3_5MoeForConditionalGeneration class to register image/video placeholders:
@register_input_processor(
BaseMultimodalInputProcessor,
model_type="qwen3_5_moe",
placeholder_metadata=MultimodalPlaceholderMetadata(
placeholder_map={
"image": "<|vision_start|><|image_pad|><|vision_end|>",
"video": "<|vision_start|><|video_pad|><|vision_end|>",
},
placeholder_placement=MultimodalPlaceholderPlacement.BEFORE_TEXT,
placeholders_separator="",
),
)
class Qwen3_5MoeForConditionalGeneration(Qwen3_5MoePreTrainedModel):
# ... existing code ...
actual behavior
None of that was added now.
additional notes
Nothing to add
Before submitting a new issue...
Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Activity
suyoggupta commentedon Mar 17, 2026
cc: @bmarimuthu-nv