feat: add mini Qwen3-VL model for local e2e RL testing#1919
Open
feat: add mini Qwen3-VL model for local e2e RL testing#1919
Conversation
Add scripts/mini_vlm.py that creates a tiny ~44M param Qwen3-VL model with random weights for local testing (text: 256 hidden, 4 layers; vision: 128 hidden, 4 depth). Follows the same pattern as mini_moe.py. Also update is_vlm_model() to detect VLM models from local paths by reading config.json model_type, so mini models don't need to match the Qwen/Qwen3-VL* naming pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
scripts/mini_vlm.py— creates a tiny ~44M param Qwen3-VL model with random weights for local e2e RL testing, following the same pattern asscripts/mini_moe.pyis_vlm_model()to also detect VLM models from local paths by readingconfig.jsonmodel_type, so mini/custom checkpoints work without matching theQwen/Qwen3-VL*naming conventionMini model specs
Usage
Test plan
is_vlm_model()detects local path models via config.json model_type🤖 Generated with Claude Code
Note
Medium Risk
Touches VLM detection used in model loading/orchestration; misclassification or unexpected
config.jsoncontents could route runs down VLM-specific loading/freezing paths. The rest is an additive local testing script.Overview
Adds
scripts/mini_vlm.pyto create a small random-weight Qwen3-VL checkpoint, copy a compatible tokenizer/processor, and sanity-check both text-only and multimodal forward passes on CPU.Updates
is_vlm_model()to recognize local/custom checkpoints by readingconfig.jsonand checkingmodel_type(in addition to the existingQwen/Qwen3-VL*name pattern), enabling VLM-specific codepaths to work with mini models stored on disk.Written by Cursor Bugbot for commit 951b442. This will update automatically on new commits. Configure here.