Metraipolis › archive › dc_cca6d8439530

ForgeMegakernel: A General Framework for Efficient Auto-Regressive Model Decode Megakernels — arXiv:2609.12379

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.12379
License (as archived)
CC0-1.0
Archived
2026-10-16T03:08:36.305Z
SHA-256 of the archived text
9c36bb8ae742ad7a4f6a2a94734b06c8b373cf00e514086f4465cf004df53d07
Stable URL of this page
https://metraipolis.com/documento/dc_cca6d8439530

How to cite

ForgeMegakernel: A General Framework for Efficient Auto-Regressive Model Decode Megakernels — arXiv:2609.12379 — arXiv (en), https://arxiv.org/abs/2609.12379 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_cca6d8439530 (Metraipolis archive dc_cca6d8439530, sha256 9c36bb8ae742ad7a4f6a2a94734b06c8b373cf00e514086f4465cf004df53d07)
BibTeX
@misc{dccca6d8439530,
  title = {ForgeMegakernel: A General Framework for Efficient Auto-Regressive Model Decode Megakernels — arXiv:2609.12379},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.12379},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_cca6d8439530; sha256 9c36bb8ae742ad7a4f6a2a94734b06c8b373cf00e514086f4465cf004df53d07},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.12379. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Auto-regressive model decode is bandwidth-bound, since every weight and key/value-cache byte crosses high-bandwidth memory once per token. A megakernel is an ideal solution, but existing automatic megakernel generation approaches cannot achieve both generalization across models and correctness guarantees. We present ForgeMegakernel, which generates a per-model high-performance decode megakernel using coding agents. ForgeMegakernel pairs a universal knowledge base of ten progressive milestones with an independent mid-state test oracle. The milestones provide the megakernel's structural properties: a fine-grained instruction stream for each SM, dependency counters replacing the global synchronization, and a shared-memory buffer pool for workload balance across SMs and greater parallelism. The test oracle derives the mid-states of the megakernel and checks the performance, error and precision during the generation process, guaranteeing a correct and trustworthy forged megakernel. We evaluated ForgeMegakernel on 14 representative decoding operations across eight model families spanning 0.6B-13B parameters. The generated megakernels achieved 50.5-85.9% MBU and geometric mean speedups of 1.21x over SGLang 0.5.18 and 1.54x over a megakernel compiler under identical configurations. Inside SGLang, evaluated on GSM8K with ragged prompts, all 14 megakernels decoded faster than the SGLang engine at comparable answer accuracy.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-14 in cs.DC).
Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC).
Pagina del lavoro: https://arxiv.org/abs/2609.12379 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-16T03:03:05.083Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).