Can a 53 MB LoRA adapter match high-reasoning coding accuracy inside OpenCode with reasoning off? Inkling-2-Mini harness adaptation
Yes. Using online multi-turn Async GRPO inside live OpenCode 2.2.7 containers across 1,050 tasks on 8x NVIDIA H200, we trained a 53.5 MB attention-only LoRA adapter (spheron/Inkling-2-Mini-opencode-adapted) on thinkingmachines/Inkling-2-Mini. With reasoning set to none, it matches Base (effort=high) on the full 89-task Terminal-Bench 2.1 suite (43.8% vs 42.7%), cuts median tokens 4.4x, and stays drop-in compatible with Intuit’s DSpark speculative drafter for 2.12x single-user decode speed on 1x H200.
Findings: Inkling-2-Mini OpenCode adapter
- Matches
Base (effort=high)on full 89-task Terminal-Bench 2.1 with reasoning off. Inside OpenCode 2.2.7,Base (effort=none)solved 34/89 (38.2%),Base (effort=high)solved 38/89 (42.7%), andAdapter step 70 (effort=none)solved 39/89 (43.8%): +5.6 pts vs Base none (+11/-6, paired 95% CI +/-9.0 pts, McNemar p=0.332) and +1.1 pts vs Base high (+8/-7, p=1.000). On the 49 held-out tasks (indices 40 to 88) never used for checkpoint selection, pass rate climbed from 19/49 (38.8%) to 21/49 (42.9%). - 4.4x fewer median tokens overall, and 5.7x fewer reasoning tokens on shared solves. Across all 89 tasks vs
Base (effort=high), median total tokens dropped from 23,483 to 5,294, median reasoning tokens dropped 6.6x (17,582 to 2,656), and median wall time fell 537 s to 363 s (-32.4%). Strictly on the 31 tasks solved by both arms, mean tokens dropped -47.5%, mean tool calls dropped -31.3%, and mean wall time dropped -32.5%. - Timeouts fell -38.1% at
effort=none, and both RL training and held-out Gate B peaked at step 70. Full-89 timeouts dropped from 21 to 13. Online rollout correctness rose from 53.0% (steps 1 to 10) to 66.0% (steps 61 to 70, 311 groups / 1,902 rollouts) before dipping to 48.0% in steps 71 to 76. Gate B (paired 40-task TB 2.1 sweep) confirmed step 70 at 18/40 (45.0%, 4 timeouts) vs 15/40 (37.5%) for Base, step 60 and step 76. - Statistical tie on out-of-distribution
SWE-rebench-V2.1with 21.2% fewer median tokens on shared solves. Across 45 valid container environments out of 50 held-out SWE-rebench tasks, Base solved 35/45 (77.8%) vs 33/45 (73.3%) for Adapter (-4.4 pts, +2/-4, McNemar p=0.688). On the 31 shared solves, median generated tokens fell from 5,371 to 4,234 (-21.2%). - Drop-in DSpark speculative decoding reaches 214 tok/s solo (2.12x) and 1,499 tok/s at 16 users on 1x H200. With zero drafter retraining,
intuit/Inkling-2-Mini-dspark(k=7) retains 93.7% to 96.5% of its base acceptance length (2.36 to 2.45 vs 2.48 to 2.54). - Single-seed honesty. At N=89 tasks on a single seed, both accuracy contrasts (+5.6 pts vs Base none, p=0.332; -4.4 pts on SWE-rebench, p=0.688) cross zero at 95% confidence. The efficiency gains over Base high and the timeout reduction at
effort=noneare the largest, cleanest signal in this study.
Full 89-task Terminal-Bench 2.1
All three arms ran inside identical OpenCode 2.2.7 containers on the complete 89-task Terminal-Bench 2.1 suite (131,072 context window, 8,192 MB container RAM, 1,800 s per-task wall cap). Training the 53.5 MB attention-only LoRA adapter lifts effort=none from 38.2% to 43.8%, edging past Base (effort=high) at 42.7% while keeping median token spend down at 5,294 instead of 23,483.
| Arm | Effort / T | Pass rate | Timeouts | Mean / med tools | Mean / med total tok | Mean / med rsn tok | Mean / med wall |
|---|---|---|---|---|---|---|---|
| Base (effort=none) | none / 0.8 | 34/89 (38.2%) | 21 | 17.5 / 10 | 19,611 / 4,486 | 15,586 / 2,079 | 773.1 s / 572.9 s |
| Base (effort=high) | high / 1.0 | 38/89 (42.7%) | 7 | 29.1 / 20 | 31,738 / 23,483 | 25,224 / 17,582 | 654.3 s / 536.9 s |
| Adapter step 70 (effort=none) | none / 0.8 | 39/89 (43.8%) | 13 | 19.2 / 12 | 19,913 / 5,294 | 15,422 / 2,656 | 666.8 s / 362.9 s |
| Comparison | N | Baseline | Candidate | Delta (95% CI) | +/- | McNemar p | Shared solves |
|---|---|---|---|---|---|---|---|
| tb21_89_adapter_vs_base_none | 89 | 34 (38.2%) | 39 (43.8%) | +5.6 (+/-9.0) | +11/-6 | 0.332 | 28 |
| tb21_49_heldout_adapter_vs_base_none | 49 | 19 (38.8%) | 21 (42.9%) | +4.1 (+/-12.6) | +6/-4 | 0.754 | 15 |
| tb21_89_adapter_none_vs_base_high | 89 | 38 (42.7%) | 39 (43.8%) | +1.1 (+/-8.5) | +8/-7 | 1.000 | 31 |
| swe_rebench_45_valid_adapter_vs_base_none | 45 | 35 (77.8%) | 33 (73.3%) | -4.4 (+/-10.6) | +2/-4 | 0.688 | 31 |
| swe_rebench_50_all_adapter_vs_base_none | 50 | 35 (70.0%) | 33 (66.0%) | -4.0 (+/-9.5) | +2/-4 | 0.688 | 31 |
Work reduction on the 31 shared solves
Comparing aggregate token counts across arms can be skewed by which tasks timed out. Restricting the comparison strictly to the 31 Terminal-Bench tasks solved by both Base (effort=high) and Adapter (effort=none) holds task difficulty and pass outcome identical. On those same 31 tasks, the adapter burns 5.7x fewer median reasoning tokens (13,615 to 2,378), 3.7x fewer median total tokens (17,990 to 4,808), -31.3% fewer mean tool calls (24.4 to 16.8), and finishes -32.5% faster (400.2 s to 270.3 s).
Online RL progression and Gate B checkpoint selection
Online Async GRPO trained on 1,050 unique container tasks (750 from harness-hub/scale800-harbor plus 300 from harness-hub/termgrade-train-harbor) inside live OpenCode 2.2.7 sandboxes. Rollout correctness rose steadily to a peak of 66.0% (0.667 reward) in steps 61 to 70, then declined to 48.0% in steps 71 to 76 as off-policy sample staleness climbed from 5.30 to 7.23. Before touching the held-out 49 tasks, we swept candidate checkpoints on Gate B (Terminal-Bench 2.1 indices 0 to 39): step 70 won cleanly at 18/40 (45.0%, 4 timeouts) against 15/40 (37.5%) for Base, step 60 and step 76. On the untouched 49 tasks (indices 40 to 88), step 70 still gained +4.1 points (38.8% to 42.9%) and cut median wall time from 777 s to 481 s.
| Checkpoint | Pass rate (40) | Timeouts | Mean / med tools | Mean / med total tok | Mean / med wall |
|---|---|---|---|---|---|
| Base (effort=none) | 15/40 (37.5%) | 8 | 17.1 / 11.5 | 15,458 / 3,665 | 640.7 s / 324.2 s |
| Step 60 (effort=none) | 15/40 (37.5%) | 7 | 24.1 / 14 | 19,887 / 7,654 | 724.9 s / 474.4 s |
| Step 70 (effort=none) | 18/40 (45.0%) | 4 | 18.6 / 14.5 | 17,226 / 4,806 | 561.2 s / 325.5 s |
| Step 76 (effort=none) | 15/40 (37.5%) | 7 | 17.2 / 10 | 18,340 / 5,954 | 648.3 s / 368.1 s |
| Steps | Rollouts | Groups | Mean reward | Correctness | Mean tools | Tool fail % | Mean staleness |
|---|---|---|---|---|---|---|---|
| 1 to 10 | 293 | 41 | 0.573 | 53.0% | 12.08 | 32.7% | 2.06 |
| 11 to 20 | 268 | 42 | 0.542 | 51.2% | 12.33 | 33.5% | 3.72 |
| 21 to 30 | 261 | 42 | 0.590 | 60.9% | 12.04 | 33.9% | 5.34 |
| 31 to 40 | 247 | 43 | 0.569 | 53.3% | 10.53 | 30.4% | 5.40 |
| 41 to 50 | 272 | 47 | 0.628 | 62.1% | 9.22 | 28.1% | 5.17 |
| 51 to 60 | 281 | 47 | 0.652 | 58.1% | 9.45 | 29.4% | 5.54 |
| 61 to 70 | 280 | 49 | 0.667 | 66.0% | 10.33 | 30.9% | 5.30 |
| 71 to 76 | 186 | 30 | 0.539 | 48.0% | 8.89 | 32.9% | 7.23 |
Held-out generalization on SWE-rebench-V2.1
To check whether terminal-environment RL caused forgetting on multi-file Python repository issue fixing, we evaluated Base (effort=none) and Adapter step 70 (effort=none) on 50 held-out SWE-rebench-V2.1 tasks inside OpenCode 2.2.7. Five tasks failed Docker container initialization on both arms (0 tool calls, 0 generated tokens) even after retry, leaving 45 valid paired environments. On those 45 valid tasks, Base solved 35/45 (77.8%) and Adapter solved 33/45 (73.3%): a statistical tie (-4.4 pts, +2/-4, 95% CI +/-10.6 pts, McNemar p=0.688). On the 31 shared solves, the adapter still cut median tokens by -21.2% (5,371 to 4,234).
DSpark speculative decoding on 1x H200
Because the LoRA adapter updates only attention projections (q_proj, k_proj, v_proj, o_proj) while leaving the MoE feed-forward layers and LM head frozen, Intuit’s public speculative drafter (intuit/Inkling-2-Mini-dspark, k=7) works out of the box with zero retraining. Live on 1x NVIDIA H200 SXM5 (TP=1, effort=none, 8 coding prompts), Adapter + DSpark reaches 214.3 tok/s solo (2.12x vs Base without spec, 1.88x vs Adapter without spec), 602.9 tok/s at 4 concurrent users, and 1,499 tok/s at 16 users, retaining 93.7% to 96.5% of the base drafter’s mean accepted tokens per step.
| Concurrency | Base (no-spec) | Adapter (no-spec) | Base + DSpark | Adapter + DSpark | Speedup vs Base | Accept len (Base -> Adapter) |
|---|---|---|---|---|---|---|
| 1 user | 101.1 tok/s | 113.7 tok/s | 261.2 tok/s | 214.3 tok/s | 2.12x | 2.52 -> 2.36 (93.7%) |
| 4 users | 459.0 tok/s | 389.2 tok/s | 457.3 tok/s | 602.9 tok/s | 1.31x | 2.54 -> 2.45 (96.5%) |
| 16 users | 883.2 tok/s | 1157.9 tok/s | 1774.8 tok/s | 1498.7 tok/s | 1.70x | 2.48 -> 2.39 (96.4%) |
What we did
- Base model and LoRA:
thinkingmachines/Inkling-2-Mini(30B total / 3B active MoE) with an attention-only LoRA (r=32,alpha=64,q/k/v/o_proj, 192 tensors, 53.5 MB PEFT/vLLM adapter and 26.8 MB FP16 GGUF LoRA forllama.cpp). - Online RL stack: TRL
AsyncGRPO+ OpenEnv + Harbor +safeagentsrunning liveOpenCode 2.2.7agents in isolated Docker containers on 8x NVIDIA H200 SXM5 (2 GPUs running vLLM TP=2 rollouts, 6 GPUs running DDP LoRA updates). - Training mix and settings: 1,050 unique container tasks (750
harness-hub/scale800-harbor+ 300harness-hub/termgrade-train-harbor),reasoning_effort="none",temperature=0.8,lr=2e-5, 6 generations per task group, 131,072 max context length. - Paired evaluation protocol: Full 89-task Terminal-Bench 2.1 (8,192 MB container RAM, 1,800 s cap) and 50-task
SWE-rebench-V2.1inside OpenCode 2.2.7, plus live 1x H200 DSpark throughput sweep across concurrencies 1, 4 and 16.
Caveats
- Single-seed variance on 89 tasks. At N=89, single-seed paired accuracy differences carry a 95% CI half-width of +/-8.5 to +/-9.0 points. Multi-seed runs would be needed to establish statistical significance on accuracy alone, even though the +5.6 point gain holds across both Gate B (0..39) and held-out (40..88) halves.
- No accuracy gain on out-of-distribution SWE-rebench. Training used terminal and CLI container tasks rather than multi-file Python repository issue fixing; on SWE-rebench the adapter tied Base (p=0.688) while using 21.2% fewer median tokens on shared solves.
- Five unbootable SWE-rebench containers. Five of 50 SWE-rebench tasks failed container startup on both arms (0 tools, 0 tokens); both
valid45andall50rows are published insummary.csv. - Single-harness adaptation. Trained and measured inside
OpenCode 2.2.7; transfer to other agent harnesses was not tested here. - Over-training past step 70. Training beyond step 70 increased off-policy staleness (5.30 to 7.23) and dropped both training correctness (66.0% to 48.0%) and Gate B accuracy (45.0% to 37.5%).
Open weights, raw evals and downloads
The trained adapter (PEFT, vLLM LoRA, and llama.cpp GGUF LoRA under Apache-2.0) and all sanitized per-task evaluation JSONs are published publicly on Hugging Face at spheron/Inkling-2-Mini-opencode-adapted. Every table and chart on this page is rebuilt directly from these derived CSVs (under CC BY 4.0):
- summary.csvPass rate, timeouts, tool calls, generated/reasoning tokens and wall-clock time across Terminal-Bench 2.1 (all 89 and held-out 49) and SWE-rebench-V2.1 (valid 45 and all 50).
- paired_comparisons.csvPaired per-task deltas, 95% confidence intervals, gained/lost counts, exact two-sided McNemar p-values and shared-solve work reductions across every contrast.
- gate_b_sweep.csvPaired 40-task Gate B checkpoint selection sweep on Terminal-Bench 2.1 indices 0 to 39 (Base, step 60, step 70, step 76).
- tb21_tasks.csvPer-task outcomes, tool counts, turn counts, token breakdowns and wall times for all 89 Terminal-Bench 2.1 tasks across all three arms (267 rows).
- swe_rebench_tasks.csvPer-task outcomes and container validity flags across 50 held-out SWE-rebench-V2.1 tasks for Base and Adapter (100 rows).
- training_buckets.csv10-step rolling Async GRPO training progression across 1,050 unique tasks (rollouts, reward, correctness, tool failure rate and staleness).
- dspark_throughput.csvLive 1x H200 (TP=1) speculative decoding throughput and acceptance length with intuit/Inkling-2-Mini-dspark at concurrencies 1, 4 and 16.
The full report, analysis script, charts and derived CSVs are in the public research repo.
How to cite this study
The URL will not change. Corrections bump the version and add a dated line under Changes, with the old numbers left visible.
Spheron Research (2026). Can a 53 MB LoRA adapter match high-reasoning coding accuracy inside OpenCode with reasoning off? Inkling-2-Mini harness adaptation. Measured 3-5 Dec 2026, published 5 Dec 2026, version 1.
https://www.spheron.network/research/inkling-2-mini-opencode-adapter/
Raw data: https://github.com/spheronai/research/tree/main/2026-12-05-inkling-2-mini-opencode-adapter@misc{spheron2026inklingopencodeadapter,
author = {{Spheron Research}},
title = {Can a 53 MB LoRA adapter match high-reasoning coding accuracy inside OpenCode with reasoning off? Inkling-2-Mini harness adaptation},
year = {2026},
note = {Measured 3-5 Dec 2026, published 5 Dec 2026, version 1},
howpublished = {\url{https://www.spheron.network/research/inkling-2-mini-opencode-adapter/}}
}Changes to this study
- 5 Dec 2026: version 1.
Related studies: Study 4 (Qwen3.8-27B thinking-mode quantization) and Study 3 (GLM-5.3-Flash coding agent quantization).
Train and serve coding-agent LoRAs on H200
Reproduce this study or serve spheron/Inkling-2-Mini-opencode-adapted with DSpark speculative decoding at 214 tok/s solo and 1,499 tok/s at 16 users on 1x NVIDIA H200 SXM5.
