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 SciTools/gemma:Q4_K_M
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": "SciTools/gemma:Q4_K_M"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Gemma 4 model weights in GGUF format, used by Understand's AI features and served locally by ullama (llama.cpp).

  • gemma-4-E4B-it-Q4_K_M.gguf โ€” the quantization qualified in SciTools' two-workload evaluation (chat quality 148.6 on the frozen GitAhead scale, 3/3 qualifying runs). Ship and use exactly this file: verdicts do not carry across quantizations.

Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. By downloading these weights you agree to those terms, including the Gemma Prohibited Use Policy (ai.google.dev/gemma/prohibited_use_policy). This repository redistributes the weights unmodified apart from quantization; it is not endorsed by Google.

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

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support