SAVRN
Search Contact SAVRN

Open-weight model · Text generation

granite-4.2-3b-Q4_K_M-imatrix-GGUF

by David Reedy quark75/granite-4.2-3b-Q4_K_M-imatrix-GGUF

granite-4.2-3b-Q4_K_M-imatrix-GGUF is an open-weight model for text generation from David Reedy, released under Apache License 2.0. Its published files total 2.2 GB.

A 4-bit GGUF of ibm-granite/granite-4.2-3b, quantized with an importance matrix built from a mixed prose and tool-calling calibration corpus. Of the three quantizations we made of this model, it's the closest to the original and the smallest.

Parameters—
Context—
Weights2.2 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By David Reedy, published under apache-2.0, revision f92295219f54.

A 4-bit GGUF of ibm-granite/granite-4.2-3b, quantized with an importance matrix built from a mixed prose and tool-calling calibration corpus. Of the three quantizations we made of this model, it's the closest to the original and the smallest. "Same top token" is llama.cpp's Same top p statistic: the share of positions where the quantized model's most likely next token matches the f16 model's. 1. Convert: converthftogguf.py (mainline llama.cpp), bf16 safetensors → f16 GGUF. Granite's scaling parameters (attentionscale, embeddingscale, residualscale, logitsscale) are supported natively. 2. Importance matrix: llama-imatrix over prose plus tool-calling conversations, rendered through Granite's…

Read David Reedy's full model card

Granite-4.2-3B — Q4_K_M GGUF (imatrix)

A 4-bit GGUF of ibm-granite/granite-4.2-3b, quantized with an importance matrix built from a mixed prose and tool-calling calibration corpus. Of the three quantizations we made of this model, it's the closest to the original and the smallest.

File Quant Size Bits per weight Mean KLD vs f16 Same top token
granite-4.2-3b-Q4_K_M.gguf Q4_K_M + imatrix 2.1 GB 4.90 0.062012 87.88%

"Same top token" is llama.cpp's Same top p statistic: the share of positions where the quantized model's most likely next token matches the f16 model's.

How it was made

  1. Convert: convert_hf_to_gguf.py (mainline llama.cpp), bf16 safetensors → f16 GGUF. Granite's scaling parameters (attention_scale, embedding_scale, residual_scale, logits_scale) are supported natively.
  2. Importance matrix: llama-imatrix over bartowski's v6 calibration dataset: prose plus tool-calling conversations, rendered through Granite's own chat template. 573 chunks of 512 tokens.
  3. Quantize: llama-quantize --imatrix <imatrix> <f16.gguf> <out.gguf> Q4_K_M.
  4. Evaluate: llama-perplexity --kl-divergence against the f16 model's saved logits, on the wikitext-2-raw test split.

The calibration corpus matters. This build beat our best GPTQ build (0.110 KLD) by about 44%. Plain wikitext-2 is a common default for imatrix calibration, but a corpus in the model's own chat format with tool use covers more of what the model actually does.

Usage

llama-server -m granite-4.2-3b-Q4_K_M.gguf

Any llama.cpp-based runtime that supports Granite 4 should load it. We haven't benchmarked this file's inference speed yet. The speed figures in the GPTQ card are for vLLM and don't apply here.

Which one should I use?

  • llama.cpp, Ollama, LM Studio, or similar: this GGUF. It's the best quality and the smallest of the three.
  • vLLM: the GPTQ W4A16 build, which has measured serving numbers on RDNA2.
  • MXFP4 research: the MXFP4 build (compressed-tensors and GGUF). It's an experiment, not the recommended pick.

All quantizations compared

Variant Format Size Mean KLD vs unquantized ↓ Perplexity (wikitext-2) Eval harness
Original (bf16) safetensors (2 shards) 6.8 GB — 19.94 transformers
Q4_K_M + imatrix GGUF, 4.90 BPW 2.1 GB 0.062 not measured llama.cpp
GPTQ W4A16 (int4) compressed-tensors 2.7 GB 0.110 21.11 (+5.88%) transformers
MXFP4A16 compressed-tensors 2.6 GB 0.1405 21.27 (+6.68%) transformers
MXFP4 GGUF (same weights, transcoded) GGUF 2.5 GB 0.138 +7.1% vs f16 llama.cpp

Lower KLD means the quantized model's next-token distribution stays closer to the original's.

How to read this table. The GGUF rows come from a different harness than the others. - GGUF rows: llama-perplexity --kl-divergence against the f16 GGUF's logits, on the wikitext-2-raw test split. - GPTQ and MXFP4 (compressed-tensors): a transformers script that loads each model next to the bf16 original and compares them over 51,100 tokens of the same wikitext-2 test split.

Both measure mean KL divergence on the same corpus, but the code isn't identical. Compare rows within the same harness directly; across harnesses, treat gaps as directional, not decimal-precise. The MXFP4 weights were measured both ways (0.1405 in transformers, 0.138 in llama.cpp), which gives a feel for how closely the two harnesses agree.

Hardware: all measurements are on an AMD Radeon Pro V620 (RDNA2, gfx1030, 32 GB) with ROCm 7.14. Nothing here was tested on NVIDIA or other AMD GPUs.

Credits

Identity and Version

Repository
quark75/granite-4.2-3b-Q4_K_M-imatrix-GGUF
Publisher
David Reedy
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
f92295219f54bd4562742e520460ec3dfbc2ffbc
First published
2026-09-24
Last updated
2026-09-24

Files and Weights

3 files, 2.2 GB in total. The weights are 1 file totalling 2.2 GB in gguf.

Weights1 file · 2.2 GB
Documentation1 file · 5.0 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
granite-4.2-3b-Q4_K_M.ggufWeights2.2 GB 9aa10eb86600
README.mdDocumentation5.0 KB —
.gitattributesRepository1.6 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
2.2 GB
Download from David Reedy

Released by David Reedy through its official repository on Hugging Face. Read the license.

Built From

  • Derived from ibm-granite/granite-4.2-3b
  • Quantized from ibm-granite/granite-4.2-3b

Memory Requirements

PrecisionWeights in memory
As published2.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About granite-4.2-3b-Q4_K_M-imatrix-GGUF

Can I use granite-4.2-3b-Q4_K_M-imatrix-GGUF commercially?

Yes. granite-4.2-3b-Q4_K_M-imatrix-GGUF is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Fine-tune Qwen3 (14B) for free using our Google Colab notebook! - Read our Blog about Qwen3 support: unsloth.ai/blog/qwen3 - View the rest of our notebooks in our docs here. Qwen3-Coder is available in multiple sizes. Today, we're excited to introduce Qwen3-Coder-30B-A3B-Instruct. This streamlined model maintains impressive performance and efficiency, featuring the following key enhancements: - Significant Performance among open models on Agentic Coding, Agentic Browser-Use, and other foundational coding tasks. - Long-context Capabilities with native support for 256K tokens, extendable up to 1M tokens using Yarn, optimized for repository-scale understanding. - Agentic Coding supporting for…

Open weights apache-2.0 transformers

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers