Repository navigation
convert: Zyphra Zamba2-VL (text model and mmproj) - #16
Merged
Merged
Conversation
Zamba2_VLForConditionalGeneration is a Zamba2 language model under language_model. (named as in Zamba2ForCausalLM) and Qwen2.5-VL's vision tower and merger under vision_tower. - text: the Zamba2 converter on language_model.*, routed by the top-level architecture; the vocab is padded to vocab_size (tokenizer.json has 32005 tokens, the embedding 32064 rows); the GGUF gets a chat template that takes string content with media markers as well as Zyphra's list form, and renders the same prompt (images before the user turn) - mmproj: the Qwen2.5-VL vision converter on vision_tower.*; the patch embedding has temporal_patch_size 1, so the second patch conv (which clip's Qwen2-VL graph adds for a still image) is written as zeros mtmd takes positions from the text model's rope type, so Zamba2 gets plain sequential positions, and wraps images in <|vision_start|> <|vision_end|>, which Zamba2-VL's vocab has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 26, 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.
Converts Zyphra's Zamba2-VL: a text GGUF and an mmproj. It runs through mtmd with no C++ changes.
Zamba2-VL is a Zamba2 language model under
language_model., with tensor names identical to Zamba2ForCausalLM's, plus Qwen2.5-VL's vision tower and merger undervision_tower..Text GGUF
language_model.*, routed by the top-level architecture.vocab_size: tokenizer.json has 32,005 tokens and the embedding has 32,064 rows.mmproj
vision_tower.*.temporal_patch_sizeis 1, so the second patch conv (which clip's Qwen2-VL graph adds for a still image) is written as zeros. No runtime change.Why no C++ changes: mtmd takes positions from the text model's rope type, so Zamba2 gets plain sequential positions. It wraps images in
<|vision_start|>/<|vision_end|>, which Zamba2-VL's vocab already has.Checked on Strix Halo with Zamba2-VL-2.7B (text Q8_0, mmproj F16),
llama-server --jinja --mmproj, and a 448×336 test image (red square, blue circle, the text "HELLO 42"):Qwen2_5_VisionTransformerPretrainedModelin FP32, with Zamba2-VL's vision weights andQwen2VLImageProcessorfrom its preprocessor config, 192 tokens × 2560:🤖 Generated with Claude Code