Training a 2B model on 4x RTX 3090 to write bare-metal x86-64: GRPO lifts compile rate from 0% to 56%
iskander · x · 2026-12-01
superalesha shares how they trained a 2B model to write bare-metal x86-64 programs and repair its own CPU faults using 4x RTX 3090.
- Pure SFT failed completely: 0/32 held-out prompts compiled, as the model got stuck unrolling memory loops until the token ceiling
- Running 120 steps of GRPO against 16 live bare-metal QEMU KVM oracles fixed it: held-out 0-shot compile rate went from 0% to 56.2% (step 90), and closed-loop pass@6 across 73 validation prompts from 0% to 24.7%
- Every generated program had to assemble, survive 60 frames in Ring 3, render multicolor animation, and react to keyboard input
- Ring-0 surgical PATCH@1: 100% on DE divide-by-zero and PF null deref, 87.5% on UD and PF framebuffer guard, averaging 11.8 tokens per fix
- v2.1 arcade tasks pushed validation PATCH@1 to 90.0% with 93.04% token accuracy
- Porting the last 3 C files to pure handwritten NASM beat GCC -O3 by 11.6% on prefill
More from coding & agent
- Rust NVIDIA driver built with AI agents hits GitHub, unlocks GPU P2P — QuixiAI · 2026-12-01
- Model routing took real tuning: capability-based classification cut AI costs 46% — RexDouglass · 2026-12-01
- Left to Solve floods GitHub with 63,000 open PRs, ~2,000 per hour — Vjeux · 2026-12-01
- Dev shares workflow shift: ditch long prompts, flood Claude with random thoughts instead — dfeinition · 2026-12-01
- Solo dev open-sources mimi-seed, an MCP server that lets AI agents run mobile app operations — Ok-Author-27 · 2026-12-01
- Canada's AI Safety Institute publishes technical guidelines for AI agent containment — PaulGodsmark · 2026-12-01