Views
No views yet
openai/gpt-oss-120b (Apache-2.0)config.json; tokenizer files included for drop-in usepip install mlx-lm1# Python API (uses tokenizer bundled with this repo)
2from mlx_lm import load, generate
3
4model, tokenizer = load("halley-ai/gpt-oss-120b-MLX-bf16")
5print(generate(
6 model, tokenizer,
7 prompt="Explain the Chudnovsky algorithm to compute π.",
8 max_tokens=256, max_kv_size=512
9))1# CLI
2python -m mlx_lm generate --model halley-ai/gpt-oss-120b-MLX-bf16 \
3 --prompt "Explain the Chudnovsky algorithm to compute pi." \
4 --max-kv-size 512 --max-tokens 256window=stride=4096, ~100k tokens, EOS inserted between docs.| Variant | PPL (ctx=4096, fast) |
|---|---|
| MLX bf16 (non-quant) | 7.38 |
| MLX 8-bit (gs=32) | 7.39 |
| MLX 6-bit (gs=64) | 7.40 |
--stride 512) and evaluate the full split.1python -m mlx_lm convert \
2 --hf-path openai/gpt-oss-120b \
3 --mlx-path gpt-oss-120b-MLX-bf16 \
4 --dtype bfloat16