Run this model with HF Jobs

Run Xylolabs/Qwen3-4B-SafeRL-MLX-8bit 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/Qwen3-4B-SafeRL-MLX-8bit. 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/Qwen3-4B-SafeRL-MLX-8bit 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/Qwen3-4B-SafeRL-MLX-8bit. 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

Qwen3-4B-SafeRL-MLX-8bit

Apple Silicon MLX 8bit quantization of Qwen/Qwen3-4B-SafeRL (1b95ccb8), paired with Xylolabs/Qwen3-4B-SafeRL-MLX-4bit.

How to run

mlx_lm.generate --model Xylolabs/Qwen3-4B-SafeRL-MLX-8bit --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) 4.27 GB 0.001678 97.84% 0.001728 97.82%
MLX 4-bit OBS (4-bit/6-bit/8-bit mixed affine g=64, BF16 norms/scales/biases) 2.32 GB 0.059755 89.38% 0.066354 88.84%
Qwen3-4B-SafeRL-MLX mean KL divergence Qwen3-4B-SafeRL-MLX top-1 accuracy

Hardware

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

Updates

  • 2026-12-03: Initial MLX 8bit release with Hessian OBS 4-bit calibration and BF16 KL evaluation.
Downloads last month
2
Safetensors
Model size
4B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Xylolabs/Qwen3-4B-SafeRL-MLX-8bit

Finetuned
Qwen/Qwen3-4B
Quantized
(12)
this model

Collections including Xylolabs/Qwen3-4B-SafeRL-MLX-8bit