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-31B-it-qat-q4_0-unquantized-assistant-q8_0-gguf:Q8_0
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/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-31B-it-qat-q4_0-unquantized-assistant-q8_0-gguf:Q8_0"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Use as draft model for gemma-4-31B-it-qat in llama.cpp.

Tested with:

/home/gochu/workspace/repos/llama.cpp-gemma4-mtp/build/bin/llama-server \
  -m /home/gochu/workspace/models/gguf/gemma/qat/gemma-4-31B_q4_0-it.gguf \
  -md /home/gochu/workspace/models/gguf/gemma/draft/gemma-4-31B-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 \
  -ngl 99 \
  -sm tensor \
  -b 2048 \
  -ub 512 \
  -fa on \
  -np 1 \
  --jinja \
  --chat-template-kwargs '{"enable_thinking":true}'
Downloads last month
116
GGUF
Model size
0.5B params
Architecture
gemma4-assistant
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for g0chu/gemma-4-31B-it-qat-q4_0-unquantized-assistant-q8_0-gguf