Skip to the content.

Home · What it can build · Writing requests · Architecture · Benchmarks · Fine-tuning · Results · GitHub

Results

All measured on a Dell Pro Max with GB10 (NVIDIA GB10, DGX Spark platform) serving Inkling 2 Mini with vLLM, November 2026. “Pass” means the package builds with colcon in the distro’s ros:<distro>-ros-base image and every executable starts without crashing for 6 seconds. It does not check behaviour. Each benchmark is the 10 tasks in rag/tasks.jsonl, run once, so a difference of one or two tasks can be noise.

Package generation, base model

Approach Build and start
One-shot generator, no retrieval (ros2gen.py bench --no-rag) 4 / 10
One-shot generator with retrieval (ros2gen.py bench) 7 / 10
OpenCode agent with retrieval and build tools (eval/agent_bench.sh) 10 / 10 (7 / 10 with the stricter check, see below)
Task Distro Agent time Build checks
Python service server and client Jazzy 5 min 6
C++ composable node Jazzy 4 min 3
C++ package with its own action Humble 4 min 7
Python TF broadcaster with parameters and launch file Humble 5 min 8
C++ lifecycle node with launch file Kilted 4 min 4
ros2_control hardware interface Kilted 10 min 5
Python Twist publisher and subscriber with launch file Lyrical 16 min 4
C++ multithreaded executor node Lyrical 11 min 12
Nav2 costmap layer plugin Jazzy 6 min 4
Nav2 waypoint follower Humble 14 min 9

Fine-tuning

LoRA r=32 on the language model’s attention projections, 1 epoch over 3,694 examples (5.2M tokens), 2x RTX PRO 6000 Blackwell on Brev, 1,370 tokens/s, 36 min of training, about $10 including setup. Held-out loss after training: 0.60 (perplexity 1.83) on 64 examples. See brev_summary.json, brev_samples.json.

Fine-tuned vs base

Same tasks, same OpenCode agent and tools; only the served model differs (base thinkingmachines/Inkling-2-Mini, fine-tuned = base with the LoRA merged, served as inkling-ros2).

Re-graded with the stricter ros2check. The first version of the build check accepted two kinds of broken package: launch files that crash when loaded (it never started them), and packages ROS cannot find after the build because their package.xml lacks <export><build_type> (colcon then builds them as ROS 1 catkin packages). The check now loads every launch file and requires every package to be visible to ROS. Re-checking the same workspaces:

Task Distro Base Fine-tuned
Python service server and client Jazzy PASS PASS
C++ composable node Jazzy PASS PASS
C++ package with its own action Humble FAIL: package.xml has no build_type FAIL: does not build
Python TF broadcaster with parameters and launch file Humble FAIL: <build_type> outside <export> FAIL: launch file does not load
C++ lifecycle node with launch file Kilted PASS PASS
ros2_control hardware interface Kilted PASS PASS
Python Twist nodes with launch file Lyrical PASS FAIL: launch file imports LaunchConfiguration from the wrong module
C++ multithreaded executor Lyrical FAIL: package.xml has no build_type PASS
Nav2 costmap layer plugin Jazzy PASS PASS
Nav2 waypoint follower Humble PASS FAIL: launch file passes a substitution to os.path.join
Total   7 / 10 6 / 10

The fine-tuned costmap plugin was also loaded into a live Nav2 costmap: it initialises and marks a lethal square centred on the configured point (it treats size as the half-width).

Measure Base Fine-tuned
Agent benchmark, strict re-check 7 / 10 6 / 10
Agent benchmark, build checks used (original run) 59 on tasks 1-8 40 on tasks 1-8
One-shot generator with retrieval 7 / 10 (6 first try) 6 / 10 (3 first try)
Release-facts quiz, exact facts recalled (49 questions) 0.0 % 7.0 %
Release-facts quiz, questions fully right 0.0 % 10.6 %
Held-out loss, all 64 examples (lower is better) 0.718 0.603
… package and file examples 0.67 / 0.58 0.58 / 0.47
… tutorial examples 0.86 0.79
… release-fact examples 1.21 0.38
Generation speed, 1 request (idle GPU) 47.4 tok/s 55.2 tok/s
Generation speed, 4 concurrent requests, total 108.3 tok/s 130.3 tok/s
Speculative decoding, mean accepted tokens per step 2.9 - 3.6 3.1 - 4.3
Reasons before answering yes no (training examples had reasoning off)

