Skip to content

Add fourteen remaining GGUF projector routes - #694

Merged
justinchuby merged 17 commits into
mainfrom
justinchuby-remaining-gguf-projectors
Aug 28, 2026
Merged

justinchuby merged 17 commits into
mainfrom
justinchuby-remaining-gguf-projectors

Conversation

@justinchuby

@justinchuby justinchuby commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add exact standalone sidecar graphs for cogvlm, exaone4_5, hunyuanvl, janus_pro, kimik25, kimivl, lfm2, meralion, mimovl, minicpmv4_6, minimax_m3, nemotron_v2_vl, step3vl, and yasa2
  • add dedicated reusable vision/audio components, exact tensor mappings and transforms, processor-native input contracts, suffix-exact closure, shape checks, and fail-closed active qtypes
  • require complete graph-initializer closure before and after production weight application; validate each source Q/K/V tensor before fusion so compensating malformed shapes cannot shift projection boundaries
  • keep HunyuanVL positional weights in the ONNX graph and reproduce bilinear antialiased interpolation; Step3VL and HunyuanVL both use edge-normalized exclude_outside=1 semantics for exact downsampling
  • require Nemotron V2 VL's exact integer projector scale of 2
  • add immutable source and bounded-header evidence, independent numerical parity, generated support documentation, and route-census promotion
  • preserve the merged core-VLM, Qwen/GLM, and MTP foundations; reuse the merged generic vision/audio task APIs rather than duplicating them

Runtime support remains explicitly deferred for all fourteen routes. Nemotron's co-resident Parakeet tensors remain quarantined rather than silently discarded.

Validation

  • 9,329 broad non-integration tests passed, 64 skipped, 1 subtest passed
  • 12 immutable bounded-header mapping/closure replays passed with timed HTTP 206 range enforcement
  • processor-native patch-weight value mapping tests cover CogVLM, Nemotron, Kimi K2.5/KimiVL, EXAONE, MiMoVL, and MiniMax-M3
  • HunyuanVL and Step3VL executable antialiased upsampling/downsampling parity passed
  • adversarial compensating Q/K/V row-shape rejection passed for HunyuanVL and CogVLM
  • Nemotron scale mismatch, float, and boolean rejection passed
  • MERaLiON processor ABI and projection-width mismatch coverage passed
  • changed-path mypy clean
  • lintrunner and generated documentation clean
  • final medium review found no remaining issues

Waivers

  • paired downstream multimodal runtime: no released runtime contract has been proven for these standalone sidecars, so metadata and warnings remain fail-closed rather than claiming support
  • L4/L5 generation and CUDA/Olive/Foundry probes: these routes export standalone projector components without a validated paired text insertion/runtime contract; graph parity, closure, processor ABI, and immutable artifact evidence are the acceptance boundary

@justinchuby
justinchuby requested review from a team and a lite review from Copilot August 28, 2026 16:56
@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Performance Comparison

Comparing dfe9af5 → d1d0a34

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 68 68 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 324 KB 324 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 265 265 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 127 127 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 450 450 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 176 176 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/mobius/integrations/gguf/_mmproj.py Resolved
@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing dfe9af5 → d1d0a34

Model Sub-model Changes Status
bert (feature-extraction) model 0 ⚪
falcon model 0 ⚪
gemma2 model 0 ⚪
gemma4 (gemma4) decoder 0 ⚪
gemma4 (gemma4) embedding 0 ⚪
gemma4 (gemma4) vision_encoder 0 ⚪
gemma4_text model 0 ⚪
gpt2 model 0 ⚪
llama model 0 ⚪
llama (static-cache) model 0 ⚪
mamba (ssm-text-generation) model 0 ⚪
phi3 model 0 ⚪
phi3 (static-cache) model 0 ⚪
qwen model 0 ⚪
qwen (static-cache) model 0 ⚪
qwen2 model 0 ⚪
qwen2 (static-cache) model 0 ⚪
qwen2_moe model 0 ⚪
qwen2_moe (static-cache) model 0 ⚪
qwen3 model 0 ⚪
qwen3 (static-cache) model 0 ⚪
qwen3_5_moe (hybrid-text-generation) model 0 ⚪
qwen3_5_text (hybrid-text-generation) model 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) decoder 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) embedding 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) vision_encoder 0 ⚪
qwen3_moe model 0 ⚪
qwen3_moe (static-cache) model 0 ⚪
qwen3_next (hybrid-text-generation) model 0 ⚪
t5 (seq2seq) decoder 0 ⚪
t5 (seq2seq) encoder 0 ⚪
whisper (speech-to-text) decoder 0 ⚪
whisper (speech-to-text) encoder 0 ⚪

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

justinchuby and others added 14 commits August 28, 2026 10:23
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]>
@justinchuby
justinchuby force-pushed the justinchuby-remaining-gguf-projectors branch from 0d1569f to b6b8835 Compare August 28, 2026 17:32
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]>
justinchuby and others added 2 commits August 28, 2026 10:39
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]>
@justinchuby
justinchuby merged commit 9d5e75b into main Aug 28, 2026
16 of 25 checks passed
@justinchuby
justinchuby deleted the justinchuby-remaining-gguf-projectors branch August 28, 2026 17:55
justinchuby added a commit that referenced this pull request Aug 28, 2026
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]>
justinchuby added a commit that referenced this pull request Aug 28, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants