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 RachidAR/gemma-4-31B-it-qat-Q4_0-Q4emb-MTP-assistant-gguf:Q4_0
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": "RachidAR/gemma-4-31B-it-qat-Q4_0-Q4emb-MTP-assistant-gguf:Q4_0"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Gemma 4 31B QAT MTP Assistant GGUF

GGUF quantizations converted from google/gemma-4-31B-it-qat-q4_0-unquantized-assistant.

Tested with llama.cpp b9549+ (Gemma 4 MTP support).

Recommendations

  • Q4_0-Q4emb — recommended for most users
  • Q4_0-Q6emb — standard llama.cpp quantization

Files

  • gemma-4-31b-qat-it-assistant-bf16.gguf
  • gemma-4-31b-qat-it-assistant-Q4_0-Q4emb.gguf
  • gemma-4-31b-qat-it-assistant-Q4_0-Q6emb.gguf

Notes

Q4_0-Q4emb keeps token_embd.weight in Q4_0, making it closer to the original QAT layout.

This follows a similar approach used by recent Unsloth Gemma QAT releases. Initial testing showed comparable draft acceptance rates while reducing model size.

Example

llama-server \
  -m gemma-4-31B-it-qat-Q4_0.gguf \
  -md gemma-4-31b-qat-it-assistant-Q4_0-Q4emb.gguf \
  --spec-type draft-mtp \
  --spec-draft-n-max 2

Recommended values:

  • --spec-draft-n-max 2 for general use
  • --spec-draft-n-max 3 for coding workloads
  • --spec-draft-n-max 4 may help on highly repetitive tasks
Downloads last month
1,563
GGUF
Model size
0.5B params
Architecture
gemma4-assistant
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

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

Model tree for RachidAR/gemma-4-31B-it-qat-Q4_0-Q4emb-MTP-assistant-gguf

Collection including RachidAR/gemma-4-31B-it-qat-Q4_0-Q4emb-MTP-assistant-gguf