Downloads · 30 days
126
9% of all-time downloads
YoozLabs/Qwen3.5-4B-qat-GGUF
Qwen3.5-4B-qat-GGUF is a text generation model from YoozLabs. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
The GGUF (Q40) release of Yooz Labs' quantization-aware-trained (QAT) Qwen3.5-4B -- the same weights as Qwen3.5-4B-qat-lean-4bit-mlx, converted for llama.cpp. Stock 4-bit PTQ builds of this model break its aggregation…
Downloads · 30 days
126
9% of all-time downloads
All-time downloads
1.3K
Public
Repo size
2.5 GB
Likes
3
Public
Click a slice to open those files.
.gguf2.5 GB · 100%
From the Hugging Face model README
The GGUF (Q4_0) release of Yooz Labs' quantization-aware-trained (QAT) Qwen3.5-4B -- the same weights as Qwen3.5-4B-qat-lean-4bit-mlx, converted for llama.cpp. Stock 4-bit PTQ builds of this model break its aggregation abilities outright (variable-tracking collapses to 0.00 on the MLX product grid); this build is trained to tolerate 4-bit quantization via knowledge distillation from the full-precision bf16 model, so the quantized weights reproduce the original model's behavior -- aggregation AND multi-turn recall -- at both short and long context.
Qwen/Qwen3.5-4Bllama.cpp convert_hf_to_gguf.py + llama-quantize
to Q4_0 (build e3546c7). The converter's block count is set to 32
layers, matching this model's actual depth.benchmarks/ (infinite repo, Yooz Labs).The comprehensive A/B (needle-in-a-haystack, RULER-style aggregation, MRCR) was run on the MLX build of these exact weights, since that is where the full n=30, two-context-length harness lives; see Qwen3.5-4B-qat-lean-4bit-mlx for the full table and chart. Summary:
| Task | Context | 4-bit PTQ, same grid | Yooz QAT 4-bit |
|---|---|---|---|
| NIAH single | 8K | 1.00 | 1.00 |
| NIAH multikey | 8K | 1.00 | 0.97 |
| Variable tracking | 8K | 0.00 | 0.97 |
| Frequent words | 8K | 0.12 | 0.83 |
| MRCR 2-needle | 8K | 0.97 | 0.97 |
| NIAH single | 32K | 0.97 | 1.00 |
| NIAH multikey | 32K | 1.00 | 0.97 |
| Variable tracking | 32K | 0.89 | 0.99 |
| Frequent words | 32K | 0.22 | 0.77 |
| MRCR 2-needle | 32K | 0.96 | 0.96 |
This GGUF file was separately spot-checked through the actual llama.cpp Q4_0 path (not just the MLX grid) at 8K context, n=30, on an A100-SXM4-80GB (AMD EPYC 7713, Ubuntu 22.04, llama.cpp build e3546c7):
| Task | Context | Yooz QAT 4-bit (this GGUF file) |
|---|---|---|
| Variable tracking | 8K | 0.96 |
| Frequent words | 8K | 0.62 |
| MRCR 2-needle | 8K | 0.94 |
Consistent with the MLX numbers above -- the fix survives re-quantization to a different format.
llama-cli -m Qwen3.5-4B-qat-Q4_0.gguf -p "List the first five prime numbers." -n 64
Or with llama-server for an OpenAI-compatible endpoint:
llama-server -m Qwen3.5-4B-qat-Q4_0.gguf --port 8080
An MLX build of the same QAT weights is available at YoozLabs/Qwen3.5-4B-qat-lean-4bit-mlx.
Maintained by Yooz Labs -- sovereign, on-device AI for macOS. Everything we ship runs locally; nothing goes to a cloud. This build comes out of our long-context research line, where we found and quantified the PTQ aggregation crater -- and then trained it away.
Questions, issues, or corrections: [email protected]
Apache 2.0, inherited from the base checkpoint Qwen/Qwen3.5-4B. Qwen is
a model family by Alibaba Cloud; this is an independent, unofficial QAT
build, not distributed, endorsed, or certified by Alibaba.