Add a standalone Qwen3 video-training example on WebVid-10M - #169
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
camilobrownpinilla
approved these changes
Jul 25, 2026
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
examples/qwen3_vlm/to one working path: joint-decoder video captioning on WebVid-10M, started from pretrained components.convert_hf_backbone.py(new) — builds the VLM viabuild_vlm_wrapper(SigLIP2 from HF, fresh adapter), copies HF Qwen3 LLM weights into the backbone, and saves the whole model as one DCP[checkpoint].load_pathreads. Honors tied embeddings; dense targets only.vlm_qwen3_0.6b_joint_decoder_webvid.toml—avgpool(pool_window = 2) → 64 tokens/frame, so 18 frames × 64 = 1152 visual + 96 text = 1248 ≤max_seq_len. LLM frozen; vision encoder + adapter train.convert_multimodal_checkpoint.py(+ test) and the four arch configs — the new converter is dense/JD-only, so those paths weren't runnable here.kempnerforge/changes; main README / CHANGELOG / docs untouched.Net: +494 / −1342. Validated end to end — a run from an HF-init checkpoint completed one WebVid epoch (loss 13.6 → ~2.7) and produced sensible captions on held-out validation clips.
Testing
uv run ruff check kempnerforge/ tests/passesuv run ruff format --check kempnerforge/ tests/ scripts/passesuv run pyright kempnerforge/passes (0 errors)uv run pytest tests/unit/ -v --timeout=60passes (1676 passed)uv run pytest examples/qwen3_vlm/tests/passes (18 tests)