swift train ↔ vLLM rollout multimodal alignment
Author: hjh0119Created Jun 30, 2026Updated Sep 29, 2026
Labelsstale
Background
In on-policy RL training (GRPO / OPD / GKD), rollout and training must consume the same multimodal inputs (input_ids, pixel_values, input_features, etc.). Otherwise, logprobs are computed on mismatched prompts/tensors.
This table tracks swift train vs vLLM rollout alignment per model family. The goal is to verify parity for GRPO/OPD and to expand coverage as we add more models and modalities.
— = modality not supported.
✅ = aligned.
❌ = not aligned (tracked upstream).
Alignment results
| Model family | image | video | audio |
|---|---|---|---|
| Qwen3-VL | ✅ | ❌ | — |
| Qwen3.5 | ✅ | ❌ | — |
| Qwen2.5-Omni | ✅ | ✅ | ✅ |
| Qwen3-Omni | ✅ | ✅ | ✅ |
| Gemma4 | ✅ | ❌ | ✅ |
Known upstream issues (vLLM)
- Qwen3-VL / Qwen3.5 video — vLLM drops the outer
<|vision_start|>/<|vision_end|>wrapper during video prompt expansion, causing a 2-token mismatch vs HuggingFace: #46817 - Gemma4 video — vLLM uses a per-frame image path and incorrect video metadata/timestamps vs Transformers
Gemma4VideoProcessor: #46988
Source: modelscope/ms-swift