Metraipolis › archive › dc_f7d32e08a5d4
One Megakernel is Not Enough: Predicting Where to Cut for Streaming Inference — arXiv:2610.35336
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.35336
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-27T08:14:35.679Z
- SHA-256 of the archived text
a91b1fa9a0465a0330eaf92cbc8ed5a59c789484b749bbe8bf5872deabdc7c05- Stable URL of this page
https://metraipolis.com/documento/dc_f7d32e08a5d4
How to cite
One Megakernel is Not Enough: Predicting Where to Cut for Streaming Inference — arXiv:2610.35336 — arXiv (en), https://arxiv.org/abs/2610.35336 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f7d32e08a5d4 (Metraipolis archive dc_f7d32e08a5d4, sha256 a91b1fa9a0465a0330eaf92cbc8ed5a59c789484b749bbe8bf5872deabdc7c05)
BibTeX
@misc{dcf7d32e08a5d4,
title = {One Megakernel is Not Enough: Predicting Where to Cut for Streaming Inference — arXiv:2610.35336},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.35336},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f7d32e08a5d4; sha256 a91b1fa9a0465a0330eaf92cbc8ed5a59c789484b749bbe8bf5872deabdc7c05},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.35336. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
We address a fundamental question: How far should kernel fusion extend and which boundaries are worth preserving? Unlike the general convention of using one monolith megakernel at lower batch sizes or supporting only a selective model component as megakernel and rest of the model as conventional graph, we show that the best configuration is a composition of multiple megakernels with no overlapping conventional graph component, or a fully conventional graph. We present a framework that selects megakernel regions in a streaming inference model from conventional-graph profiles and standalone kernel benchmarks, without running any candidate design end to end. It simulates each candidate's tile and event graphs to predict time to first output and selects the measured best design in all 13 combinations of model and batch size we tested. Across NH-TTS, Qwen3-TTS and Llama-1B, the best composition ranges from two to four megakernels to fully conventional execution and none is a single megakernel. We introduce four model categories (megakernel-stable/ receding/ advancing/ averse) that capture how a model's best megakernel composition changes with batch size. Using NH-TTS model on H100 NVL GPU, we demonstrate that preserving three specialized megakernels can improve both latency and throughput despite introducing additional kernel boundaries. At batch size 32, this design delivers 21.4% lower mean batch-p95 time to first audio (TTFA) and 28% higher throughput than the evaluated monolith megakernel. Against conventional TensorRT graph execution, it reduces engine-level mean batch TTFA p95 by 4.05x and increases throughput by 19.7%. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.DC, nuovi lavori del giorno). Categorie arXiv: Performance (cs.PF) ; Distributed, Parallel, and Cluster Computing (cs.DC); Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2610.35336 — 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-27T07:56:15.170Z dalla pagina https://arxiv.org/list/cs.DC/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).