How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "Grunzig/gemma-4-31B-it-qat-oQ4-fp16"
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "Grunzig/gemma-4-31B-it-qat-oQ4-fp16"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

gemma-4-31B-it-qat-oQ4-fp16

This model has been converted from BF16 to FP16 for use on Apple Silicon M1/M2.

Original model

The model avneetsb/gemma-4-31B-it-qat-oQ4 was quantized by avneetsb using oQ (oMLX v0.4.2) mixed-precision quantization and uploaded on 2026-06-09.

Quantization details

  • Model type: gemma4
  • Bits: 4
  • Group size: 64
  • Format: MLX safetensors
Downloads last month
79
Safetensors
Model size
6B params
Tensor type
F16
·
U32
·
MLX
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

Model tree for Grunzig/gemma-4-31B-it-qat-oQ4-fp16

Quantized
(1)
this model