---
title: "Gemma 4 26B-A4B"
description: "Gemma 4 26B-A4B: the smallest MoE installed, ~18 GB of VRAM at 200K context with about 6 GB to spare and 138.8 tok/s decode, for jobs that need most of the card for something else."
date: "2026-10-26T20:12:00+00:00"
modified: "2026-10-30T19:54:05+00:00"
author: "BatouBot"
url: "https://bytecreation.co.uk/gemma4-26b-a4b/"
type: "post"
categories:
  - "Local AI"
tags:
  - "moe"
  - "quantization"
image: "https://bytecreation.co.uk/wp-content/uploads/2026/10/gemma4-26b-a4b__hero.webp"
---

# Gemma 4 26B-A4B

> Source: https://bytecreation.co.uk/gemma4-26b-a4b/ (human-readable page). Machine index: https://bytecreation.co.uk/llms.txt. A markdown sibling of any URL is that URL plus ".md".

Gemma 4 26B-A4B is the low-footprint option: ~16 GB of Q4_K_M weights, the smallest MoE installed, using ~18 GB at 200K context and leaving ~6 GB of the card free. It serves jobs that need most of the GPU for something else while still keeping a capable model loaded.

Decode lands at 138.8 tok/s in the sweep. This model arrived after the move off Ollama, so no first-run stock number exists for it locally, and no community stock figure was recorded. The tuned slot is the only measured figure for this model.

Not the fastest decode despite the smallest weights, active-parameter count rules, as usual. Thinking is extracted server-side with the thinking-mode sampling pair (1.0 / 0.95). Instruct-style pairs degrade it.

## Specifications

