Downloads · 30 days
63
4% of all-time downloads
halley-ai/gpt-oss-120b-MLX-6bit-gs64
gpt-oss-120b-MLX-6bit-gs64 is a text generation model from halley-ai. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
Summary. This is a 6-bit MLX quantization of gpt-oss-120B with group size 64. It targets a smaller memory footprint and higher throughput than the 8-bit gs=32 build while keeping quality close to the bf16/8-bit refere…
Downloads · 30 days
63
4% of all-time downloads
All-time downloads
1.4K
Public
Parameters
117B
62.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors62.7 GB · 100%
How the weights are stored.
U32117B · 100%
From the Hugging Face model README
Summary. This is a 6-bit MLX quantization of gpt-oss-120B with group size 64. It targets a smaller memory footprint and higher throughput than the 8-bit gs=32 build while keeping quality close to the bf16/8-bit references.
openai/gpt-oss-120b (Apache-2.0)q_group_size=64 (some tensors may remain 16-bit for stability)config.json; tokenizer files included for drop-in useRuns on Apple Silicon (M1 or newer) with macOS ≥ 13.5 via MLX (Metal).
pip install mlx-lm
# Python API (uses tokenizer bundled with this repo)
from mlx_lm import load, generate
model, tokenizer = load("halley-ai/gpt-oss-120b-MLX-6bit-gs64")
print(generate(
model, tokenizer,
prompt="Explain the Chudnovsky algorithm to compute π.",
max_tokens=256, max_kv_size=512
))
# CLI
python -m mlx_lm generate --model halley-ai/gpt-oss-120b-MLX-6bit-gs64 \
--prompt "Explain the Chudnovsky algorithm to compute pi." \
--max-kv-size 512 --max-tokens 256
Perplexity (PPL) streaming evaluation on WikiText-2 (raw, test) is recommended with the fast preset (window=stride=4096, ~100k tokens, EOS inserted between docs):
python python/scripts/test_perplexity-mlx.py \
--model_path "/path/to/gpt-oss-120b-MLX-6bit-gs64" \
--fast --progress
For more sensitive comparisons, use overlapping windows (for example, --stride 512) and evaluate the full split.
| Variant | PPL (ctx=4096, fast) |
|---|---|
| MLX 6-bit (gs=64) | 7.40 |
| MLX 8-bit (gs=32) | 7.39 |
| MLX bf16 (reference) | 7.38 |
python -m mlx_lm convert \
--hf-path openai/gpt-oss-120b \
--mlx-path gpt-oss-120b-MLX-6bit-gs64 \
--q-bits 6 --q-group-size 64 -q
--max-kv-size (CLI) or max_kv_size (Python) to the smallest context you need.Outputs may be factually wrong or unsafe. Do not use for medical, legal, or financial decisions without human review. Large models can be sensitive to prompt wording; prefer explicit instructions and structure.