Metraipolis › archive › dc_0085d1347645

NUMA-Torch: Compiler-Driven NUMA-Aware LLM Prefill on Multi-Socket CPUs — arXiv:2611.07105

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.07105
License (as archived)
CC0-1.0
Archived
2026-11-06T14:43:25.229Z
SHA-256 of the archived text
7ef79f9a9774ee5c5b9f2db2ac81daab6fd988e070d5d2fba36e2a2d654c2212
Stable URL of this page
https://metraipolis.com/documento/dc_0085d1347645

How to cite

NUMA-Torch: Compiler-Driven NUMA-Aware LLM Prefill on Multi-Socket CPUs — arXiv:2611.07105 — arXiv (en), https://arxiv.org/abs/2611.07105 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0085d1347645 (Metraipolis archive dc_0085d1347645, sha256 7ef79f9a9774ee5c5b9f2db2ac81daab6fd988e070d5d2fba36e2a2d654c2212)
BibTeX
@misc{dc0085d1347645,
  title = {NUMA-Torch: Compiler-Driven NUMA-Aware LLM Prefill on Multi-Socket CPUs — arXiv:2611.07105},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.07105},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0085d1347645; sha256 7ef79f9a9774ee5c5b9f2db2ac81daab6fd988e070d5d2fba36e2a2d654c2212},
  year = {2026}
}

Archived text

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

For sufficiently large transformer-based Large Language Models (LLMs), whose parameters cannot be retained in on-chip caches, prefill throughput on multi-socket CPUs is often limited by sustainable DRAM bandwidth rather than peak floating-point throughput. In the standard PyTorch compilation (i.e., TorchInductor) path, model weights are allocated without considering the Non-Uniform Memory Access (NUMA) topology: specifically, the affinity between memory banks and compute cores is disregarded. This causes a substantial fraction of weight accesses to traverse the inter-socket interconnect, severely degrading the effective memory bandwidth available to each socket. We address this bottleneck through a compiler-level solution that makes TorchInductor NUMA-aware. Treating each NUMA socket as an independent tensor-parallel partition, we introduce NUMA-aware Tensor Parallelism (NUMA-TP). This approach transparently shards weights across sockets and schedules compute kernels such that thread pools and memory allocations remain strictly local to their respective sockets using CPU affinity. We evaluate the approach on GPT-2 (117M, 345M, 762M) and BERT (Small, Large), which exercise standard multi-head attention and MLP, as well as Gemma 3 270M, which combines Multi-Query Attention with a GeGLU-gated MLP. By strictly enforcing data locality, our approach successfully mitigates cross-socket traffic, achieving prefill speedups of up to 2.63x on a dual-socket Haswell platform, up to 1.87x on a dual-socket Cascade Lake platform, and up to 2.27x on a four-socket Haswell-EX platform.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.DC, nuovi lavori del giorno).
Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC) ; Performance (cs.PF); Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2611.07105 — 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-11-06T14:19:12.616Z dalla pagina https://arxiv.org/list/cs.DC/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).