Metraipolis › archive › dc_b14f3fe584c7
Torch-PIM: Automated Profile-Guided PIM Offloading for PyTorch — arXiv:2609.34657
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.34657
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T22:12:25.839Z
- SHA-256 of the archived text
3db58bfaa2adc06d552da020c99d5bfe2ed900e7d20bfd7ee1b218f03b35f4d5- Stable URL of this page
https://metraipolis.com/documento/dc_b14f3fe584c7
How to cite
Torch-PIM: Automated Profile-Guided PIM Offloading for PyTorch — arXiv:2609.34657 — arXiv (en), https://arxiv.org/abs/2609.34657 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b14f3fe584c7 (Metraipolis archive dc_b14f3fe584c7, sha256 3db58bfaa2adc06d552da020c99d5bfe2ed900e7d20bfd7ee1b218f03b35f4d5)
BibTeX
@misc{dcb14f3fe584c7,
title = {Torch-PIM: Automated Profile-Guided PIM Offloading for PyTorch — arXiv:2609.34657},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.34657},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b14f3fe584c7; sha256 3db58bfaa2adc06d552da020c99d5bfe2ed900e7d20bfd7ee1b218f03b35f4d5},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.34657. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Modern deep learning (DL) workloads are limited by data movement, and processing-in-memory (PIM) targets this bottleneck by placing compute units near the memory. However, PyTorch and other DL frameworks lack compiler support for making this decision on the code they lower: existing offloading frameworks target hand-written C/C++ programs, while those that address DL fix the candidate set to a list of operator types before lowering. We present Torch-PIM, a compiler framework that uses profile-guided optimization (PGO) to decide host-versus-PIM placement over the loop nests that progressive lowering materializes. Every parallel loop nest the pipeline emits enters the candidate space, and each is assessed in two stages: the amount of work it carries, and its memory boundedness. Every quantity the assessment consumes is profiled on the host or obtained from the multi-level intermediate representation (MLIR) of the code. Across PIM configurations of 32 to 128 cores, Torch-PIM's offloading decisions yield speedups of up to 8.6x on tensor operators, 2.9x on MLP, 4.4x on Attention, 5.1x on GPT-J-6B, and 3.6x on LLaMA-7B over CPU-only execution. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-29 in cs.DC). Categorie arXiv: Hardware Architecture (cs.AR) ; Distributed, Parallel, and Cluster Computing (cs.DC). Pagina del lavoro: https://arxiv.org/abs/2609.34657 — 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-07T21:53:13.787Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).