How to use from
OpenClaw
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 OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "RachidAR/gemma-4-31B-it-qat-Q4_0-Q4emb-MTP-assistant-gguf:Q4_0" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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