GGUF
conversational
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 g0chu/gemma-4-12B-it-qat-w4a16-ct-gguf
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": "g0chu/gemma-4-12B-it-qat-w4a16-ct-gguf"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Notes:

  • -sm tensor flag causes a crash on llama-server startup.

Tested with:

/home/gochu/workspace/repos/llama.cpp/build/bin/llama-server \
  -m /home/gochu/workspace/models/gguf/gemma/qat/gemma-4-12B-it-qat-w4a16-ct.gguf \
  -md /home/gochu/workspace/models/gguf/gemma/draft/gemma-4-12B-it-qat-q4_0-unquantized-assistant-q8_0.gguf \
  --spec-type draft-mtp \
  --spec-draft-n-max 3 \
  --host 0.0.0.0 \
  --port 8080 \
  -c 128000 \
  -b 2048 \
  -ub 512 \
  -ngl 99 \
  -fa on \
  --jinja \
  -np 1 \
  --reasoning on \
  --mmproj /home/gochu/workspace/models/gguf/gemma/mmproj/mmproj-gemma-4-12b-it-qat-q4_0.gguf
Downloads last month
67
GGUF
Model size
13B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

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

Model tree for g0chu/gemma-4-12B-it-qat-w4a16-ct-gguf