Run this model with HF Jobs

Run Xylolabs/Qwen2.5-7B-Instruct-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/Qwen2.5-7B-Instruct-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/Qwen2.5-7B-Instruct-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/Qwen2.5-7B-Instruct-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.
Xylolabs

Qwen2.5-7B-Instruct-MLX-4bit

Apple Silicon MLX 4bit quantization of Qwen/Qwen2.5-7B-Instruct (a09a3545), paired with Xylolabs/Qwen2.5-7B-Instruct-MLX-8bit.

How to run

mlx_lm.generate --model Xylolabs/Qwen2.5-7B-Instruct-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
MLX 8-bit (8-bit affine g=64, BF16 norms/scales/biases) 8.09 GB 0.001391 97.76% 0.001103 98.23%
MLX 4-bit OBS (4-bit/6-bit/8-bit mixed affine g=64, BF16 norms/scales/biases) 4.39 GB 0.036836 91.01% 0.023599 92.93%
Qwen2.5-7B-Instruct-MLX mean KL divergence Qwen2.5-7B-Instruct-MLX top-1 accuracy

Hardware

Hardware Unified memory Fit Context
MacBook Air / Mac mini 16 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
MacBook Pro / Mac mini 24 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
MacBook Pro 36 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
MacBook Pro / Mac mini 48 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
MacBook Pro / Mac Studio 64 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
Mac Studio 128 GB Qwen2.5-7B-Instruct-MLX-4bit 32K
Mac Studio Ultra 256 GB Qwen2.5-7B-Instruct-MLX-4bit 32K

Updates

  • 2026-12-03: Initial MLX 4bit release with Hessian OBS 4-bit calibration and BF16 KL evaluation.
Downloads last month
4
Safetensors
Model size
8B 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/Qwen2.5-7B-Instruct-MLX-4bit

Base model

Qwen/Qwen2.5-7B
Quantized
(475)
this model

Collections including Xylolabs/Qwen2.5-7B-Instruct-MLX-4bit