Repository navigation
Add fourteen remaining GGUF projector routes - #694
Conversation
Performance Comparison
|
There was a problem hiding this comment.
Pull request overview
This PR expands Mobius’ GGUF multimodal sidecar support by adding the remaining standalone projector routes (vision and audio), along with reusable component implementations, evidence/immutability tests, mapping/closure enforcement, and generated documentation updates—while explicitly keeping downstream runtime support fail-closed/deferred for these new routes.
Changes:
- Add new standalone GGUF projector builders for “remaining vision” routes and a MERaLiON audio projector route, including task registration and metadata emission.
- Introduce multiple reusable CLIP-sidecar component modules (CogVLM, Nemotron V2 VL, HunyuanVL, Step3VL, Kimi/Exaone, MiMoVL/MiniMax-M3, Yasa2, fixed-resolution SigLIP, MERaLiON audio) plus executable tiny-parity tests.
- Add/adjust integration evidence tests, route census expectations, and GGUF docs generation to include bounded-header/source-evidence coverage.
Reviewed changes
Copilot reviewed 31 out of 31 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/gguf_remaining_projector_artifact_test.py | New integration test to validate bounded-header identity + tensor inventory for pinned remaining projector artifacts. |
| src/mobius/tasks/_gguf_projector.py | Adds audio component presence declaration and optional batch-dim squeeze for vision sidecars. |
| src/mobius/tasks/init.py | Registers the new gguf-audio-projector task. |
| src/mobius/models/minicpmv4_6.py | Adds explicit dtype alignment via CastLike and typing cleanups. |
| src/mobius/models/lfm2_vl.py | Casts pixel inputs to match patch embedding weight dtype for projector parity. |
| src/mobius/models/gguf_audio_projector.py | New MERaLiON standalone audio sidecar factory with processor ABI + strict metadata/shape validation. |
| src/mobius/integrations/gguf/_route_census_test.py | Updates expected route classification counts and boundaries. |
| src/mobius/integrations/gguf/_remaining_projectors_test.py | New tests covering remaining projector dispatch, contracts, and a tiny MERaLiON route. |
| src/mobius/integrations/gguf/_remaining_projector_evidence_test.py | New tests ensuring remaining source/bounded-header evidence completeness and immutability. |
| src/mobius/integrations/gguf/_mmproj.py | Adds standalone builders for audio and remaining vision projectors; adjusts closure/shape validation routing. |
| src/mobius/integrations/gguf/_mmproj_registry_test.py | Expands registry test coverage to include the new projector cohort and importability expectations. |
| src/mobius/integrations/gguf/_mmproj_mapping.py | Adds audio-projector → ONNX weight-name mapping for MERaLiON. |
| src/mobius/integrations/gguf/_docs.py | Enhances generated docs with bounded-header details and a new source-evidence table; pin-check updated. |
| src/mobius/integrations/gguf/_docs_test.py | Updates doc-length bound to accommodate additional generated tables. |
| src/mobius/components/_qwenlike_clip_vision.py | New reusable Qwen-like CLIP vision sidecar components (Exaone/Kimi) with exact conversion semantics. |
| src/mobius/components/_qwenlike_clip_vision_test.py | Tiny parity tests for the Qwen-like CLIP vision components. |
| src/mobius/components/_mimo_minimax_vision.py | New reusable MiMoVL and MiniMax-M3 vision components with exact math paths. |
| src/mobius/components/_mimo_minimax_vision_test.py | Tiny parity tests for MiMoVL and MiniMax-M3 components and permutations/RoPE behavior. |
| src/mobius/components/_hunyuan_step_vision.py | New HunyuanVL + Step3VL CLIP sidecar components with explicit processor contracts. |
| src/mobius/components/_hunyuan_step_vision_test.py | Parity tests for HunyuanVL and Step3VL sidecar behavior and runtime geometry dependence. |
| src/mobius/components/_fixed_siglip_sidecar.py | New fixed-resolution SigLIP sidecar wrapper + exact-GELU projector and weight mapping. |
| src/mobius/components/_fixed_siglip_sidecar_test.py | Tests for exact GELU, fixed SigLIP execution, and Janus header shape/name expectations. |
| src/mobius/components/_cog_nemotron_clip.py | New CogVLM and Nemotron V2 VL CLIP-sidecar implementations (including quarantining guidance). |
| src/mobius/components/_cog_nemotron_clip_test.py | Tiny parity tests for CogVLM/Nemotron sidecar blocks and projector logic. |
| src/mobius/components/_clip_sidecars.py | New reusable Yasa2 vision and MERaLiON audio sidecar graphs (ConvNeXtV2 + Whisper+projector). |
| src/mobius/components/_clip_sidecars_test.py | Parity/contract tests for Yasa2 and MERaLiON sidecar components. |
| src/mobius/components/init.py | Exposes newly added sidecar components from the public components API. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
🏗️ Architecture Diff
No architecture changes detected. ✅ Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed) |
Implement reusable Janus-Pro, HunyuanVL, Step3VL, Yasa2, and MERaLiON sidecar graphs with independent tiny numerical parity coverage. Preserve route-specific position, token-order, pooling, and stack-before-normalization semantics. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Implement reusable GQA, window-sink, partial-RoPE, spatial-merge, and float32-accumulation primitives for the two exact standalone vision sidecar graphs, with executable tiny parity coverage. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Record immutable source, processor, sidecar, bounded-header, qtype, and tensor-count identities for the fourteen-route cohort. Add executable bounded-header verification and keep the aggregate active evidence footprint below 16 GiB. Correct Step3VL pre-layer normalization and bias-free patch embedding to match the pinned loader. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Implement dual-temporal patching, GQA, converted rotary layouts, learned-position resizing, spatial mergers, and route-specific MLPs for EXAONE 4.5, Kimi K2.5, and Kimi-VL. Preserve the real sidecars bias-bearing attention projections and cover the core transforms with tiny numerical parity tests. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Implement route-specific fused-QKV vision towers, CogVLM post-normalized gated projection with appended CLS semantics, and Nemotron RADIO register removal plus ReLU-squared merger. Keep production GGUF tensor shapes and names exact and cover both paths with independent tiny parity tests. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Wire exact standalone sidecar builders, suffix-closed tensor maps, shape guards, processor-native inputs, persistent runtime warnings, bounded immutable evidence, and generated census documentation for CogVLM, EXAONE 4.5, HunyuanVL, Janus-Pro, Kimi K2.5, Kimi-VL, LFM2, MERaLiON, MiMoVL, MiniCPM-V4.6, MiniMax-M3, Nemotron V2 VL, Step3VL, and Yasa2. Keep paired text and downstream runtime support explicitly unclaimed. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Derive HunyuanVL, Step3VL, and MiniMax-M3 grids from runtime inputs, persist the complete audio processor ABI in ONNX metadata, and cover dynamic token counts plus saved Meralion packages. Correct the Meralion post-encoder norm mapping discovered by executable package loading. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Consume processor-native 2x2-grouped patches without applying the raw-image llama.cpp permutation twice, while deriving matching rotary coordinates from the runtime grid. Add a rectangular-grid end-to-end projector parity fixture that makes any extra reorder observable. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Record each vision graph input schema in ONNX metadata, make MiMoVL derived window inputs explicit instead of claiming direct grid_thw execution, and register the public Meralion task name. Also remove a shared-loop typing collision in deferred companion quarantine. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Regenerate the live route census and support documentation after the core-VLM cohort landed. Preserve encoder-free Gemma4 unified metadata while keeping strict validation, and clean up owned projector typing and exports. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Match LFM2's native mask dtype and MiMoVL's standard post-projector LayerNorm, reject unsupported MiniCPM scales, and enforce MERaLiON's fixed processor ABI and audio presence metadata. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Remove the duplicate audio task and container in favor of the merged generic projector API. Preserve audio presence metadata, union source evidence, and keep generated documentation compatible with both pinned llama.cpp evidence revisions. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Align six projector families with their exported initializer names and fail closed before or after production weight application. Keep HunyuanVL positional weights in the graph with dynamic bilinear interpolation, and validate MERaLiON output width against projection metadata. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Exclude samples outside the source position grid so HunyuanVL downsampling matches PyTorch bilinear antialias semantics, with an executable 4x4-to-2x2 discriminator. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
0d1569f to
b6b8835
Compare
Use direct-super initialization and an override-compatible Step3VL signature, restrict zero-depth Gemma4 audio metadata to encoder-free sidecars, and require bounded header servers to honor timed range requests. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Keep the test-only interpolation probe override compatible with the production sidecar forward contract. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Match Step3VL antialiased position downsampling at image edges, validate every source Q/K/V tensor before fusion, and require Nemotron's exact 2x projector scale. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Preserve PR #694 projector builders and evidence while restoring OCR audio validation, registry expectations, census counts, and generated documentation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f96aa7b0-95a6-473f-a875-5883767c2a24 Signed-off-by: Justin Chu <[email protected]>
Preserve PR #694 projector builders and evidence while restoring OCR audio validation, registry expectations, census counts, and generated documentation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f96aa7b0-95a6-473f-a875-5883767c2a24 Signed-off-by: Justin Chu <[email protected]>
Summary
cogvlm,exaone4_5,hunyuanvl,janus_pro,kimik25,kimivl,lfm2,meralion,mimovl,minicpmv4_6,minimax_m3,nemotron_v2_vl,step3vl, andyasa2exclude_outside=1semantics for exact downsamplingRuntime support remains explicitly deferred for all fourteen routes. Nemotron's co-resident Parakeet tensors remain quarantined rather than silently discarded.
Validation
Waivers