QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF

Model

Gemma 4 12B β€” closest Q4_0 to BF16

5

16 commits

1 linked in READMEs

updated Oct 15, 2026

See the code

README

Gemma 4 12B β€” closest Q4_0 to BF16

arXiv License Collection Native QAT Project page Code

30% lower KL than Google's official Q4_0 QAT and 2.2Γ— closer to BF16 than Unsloth's imatrix Q4_0. Same size as Google. Standard Q4_0 runtime.

Q4_0KL to BF16 ↓Top-1 agreement ↑
QUASAR0.04894.3%
Google QAT0.06993.5%
Unsloth Q4_0 (imatrix)0.10891.6%
Standard Q4_0 (llama-quantize, no imatrix)0.15689.8%

The W4A16 twin shows the same pattern under transformers: KL 0.034 to BF16 vs 0.044 for Google's W4A16 QAT (top-1 95.5% vs 94.8%).

ollama run hf.co/QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF
llama-cli -hf QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF

KL to BF16 through llama.cpp, per 4-bit file

QUASAR also gets lower KL than Unsloth's Q4_0 repack of Google's QAT checkpoint, and than LM Studio's Q4_K_M β€” a more expressive format:

GGUFKL to BF16 ↓
QUASAR Q4_00.048
Unsloth Google-QAT repack (Q4_0)0.053
LM Studio Q4_K_M0.110

Same BF16 reference, prompts, llama.cpp build, and backend.

Full evaluation and reproduction details β†’ EVAL.md

Downstream benchmarks

Higher point estimates on all four downstream benchmarks than Google's QAT model (measured on the W4A16 twin, which carries the same trained codes).

BenchmarkQUASARGoogle QAT
MMLU70.467.8
IFEval87.687.3
ARC-Challenge51.350.1
AGIEval24.222.6
Average58.457.0

The MMLU gain is statistically robust: +2.6 points, 95% CI [+2.0, +3.2] (paired bootstrap over 14,042 questions). Full configs, BF16 results and CIs are in EVAL.md.

Native QAT GGUF

Native Q4_0 QAT, not a post-training re-quantization. The GGUF stores QUASAR's trained INT4 codes and scales directly; all 328 quantized tensors are verified against the W4A16 twin (native_q4_0_receipt.json, verifier in scripts/). No re-rounding and no custom runtime.

Multimodal support is included through the BF16 vision projector from google/gemma-4-12B-it.

Run it

  • Ollama: ollama run hf.co/QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF β€” the vision projector is picked up automatically.
  • LM Studio: search QUASAR-QAT gemma-4-12B in Discover.
  • llama.cpp, vision: llama-mtmd-cli -hf QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF --image photo.jpg -p "Describe this image." --jinja
  • Thinking: on by default in the embedded Gemma 4 chat template; toggle with --chat-template-kwargs '{"enable_thinking": false}' (llama-cli / llama-server).
  • Sampling: Gemma 4 defaults β€” temperature 1.0, top-k 64, top-p 0.95.
  • Context: 262,144 tokens.

What's inside

FileSize
gemma-4-12B-it-QUASAR-Q4_0.gguf β€” Q4_0 linears (trained group-64 scales), Q6_K token embeddings, chat template embedded6.98 GB
mmproj-gemma-4-12B-it-BF16.gguf β€” unmodified BF16 vision projector from google/gemma-4-12B-it175 MB
native_q4_0_receipt.json, SHA256SUMS, EVAL.md, scripts/ (packer/verifier, eval harvest, paired bootstrap)

QUASAR

QUASAR is loss-aware quantization-aware training. It improves the low-bit reconstruction during training, then exports to standard deployment formats with zero inference overhead.

This checkpoint was healed against the BF16 teacher for ~600M tokens: one epoch over ~377k prompts self-distilled from BF16 Gemma 4 12B-it with thinking on, fp32 master weights, INT4 group-64.

License

Based on Gemma 4 by Google DeepMind. Upstream LICENSE/NOTICE apply.

Citation

arxiv.org/abs/2608.13966

@article{counathe2026quasar,
  title={QUASAR: Lowering the Loss Floor of Quantization-Aware Training with Loss-Aware Reconstruction},
  author={Counathe, Vincent and Athiwaratkun, Ben and De Sa, Christopher and Zhang, Tianyi},
  journal={arXiv preprint arXiv:2608.13966},
  year={2026}
}
4-bit precision
agentic
audio
conversational
endpoints_compatible
function-calling
gemma
gemma-4
gemma4
gemma-4-12b
gemma-4-12b-it
gguf
google
image-text-to-text
int4
llama.cpp
lm-studio
long-context
model-index
multilingual
multimodal
native-qat
ollama
q4_0
quantization-aware-training
quantized
quasar
reasoning
text-generation
thinking
tool-calling
vision
weight-only

QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF

Model

