rpn-gpt-lightning-MLX-4bit

rpn-gpt-lightning for Apple silicon, quantized with mlx-lm 0.32.2 (mlx_lm.convert -q --q-bits 4 --q-group-size 64, 4.503 bits per weight, 17 GB): NVIDIA Nemotron 3.5 Lightning (30B, 3B active) fine-tuned to drive an exact Forth machine. The main model card has the results and the full story; code: github.com/markab21/rpn-gpt.

The model only writes the Forth. The machine that runs it is rpn_chat.py, a small client loop.

pip install mlx-lm==0.32.2
mlx_lm.server --model markab/rpn-gpt-lightning-MLX-4bit --port 8090
git clone https://github.com/markab21/rpn-gpt && cd rpn-gpt && uv sync
uv run python rpn_chat.py "Calculate the remainder when 82225043186179281 is divided by 6469193." \
  --server mlx --base-url http://localhost:8090 --model default_model

Tested on an M4 Max (128 GB) with mlx 0.32.4 / mlx-lm 0.32.2: 3 of 3 hard demo problems (demo10 numbers 6, 3, 9) correct through rpn_chat.py --server mlx, 240 s in all, about 62 tokens/s. Accuracy not measured. mlx_lm.server 0.32.2 can stop generating on an exact prompt-cache hit in long sessions; training/mlx_local.sh patches it.

License

NVIDIA Nemotron 3.5 Lightning is under the OpenMDW License Agreement, version 1.1: full text and NVIDIA's notice in LICENSE. Our parts (the fine-tune, the card, the code) are MIT, Copyright (c) 2026 Mark Berry and rpn-gpt contributors (LICENSE-MIT). Please credit rpn-gpt with a link to github.com/markab21/rpn-gpt.

Downloads last month
28
Safetensors
Model size
32B params
Tensor type
U32
·
BF16
·
F32
·
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 markab/rpn-gpt-lightning-MLX-4bit

Dataset used to train markab/rpn-gpt-lightning-MLX-4bit

Collection including markab/rpn-gpt-lightning-MLX-4bit