Home · What it can build · Writing requests · Architecture · Benchmarks · Fine-tuning · Results · GitHub
Fine-tuning
LoRA on the language model’s attention projections of Inkling 2 Mini; the experts, router and vision tower stay frozen.
| Setting | Value |
|---|---|
| Data | 3,246 ROS 2 code examples + 448 release-fact examples (scripts/build_data.sh -> training/data/) |
| Tokens per epoch | 5.2 M (examples capped at 4,096 tokens) |
| LoRA | r = 32, alpha = 64, dropout 0.05, on q/k/v/o and the output gate of every layer |
| Optimiser | AdamW, lr 1e-4, warm-up then cosine, 8 examples per step per GPU |
| Hardware used | 2x RTX PRO 6000 Blackwell (Brev), 1,370 tokens/s, 36 min, about $10 including setup |
| Memory | about 53 GB per GPU (the NVFP4 experts are de-quantised to bf16 on load) |
Run it
./scripts/build_data.sh
cd training
./setup.sh # training image (vLLM nightly + PEFT) and the model download
./run.sh smoke # 3 steps per GPU
./run.sh # full run; RESUME=1 ./run.sh continues from out/checkpoint
On Brev from a laptop: HF_REPO=<user>/<repo> ./training/brev_orchestrate.sh waits for setup, smoke-tests 2 GPUs
(falls back to 1), trains, copies the outputs back, uploads the adapter to a private Hugging Face repo and deletes the
instance only after the adapter is verified locally.
Serve it
python3 training/merge_lora.py ~/inkling-ft/model training/out/lora_adapter ~/inkling-ft/model-ros2
~/ros2_rag/ros2gen.sh server ros2 # served as inkling-ros2
The merge adds alpha/r * B @ A to the 120 bf16 attention matrices and copies every other tensor unchanged, so the
NVFP4/MXFP8 checkpoint layout, and vLLM’s handling of it, stay the same.
What it did and did not do
Lower held-out loss (0.72 -> 0.60), 16% faster decoding, better release-fact recall (0% -> 7%), but in the agent it is correct on fewer behaviour tasks (15 vs 18 of 20) and no longer emits reasoning at any effort level, because every training example had reasoning off. See results.md. A better next fine-tune would train on successful agent sessions (search, write, check, fix) with the reasoning kept.