Gemma 4 12B β€” closest Q4_0 to BF16

5

16 commits

1 linked in READMEs

updated Oct 15, 2026

See the code

README

Gemma 4 12B β€” closest Q4_0 to BF16

arXiv License Collection Native QAT Project page Code

30% lower KL than Google's official Q4_0 QAT and 2.2Γ— closer to BF16 than Unsloth's imatrix Q4_0. Same size as Google. Standard Q4_0 runtime.

Q4_0KL to BF16 ↓Top-1 agreement ↑
QUASAR0.04894.3%
Google QAT0.06993.5%
Unsloth Q4_0 (imatrix)0.10891.6%
Standard Q4_0 (llama-quantize, no imatrix)0.15689.8%

The W4A16 twin shows the same pattern under transformers: KL 0.034 to BF16 vs 0.044 for Google's W4A16 QAT (top-1 95.5% vs 94.8%).

ollama run hf.co/QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF
llama-cli -hf QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF

KL to BF16 through llama.cpp, per 4-bit file

QUASAR also gets lower KL than Unsloth's Q4_0 repack of Google's QAT checkpoint, and than LM Studio's Q4_K_M β€” a more expressive format:

GGUFKL to BF16 ↓
QUASAR Q4_00.048
Unsloth Google-QAT repack (Q4_0)0.053
LM Studio Q4_K_M0.110

Same BF16 reference, prompts, llama.cpp build, and backend.

Full evaluation and reproduction details β†’ EVAL.md

Downstream benchmarks

Higher point estimates on all four downstream benchmarks than Google's QAT model (measured on the W4A16 twin, which carries the same trained codes).

BenchmarkQUASARGoogle QAT
MMLU70.467.8
IFEval87.687.3
ARC-Challenge51.350.1
AGIEval24.222.6
Average58.457.0

The MMLU gain is statistically robust: +2.6 points, 95% CI [+2.0, +3.2] (paired bootstrap over 14,042 questions). Full configs, BF16 results and CIs are in EVAL.md.

Native QAT GGUF

Native Q4_0 QAT, not a post-training re-quantization. The GGUF stores QUASAR's trained INT4 codes and scales directly; all 328 quantized tensors are verified against the W4A16 twin (native_q4_0_receipt.json, verifier in scripts/). No re-rounding and no custom runtime.

Multimodal support is included through the BF16 vision projector from google/gemma-4-12B-it.

Run it

  • Ollama: ollama run hf.co/QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF β€” the vision projector is picked up automatically.
  • LM Studio: search QUASAR-QAT gemma-4-12B in Discover.
  • llama.cpp, vision: llama-mtmd-cli -hf QUASAR-QAT/gemma-4-12B-it-QUASAR-Q4_0-GGUF --image photo.jpg -p "Describe this image." --jinja
  • Thinking: on by default in the embedded Gemma 4 chat template; toggle with --chat-template-kwargs '{"enable_thinking": false}' (llama-cli / llama-server).
  • Sampling: Gemma 4 defaults β€” temperature 1.0, top-k 64, top-p 0.95.
  • Context: 262,144 tokens.

What's inside

FileSize
gemma-4-12B-it-QUASAR-Q4_0.gguf β€” Q4_0 linears (trained group-64 scales), Q6_K token embeddings, chat template embedded6.98 GB
mmproj-gemma-4-12B-it-BF16.gguf β€” unmodified BF16 vision projector from google/gemma-4-12B-it175 MB
native_q4_0_receipt.json, SHA256SUMS, EVAL.md, scripts/ (packer/verifier, eval harvest, paired bootstrap)

QUASAR

QUASAR is loss-aware quantization-aware training. It improves the low-bit reconstruction during training, then exports to standard deployment formats with zero inference overhead.

This checkpoint was healed against the BF16 teacher for ~600M tokens: one epoch over ~377k prompts self-distilled from BF16 Gemma 4 12B-it with thinking on, fp32 master weights, INT4 group-64.

License

Based on Gemma 4 by Google DeepMind. Upstream LICENSE/NOTICE apply.

Citation

arxiv.org/abs/2608.13966

@article{counathe2026quasar,
  title={QUASAR: Lowering the Loss Floor of Quantization-Aware Training with Loss-Aware Reconstruction},
  author={Counathe, Vincent and Athiwaratkun, Ben and De Sa, Christopher and Zhang, Tianyi},
  journal={arXiv preprint arXiv:2608.13966},
  year={2026}
}
4-bit precision
agentic
audio
conversational
endpoints_compatible
function-calling
gemma
gemma-4
gemma4
gemma-4-12b
gemma-4-12b-it
gguf
google
image-text-to-text
int4
llama.cpp
lm-studio
long-context
model-index
multilingual
multimodal
native-qat
ollama
q4_0
quantization-aware-training
quantized
quasar
reasoning
text-generation
thinking
tool-calling
vision
weight-only