How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "MonsieurTapir/gemma-4-E2B-it-qat-mobile-GGUF:Q2_K_MIX"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
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