Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-fp16
An MLX conversion of kevinzhou21/Qwen3.5-9B-Distill-Deepseek-V4.1-Flash-20261004, a Qwen3.5-9B LoRA
fine-tune distilled from DeepSeek-V4.1-Flash. It was converted from the source repo's
F16 GGUF and BF16-mmproj GGUF. This is the full vision-language model: text plus
the vision tower.
This variant: Unquantized fp16 conversion (A_log kept in fp32). Reference quality.
Every variant keeps these in fp16: the norms, the conv kernels, the vision position
embedding, and the vision mlp.linear_fc2. Its input width is 4304, which isn't
divisible by any MLX group size.
Variants
| Repo | bits/weight | size | ppl | mean KL vs fp16 | top-1 agreement |
|---|---|---|---|---|---|
Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-fp16 | 16 | 18 GB | 4.081 | – | – |
Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-8bit-mlp-16bit-rest | 12.0 | 13 GB | 4.085 | 0.00007 | 100% |
Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-8bit | 8.6 | 9.5 GB | 4.086 | 0.00017 | 99.3% |
Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-6bit | 6.6 | 7.3 GB | 4.106 | 0.0027 | 96.3% |
The ppl, KL and top-1 figures come from one 135-token English/code/math passage, measured against the fp16 model. They're a quick sanity check, not a benchmark.
Usage
LM Studio: search for aquathingy/Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-fp16 and download. It runs on LM Studio's
MLX engine, with image input.
mlx-vlm (text + images):
pip install -U mlx-vlm
python -m mlx_vlm.generate --model aquathingy/Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-fp16 \
--image photo.jpg --prompt "Describe this image." --max-tokens 512
mlx-lm (text only; the vision tower is ignored):
pip install -U mlx-lm
mlx_lm.chat --model aquathingy/Qwen3.5-9B-Distill-DeepSeek-V4.1-Flash-MLX-fp16
The chat template thinks by default (<think>…</think>). Pass
enable_thinking=False in the chat-template kwargs to turn that off.
Conversion notes
Converted with gguf2mlx 2.2.0 plus fixes. Quantized with mlx_lm.utils.quantize_model,
run on the full VLM.
-
Text model. gguf2mlx was run through a small wrapper that adds two things it lacks for current llama.cpp Qwen3.5 GGUFs: the
blk.N.post_attention_normname mapping, and skipping the MTP/NextN draft block. The MTP head isn't included; mlx-lm and mlx-vlm drop it anyway. -
Linear-attention fixes. gguf2mlx's GatedDeltaNet output needed three corrections:
- undo llama.cpp's value-head reordering (grouped → tiled)
- apply the missing
A_log = log(-ssm_a) - remove a spurious −1 on
linear_attn.norm
After the fixes, those tensors match
Qwen/Qwen3.5-9Bto fp16 precision. The fine-tune didn't modify them. -
Vision tower. Converted from the mmproj GGUF with a custom mapper, since gguf2mlx has no Qwen3.5 VLM adapter. The result is bit-identical to the
Qwen/Qwen3.5-9Bvision weights (333/333 tensors). -
Tokenizer and processor. The tokenizer, processor config and chat template come from
Qwen/Qwen3.5-9B. The fine-tune's chat template is identical to it.
License
The source fine-tune doesn't declare a license. It's a derivative of Qwen/Qwen3.5-9B,
which is Apache-2.0, so that license is listed here. Check the
source repo for any additional terms.