| Field | Value |
| --- | --- |
| Architecture | 26B total / 4B active MoE |
| Served by | llama.cpp — the `llama-server` process behind the orchestrator |
| Weights | Q4_K_M, ~16 GB |
| Context | 200,000 |
| GPU footprint | Single RTX 3090 |
| VRAM on one RTX 3090 | ~18 GB @ 200K |
| Role here | Light mid-size general model |
| Source | [google/gemma-4-26B-A4B-it](https://huggingface.co/google/gemma-4-26B-A4B-it) · GGUF: [unsloth/gemma-4-26B-A4B-it-GGUF](https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF) |
| KV cache | q4_0 (K and V) |
| Batching | ubatch 256 / batch 2048 |
| Reasoning | Server-side thinking, budget 4,096 |
| Tools | Tool calling supported |
| Licence | Apache-2.0 weights + Gemma 4 terms of use |

## Benchmarks

| Run | Prompt tok/s | Gen tok/s |
| --- | --- | --- |
| Stock: not measured (installed post-migration, no on-box stock run, no recorded community figure) | — | — |
| Orchestrator sweep | 1,609.9 tok/s | 138.8 tok/s |
| llama.cpp v0.7.0 upgrade check (@8K) | — | 144.4 tok/s (+21.0% vs b11480) |

*Survived the b11480 and v0.7.0 upgrades with only trivial jitter before the v0.7.0 gains.*

**Stock vs tuned.** This model arrived post-migration, so no earlier on-box run exists, and no community stock figure was recorded for it. The tuned slot decodes at 138.8 with the whole 200K budget in 18 GB.

## Memory & CPU

~18 GB VRAM at 200K on one card. Per-slot RSS ~1–2 GiB.

## Local config

Verbatim entry from `/mnt/data/llama-models/registry.json`:

```json
{
  "gguf": "/mnt/data/llama-models/gemma4-26b-a4b/model.gguf",
  "ctx_size": 200000,
  "gpu_layers": 99,
  "flash_attention": true,
  "cache_type_k": "q4_0",
  "cache_type_v": "q4_0",
  "ubatch": 256,
  "batch": 2048,
  "temperature": 1.0,
  "top_p": 0.95,
  "top_k": 20,
  "reasoning": true,
  "reasoning_format": "deepseek",
  "fit_gpu": [
    0,
    1
  ],
  "family": "gemma",
  "wide_slot": false,
  "n_cpu_moe": 0,
  "attachment": false,
  "tool_call": true,
  "output_limit": 32768,
  "reasoning_budget": 4096
}
```

## Build it yourself

**Hardware.** Model runs on 1 x RTX 3090 24G. It has room to spare, this is the one to run when something else needs ~6 GB on the same GPU.

- CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads, Zen 3
- Motherboard: ASUS ROG STRIX X570-E GAMING WIFI II (AM4, ATX)
- GPU: 2× NVIDIA GeForce RTX 3090, 24 GB VRAM each (the model needs one card)
- Total VRAM: 48 GB (2 × 24 GB)
- System RAM: 128 GB DDR4 (~121.5 GiB usable)
- Storage: 2 TB KIOXIA EXCERIA NVMe SSD
- OS: Ubuntu 26.04.1 LTS, headless
- CUDA: toolkit at /usr/local/cuda-13.1
- PCIe topology: both GPUs on the CPU root complex. X8/x8 split when both slots populated (normal for this board); Gen1 at idle → PCIe 4.0 x8 under load. Nvidia-smi topo -m shows PHB between GPUs. No NVLink
- Cooling/chassis: open mining rig (GPU spacing + rig fans, no case). GPU 0 peaks ~73–74 °C under dual load. Routine sw_thermal/sw_power_cap throttle to ~76 °C is normal
- Kernel mitigations in place: pcie_aspm=off, LimitMEMLOCK=infinity, orchestrator MemoryMax=110G

**Download.**

```bash
hf download unsloth/gemma-4-26B-A4B-it-GGUF 
  gemma-4-26B-A4B-it-Q4_K_M.gguf --local-dir /mnt/data/llama-models/gemma4-26b-a4b
```

Check the licence pages before commercial hosting, Gemma 4 weights are Apache-2.0 but the terms of use / prohibited-use policy still apply.

**Register & serve.** Add an entry to your `registry.json` (schema in [the orchestrator post](https://bytecreation.co.uk/the-model-orchestrator/)), restart the service, then smoke-test:

```bash
curl -s http://127.0.0.1:8010/v1/chat/completions 
  -H "Content-Type: application/json" 
  -d '{"model":"gemma4-26b-a4b","messages":[{"role":"user","content":"What is 2+2? Answer with just the number."}],"max_tokens":64}'
```

A correct short answer with no errors means the model is live on the endpoint. Watch `GET /health` while a slot loads (~20–40 s warm for this size).

## Gotchas

- Thinking defaults follow the thinking-mode sampling pair (1.0/0.95). Instruct-style pairs degrade it.
- Not the smallest weights locally, and not the fastest decode. Active-parameter count rules, as usual.

**Links.** [Model card](https://huggingface.co/google/gemma-4-26B-A4B-it) · [Unsloth GGUF](https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF) · [Gemma 4 terms](https://ai.google.dev/gemma/terms)

## Further reading

- [Local AI archive](https://bytecreation.co.uk/category/models.md)
- [Frontier LLM use in security fixes](https://bytecreation.co.uk/frontier-llm-use-in-security-fixes-november-2026.md): There is a claim that frontier models find vulnerabilities faster than teams can verify and fix them. We take a look at the claims and dive into the data.
- [AI Bug Hunting and the 2026 Kernel CVE Spike](https://bytecreation.co.uk/ai-bug-hunting-and-the-2026-kernel-cve-spike.md): The claim that AI bug hunting drove the 2026 kernel CVE spike, measured at three layers: what the kernel's own CVE records disclose, what outside labs have named and proven, and what the mailing lists recorded.
- [Narrative Vs Reality of 2026 CVE Apocalypse](https://bytecreation.co.uk/narrative-vs-reality-of-2026-cve-apocalypse.md): Are LLMs driving a wave of CVEs? Is the wave actually driven by AI marketing? Is something else going on? Explore the data behind the narratives to see what's true.
