rpn-gpt-lightning-NVFP4

rpn-gpt-lightning for vLLM on Blackwell GPUs: 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.

How it is made: NVIDIA's own NVFP4 checkpoint (ModelOpt mixed precision), unchanged, except the 93 linears our adapter changes (Mamba in_proj, attention q/k/v/o, shared experts): they hold the merged BF16 weights and are marked unquantized. NVFP4 rounding error on those weights is about 9%, larger than the fine-tune's change, so quantizing them again would erase most of it. Size: 22 GB (NVIDIA's NVFP4: 21 GB). Script: training/nvfp4_merge.py.

Frozen test x1 (external machine, card v4)
This checkpoint 90.5% (BF16 + adapter: 91.7%)
NVIDIA NVFP4 + the LoRA adapter at runtime ~88%
BF16 + the LoRA adapter 91.7%

On 8 prompts (2025 tokens), its top-1 token matched the BF16 merged model's at 98.2% of positions (stock Lightning: 89.8%).

Use

vllm serve markab/rpn-gpt-lightning-NVFP4 --served-model-name rpn --max-model-len 65536 --kv-cache-dtype bfloat16
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." \
  --base-url http://localhost:8000 --model rpn

Tested with vLLM 0.29.0 on an RTX PRO 6000 Blackwell (weight-only FP4 through the Marlin kernel). Keep the KV cache in BF16 (--kv-cache-dtype bfloat16). For a plain chat without the machine, see the main card (card as system prompt, stop: ["```output"], a max_tokens limit).

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
-
Safetensors
Model size
33B params
Tensor type
BF16
·
F8_E4M3
·
F32
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for markab/rpn-gpt-lightning-NVFP4

Dataset used to train markab/rpn-gpt-lightning-NVFP4

Collection including markab/rpn-gpt-lightning-NVFP4