How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
# Run inference directly in the terminal:
llama cli -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
# Run inference directly in the terminal:
llama cli -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
# Run inference directly in the terminal:
./llama-cli -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
# Run inference directly in the terminal:
./build/bin/llama-cli -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Use Docker
docker model run hf.co/MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Quick Links

gemma-4-E2B-it-qat-mobile — GGUF (GPU-friendly)

GGUF of Google's gemma-4 E2B QAT-mobile checkpoint using only tensor types with GPU kernels in llama.cpp. Quantization mirrors the checkpoint's own per-module QAT bit-map (quantization_config): attention and layers 0–14 MLPs → Q4_0, 2-bit-trained modules (remaining MLPs, token_embd, output) → Q2_K, per-layer gates → Q8_0. SRQ activation scales are dropped (not representable in GGUF).

wikitext-2 fidelity vs the bf16 QAT reference: PPL 88.3 (ref 80.6), mean KLD 0.20 — comparable to TQ2_0-based packs, without the CPU-only ternary types.

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

2-bit

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

Model tree for MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF

Quantized
(8)
this model