Run this model with HF Jobs
Run pratikgx/groundhog-1-MLX-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/pratikgx/groundhog-1-MLX-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/pratikgx/groundhog-1-MLX-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use pratikgx/groundhog-1-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use pratikgx/groundhog-1-MLX-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download pratikgx/groundhog-1-MLX-4bit --local-dir groundhog-1-MLX-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
groundhog-1 MLX 4-bit
4-bit MLX build of Baseten's groundhog-1 decision model, measured on my 64GB M5 Pro Mac mini. Official weights are by baselabs. This repository is a code port of their System One decision path to Apple Silicon, plus the 4-bit weights. The port was built with a coding agent.
This is not a chat model. groundhog-1 answers by scoring options in one prefill. It takes a state and typed questions (noul, choice, or score) and returns probabilities. There is no generated text.
License follows the official checkpoint: MIT and Apache 2.0. See LICENSE and NOTICE.
Source: baselabs/groundhog-1 (26B MoE, about 4B active, built on Gemma 4).
What's in this repo
- MLX affine 4-bit weights, group size 64. Routers stay 8-bit, which is the mlx-lm default for Gemma 4. The 4-bit files are 13.22 GB on disk, down from 49.47 GB for the official BF16 snapshot.
engine/, a small System One decision engine: qev-labels-v2 prompts, slot_lm readout (256 slots), and Baseten's attention overrides (block-bidirectional mask on full-attention layers, causal sliding-window layers).- Tokenizer, chat template, and
readout.jsonfrom the official repo.
Precision is in the repo name on purpose: this is 4-bit MLX, not BF16.
Numbers on my 64GB M5 Pro Mac mini
Another workload kept running during these measurements. These are not isolated-idle figures, and I am not reporting a system memory peak as the model's memory. The measured results:
- Public JevBench, 231 items: 206/231 (easy 48/48, original 71/72, hard 87/111). Median 0.268 s per item.
- Latency at 513 tokens, 1 warmup + 20 timed, median: 0.840 s per decision (p95 0.862 s, 1.19 decisions/s).
- Hosted-API agreement on a fixed 30-item slice: 30/30 decisions matched Baseten's hosted System One API. Mean absolute probability difference 0.0167, max 0.275. This is hosted-API agreement, not local BF16 OneJev parity.
- The same 231 items on Baseten's hosted API scored 210/231 (easy 48/48, original 72/72, hard 90/111). That is a different runtime, not a like-for-like comparison.
Raw JSON, charts, and setup notes: pratikgx/groundhog-1-m5-pro-mac-mini-bench. Write-up: local-ai-field-notes.
Runtime was mlx 0.32.4 and mlx-lm 0.32.2.
Use it
Install mlx-lm 0.32.2 or newer, clone or snapshot this repo, and add engine/ to PYTHONPATH.
from engine.engine_mlx import DecisionEngine
engine = DecisionEngine("/path/to/groundhog-1-MLX-4bit")
out = engine.decide(
state="The customer asked where their order is. The tracking page shows it shipped yesterday.",
questions={
"decision": {
"type": "choice",
"instructions": "What does the customer want?",
"criteria": {
"track_order": "They want shipment status",
"cancel_order": "They want to cancel",
"billing_question": "They have a billing question",
},
}
},
)
print(out["answers"]["decision"])
Do not use a generic chat generate loop. The model is meant to be scored at the slot letters in one prefill, with thinking off.
How the 4-bit files were built
The official BF16 safetensors were converted tensor-by-tensor with mx.quantize (affine, group 64), matching mlx-lm's Gemma 4 rules: norms stay unquantized, embeddings and Linear/SwitchLinear weights are quantized, and router.proj stays 8-bit. The converter also lifts per_layer_config into global_head_dim=512 and num_global_key_value_heads=2, which is what mlx-lm reads for the full-attention layers.
Credits
- Model: Baseten / baselabs / baselabs/groundhog-1
- Prompt and readout conventions follow OneJev/qev (qev-labels-v2) plus Baseten's published attention and slot_lm overrides
- This MLX port and 4-bit conversion were built with a coding agent on my Mac mini
Write-up on GitHub
How I ran this, what broke, and the scripts: Baseten groundhog-1 (MLX 4-bit). It's part of Local AI field notes, where I log every model I run on my Mac mini.
- Downloads last month
- 97
4-bit
Model tree for pratikgx/groundhog-1-MLX-4bit
Base model
google/gemma-4-26B-A4B