Run this model with HF Jobs

Run Xylolabs/granite-4.2-8b-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/Xylolabs/granite-4.2-8b-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/Xylolabs/granite-4.2-8b-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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Xylolabs/granite-4.2-8b-MLX-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
How to use from
OpenClaw
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "Xylolabs/granite-4.2-8b-MLX-4bit"
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 "Xylolabs/granite-4.2-8b-MLX-4bit" \
  --custom-provider-id mlx-lm \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links
Xylolabs

granite-4.2-8b-MLX-4bit

Apple Silicon MLX 4bit quantization of ibm-granite/granite-4.2-8b (a7042144), paired with Xylolabs/granite-4.2-8b-MLX-8bit.

How to run

mlx_lm.generate --model Xylolabs/granite-4.2-8b-MLX-4bit --prompt "Hello"

Accuracy

Mean KL divergence and top-1 token agreement against the BF16 reference on WikiText-2 and held-out prose.

Quant Size WikiText-2 KL WikiText-2 top-1 Held-out KL Held-out top-1
Xylolabs MLX 4-bit OBS (4-bit/6-bit/8-bit mixed affine g=64, BF16 norms/scales/biases) 6.55 GB 0.081666 90.02% 0.044837 91.72%
Xylolabs MLX 8-bit 9.34 GB 0.009480618282958804 97.11764705882354% 0.0042578610559010945 97.5%

All files and rivals: BENCHMARKS.md

granite-4.2-8b-MLX mean KL divergence granite-4.2-8b-MLX top-1 accuracy

Hardware

Hardware Unified memory Fit Context
MacBook Air / Mac mini 16 GB granite-4.2-8b-MLX-4bit 32K
MacBook Pro / Mac mini 24 GB granite-4.2-8b-MLX-4bit 32K
MacBook Pro 36 GB granite-4.2-8b-MLX-4bit 32K
MacBook Pro / Mac mini 48 GB granite-4.2-8b-MLX-4bit 32K
MacBook Pro / Mac Studio 64 GB granite-4.2-8b-MLX-4bit 32K
Mac Studio 128 GB granite-4.2-8b-MLX-4bit 32K
Mac Studio Ultra 256 GB granite-4.2-8b-MLX-4bit 32K

Updates

  • 2026-12-05: Moved the full comparison to BENCHMARKS.md.
  • 2026-12-03: Initial MLX 4bit release with Hessian OBS 4-bit calibration and BF16 KL evaluation.
Downloads last month
73
Safetensors
Model size
9B params
Tensor type
U32
·
BF16
·
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 Xylolabs/granite-4.2-8b-MLX-4bit

Quantized
(76)
this model

Collections including Xylolabs/granite-4.2-8b-MLX-4bit