gemma-4-E2B-it-OnlyText-GGUF

GGUF quants of OnlyTextLLMs/gemma-4-E2B-it-OnlyText — the text-only derivative of google/gemma-4-E2B-it. The file is the text backbone alone: no draft head is embedded, so there is no in-file speculative decoding — plain decoding is what the numbers below measure.

Quant files

File Size
gemma-4-E2B-it-OnlyText-Q4_K_M.gguf 3.4 GB
gemma-4-E2B-it-OnlyText-Q6_K.gguf 3.8 GB
gemma-4-E2B-it-OnlyText-Q8_0.gguf 5.0 GB

Quantization damage (vs the F16 master)

llama-perplexity --kl-divergence against the F16 master's logits (ctx 1024, 40 windows, 20440 scored tokens). Same top-1 is the share of positions where the quant keeps the F16 file's top token; KLD is the divergence of the full distribution, whose median is the tail-free summary (a mean over a heavy-tailed loss says more about the tail than about the quant).

Quant Mean KLD Median KLD Same top-1 Max KLD
Q4_K_M 0.3924 0.1044 78.43% 16.77
Q6_K 0.0352 0.0074 93.30% 7.70
Q8_0 0.0077 0.0016 96.68% 1.66

Q4_K_M is not interchangeable with the others here. It changes the top-1 token on 21.6% of positions, against 3.3% for Q8_0, so choose from the Same top-1 column rather than by size alone.

Benchmarks

Measured 2026-09-22 on a single AMD Radeon AI PRO R9700 (gfx1201, 34 GB) with llama.cpp f280b26983ad (HIP/ROCm build, ROCm 7.14, -c 32768 -fa on). Baseline = llama-bench PP512/1024/2048 + TG128/256; chat decode = llama-cli single-turn, 256 generated tokens, median conditions, -np 1.

Quant Device Prefill t/s (PP512) Gen t/s chat Gen t/s llama-bench TG128
Q4_K_M single R9700 5372 108.4 126.2
Q6_K single R9700 3765 111.2 132.3
Q8_0 single R9700 6858 108.8 123.9

The two decode columns are different measurements (chat runs use the chat template and a ~90-token prompt; TG128 is a bare 128-token generation) — do not compare them against each other.

No published baselines are cited for this size — the numbers above are ours.

Usage

Requires a llama.cpp build that knows the gemma4 architecture.

# llama-server (OpenAI-compatible)
llama-server -m gemma-4-E2B-it-OnlyText-Q4_K_M.gguf -ngl 99 -c 32768 -fa on

# llama-cli single-turn chat
llama-cli -m gemma-4-E2B-it-OnlyText-Q4_K_M.gguf -ngl 99 -c 32768 -fa on \
    -st -p "Your prompt"

Notes:

  • The chat template supports Gemma's thinking channel but defaults enable_thinking to false, so plain chat answers directly. Pass "chat_template_kwargs": {"enable_thinking": true} (server API) to let it reason first.
  • Dual-GPU: unset *_VISIBLE_DEVICES env pins; llama.cpp auto layer-splits (--split-mode layer is the default).

Details

  • Base: google/gemma-4-E2B-it (apache-2.0): 4.65B params, 35 layers (28 sliding-attention + 7 full-attention), hidden 1536, vocab 262137, Gemma4ForCausalLM, gemma4 GGUF architecture.
  • Tokenizer: 17 text-only special tokens at ids 0–106 (EOS 1 = <eos>, turn end 106 = <turn|>); image/audio/video tokens removed.
  • Conversion: convert_hf_to_gguf.py (llama.cpp f280b26983ad) then llama-quantize with the file's named type; no draft head is embedded (the family ships none).
  • Weights are untouched derivatives — no additional training.

Attribution

This model is a derivative of google/gemma-4-E2B-it by the Google team, released under the apache-2.0 license. All credit for the underlying weights and capabilities belongs to the original authors; this repository only removes modalities and quantizes, it does not add new training.

Downloads last month
-
GGUF
Model size
5B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OnlyTextLLMs/gemma-4-E2B-it-OnlyText-GGUF

Quantized
(353)
this model