Reading. The fine-tune moved the model toward the training data (lower held-out loss everywhere, faster decoding because the drafter now predicts it better) but did not make it a better agent: pass rates are equal or slightly lower, and it gets stuck on harder fixes, likely because it lost its reasoning step. Both models’ failures are mostly package-level mistakes (package.xml, launch files) that the stricter check now reports to the agent, so both should improve on reruns. The comparison that decides it is the 20-task behaviour benchmark in eval/bench2/.

Behaviour benchmark (bench2): final

20 tasks, 5 per distro, each graded three ways: builds, starts (every executable runs, every launch file loads, every package is visible to ROS) and behaves as asked (a hidden check run after the agent finishes: values on topics, service and action results, runtime parameter changes, lifecycle activation, TF, QoS). Every check passes on a known-good reference solution and fails on deliberately broken ones. One agent run per task, 30 min limit. Grades are in bench2/.

  Base Fine-tuned
Builds 19 / 20 19 / 20
Starts 19 / 20 19 / 20
Behaves correctly 18 / 20 15 / 20
Median agent time per task 156 s 144 s
Task Distro Base Fine-tuned
t01 Int32 counter at 5 Hz Jazzy PASS PASS
t02 upper-case echo (C++) Humble PASS FAIL: std::transform into an empty string
t03 AddTwoInts service Kilted PASS PASS
t04 multiply service (C++) Lyrical PASS PASS
t05 rate parameter changed at runtime (C++) Jazzy PASS PASS
t06 moving average filter Humble PASS PASS
t07 custom message in the same package (C++) Kilted PASS PASS
t08 two packages: custom service + Python server Lyrical PASS PASS
t09 custom action with feedback (C++) Jazzy PASS FAIL: tried to write outside the workspace, gave up
t10 lifecycle node (C++) Humble PASS PASS
t11 lifecycle node (Python) Kilted PASS PASS
t12 rclcpp component, min valid range Lyrical FAIL: does not build FAIL: hard-coded range limits instead of the scan’s
t13 moving TF on a circle Jazzy PASS FAIL: rate.sleep() loop without spinning blocks
t14 static TF Humble FAIL: broadcaster is a local, destroyed at once PASS
t15 transient-local (latched) topic Kilted PASS PASS
t16 launch file, two namespaces (C++) Lyrical PASS PASS
t17 launch file + YAML parameters Jazzy PASS PASS
t18 two-node pipeline Humble PASS PASS
t19 counter with reset service (C++) Kilted PASS FAIL: node passed to the executor as a temporary, destroyed
t20 speed limiter with parameter validation Lyrical PASS PASS

Every failure above was checked by hand and is a real bug in the generated package. Grader problems found and fixed before these grades: a stale ROS 2 CLI daemon (failed ros2 lifecycle calls), and test publishers the agent left running in the container, which fed checks stale data; checks now stop leftover ROS processes and restart the daemon.

Verdict. Use the base model in the agent: it is correct on 18 of 20 tasks against 15 of 20. The fine-tuned model writes packages closer to the training data and decodes about 16% faster, but makes more semantic C++ mistakes (object lifetimes, undefined behaviour, blocking loops) that compile and start, so only behaviour checks catch them. That matches it having lost its reasoning step. A better fine-tune would train on successful agent sessions with reasoning kept, rather than on raw source files.

An earlier 448-example run on release facts only moved exact-fact recall from 0% to 7%: fine-tuning is a poor way to teach facts, which is why the main system uses retrieval.