Eureka Machine writes a Metal megakernel fusing Flint's entire decode pass

cong_ml · x · 2026-10-22

Recursive's automated research system, Eureka Machine, now writes entire megakernels: using Metal, Apple's GPU language, it fuses Flint's whole decode forward pass into a single kernel on M4/M5 Macs — every layer, attention, low-bit projections, expert routing and output head.

The code is open-sourced on GitHub (recursive-oss/rec, megakernel.py, 1337 lines). The attached image shows the actual source blocks: per-layer loop, 4-bit QKV projections, attention output merging, sparse expert routing handoff, and final norm + logits.

Related event: Recursive's Eureka Machine Moves Toward Recursive Self-Improvement(2 posts)→

Original post →

More from Infra

Infra channel →