Unsloth's Gemma 4 26B Runs on 15GB, Closing the Local AI Gap
Unsloth's quantization-aware training GGUFs squeeze Google's 26B Mixture-of-Experts model into 15GB while keeping near-bfloat16 accuracy intact.
ProTakeaways
- Unsloth released QAT GGUFs for Google's Gemma 4 26B-A4B Mixture-of-Experts model
- Quantization-Aware Training cuts memory roughly 72% while keeping near-bfloat16 accuracy
- The 26B-A4B QAT build runs on about 15GB of total memory, laptop-friendly
- Unsloth's dynamic Q4_K_XL format reports up to 29x better KLD than naive Q4_0
- Activates only 4B of 26B parameters per token, with 256K context and image input
- Drop-in compatible with llama.cpp, Ollama, LM Studio, and Unsloth Studio under Apache 2.0
Running a 26-billion-parameter Mixture-of-Experts model on a laptop used to mean accepting a noticeable quality hit from aggressive 4-bit quantization. Unsloth's new Gemma 4 26B-A4B QAT GGUF changes that math. By repackaging Google's Quantization-Aware Training checkpoints into a custom dynamic format, the team is shipping a build that fits in roughly 15GB of memory while staying close to the original bfloat16 quality.
This model card is for the new versions of the Gemma 4 family optimized with Quantization-Aware Training (QAT), which allows preserving similar quality to bfloat16 while dramatically reducing the memory requirements to load the model. In Unsloth's hands, that translates to a single GGUF file that drops into llama.cpp, Ollama, LM Studio, or their own Unsloth Studio with no extra setup.
What the A4B actually means
The 26B-A4B is the Mixture-of-Experts middle child of Google's Gemma 4 lineup. The "A" in 26B A4B stands for "active parameters" in contrast to the total number of parameters the model contains. By only activating a 4B subset of parameters during inference, the Mixture-of-Experts model runs much faster than its 26B total might suggest. This makes it an excellent choice for fast inference compared to the dense 31B model since it runs almost as fast as a 4B-parameter model.
Architecturally, it shares the rest of the family's tricks: a hybrid attention mechanism that interleaves local sliding window attention with full global attention, ensuring the final layer is always global. This hybrid design delivers the processing speed and low memory footprint of a lightweight model without sacrificing the deep awareness required for complex, long-context tasks. To optimize memory for long contexts, global layers feature unified Keys and Values, and apply Proportional RoPE (p-RoPE). The model handles a 256K token context window, native function calling, configurable thinking/reasoning mode, and structured output support, plus multimodal text and image input.
Why the QAT build matters
Naive 4-bit quantization on an MoE this size tends to scramble expert routing and degrade output quality. QAT sidesteps that by training the model to anticipate the rounding errors of low-precision inference. Unsloth went a step further: they found that naively converting the QAT Q4_0 checkpoint to Q4_0 in llama.cpp land actually degraded accuracy and was not actually aligned with the BF16 QAT lattice for Q4_0. They applied their Unsloth dynamic method to force a better agreement between the llama.cpp compatible Q4_0 format and the true BF16 QAT Q4_0 format, and managed to both make the quants smaller (Q6_K wasn't needed for embeddings), and also more accurate.
The numbers are striking. Their versions dramatically improve on 99.9% KLD and mean KLD. E2B for example has a mean KLD of 0.00173 vs 0.05109 (29x better relatively) for a naive Q4_0 quantization, and theirs is even 22% smaller. That's why Unsloth ships a single UD-Q4_K_XL file rather than the usual ladder of precisions: precisions higher than the uploaded UD-Q4_K_XL version degrade accuracy rather than improve it.
Hardware reality check
The memory savings are the headline. QAT uses ~72% less memory whilst retaining nearly all its original accuracy. Gemma 4 QAT variants for E2B and E4B are designed for phones and laptops, while the larger 26B-A4B and 31B QAT models now work on laptops rather than just strong home GPUs. Specifically, Gemma-4-E2B QAT runs on 3GB RAM, E4B on 5GB, 12B on 7GB, 26-A4B on 15GB and 31B on 18GB. For comparison, the non-QAT 4-bit version of 26B-A4B needs around 18GB.
Getting it running
The fastest path is a one-liner against the documented llama.cpp setup:
export LLAMA_CACHE="unsloth/gemma-4-26B-A4B-it-qat-GGUF"
./llama.cpp/llama-cli \
-hf unsloth/gemma-4-26B-A4B-it-qat-GGUF:UD-Q4_K_XL \
--temp 1.0 --top-p 0.95 --top-k 64
For vision input, pull the multimodal projector alongside the main weights and pass it via --mmproj. The chat template adds explicit thinking control: compared to older Gemma chat templates, Gemma 4 uses the standard system, assistant, and user roles and adds explicit thinking control. Add the token <|think|> at the start of the system prompt.
Where it fits and where it doesn't
The 26B-A4B sits in a useful sweet spot. The 26B-A4B model is the speed/quality middle ground in the Gemma 4 lineup. Since it is an MoE model with only a subset of parameters active per token, a conservative fine-tuning approach is recommended. If your goal is the highest quality and you have more memory, use 31B instead. Unsloth also notes one quirk worth knowing about: Gemma-4 31B and 26B-A4B ship with num_kv_shared_layers = 0, which can surface as an inference error in some runtimes.
Community feedback on the base model has been mostly enthusiastic, with one recurring complaint. A long-form review on the model card praised it but flagged that creative writing is really really good with this model. However generations are too similar to each other, at the default sampler settings Google recommends, but also using custom settings which have to be set very high to get only slight variation between generations. Another note worth keeping in mind: audio input is reserved for the smaller E2B and E4B variants, not this one.
For developers who want frontier-grade reasoning on a workstation without renting an H100, this release closes a real gap. A 26B MoE with 4B active parameters, a 256K context, image input, and Apache 2.0 licensing, now genuinely running on consumer hardware, is a meaningful shift in what "local" can mean.