atlas

Research map / Architectures and efficiency / RNNs and normalization

SpeedLoader: An I/O efficient scheme for heterogeneous and distributed LLM operation

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SpeedLoader, which reschedules computation so multiple sub-batches reuse each loaded layer, cutting host-device and peer I/O for offloaded and sharded LLM training and inference.

Problem

Offloading and sharding LLM model states to host DRAM/NVMe and peer GPUs incur prohibitive tensor communication overhead, leaving training and inference throughput far below on-device levels.

Approach

Feed each loaded layer with multiple sub-batches, offloading and prefetching activations between device and pinned host memory, so the full model is loaded only twice per effective batch; a computation-graph rerouting with no-op connectors keeps autograd correct and avoids extra I/O during backward.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SpeedLoader instead of the baseline training approachLLaMA-2-7B single-device training with offloading · LLaMA-2-7B single-device training with offloadingspeedup: 3.29Helped
Use SpeedLoader instead of the baseline training approachLLaMA-2-13B single-device training with offloading · LLaMA-2-13B single-device training with offloadingspeedup: 6.49Helped
Use SpeedLoader instead of the baseline training approachdistributed LLaMA-2 training with offloading · LLaMA-2-7B, LLaMA-2-13B, and LLaMA-2-70B distributed training with offloadingspeedup: 5.48, 5.49, and 30.33Helped
Use SpeedLoader instead of the baseline training approachdistributed LLaMA-2 training without offloading · LLaMA-2-7B and LLaMA-2-13B distributed training without offloadingspeedup: 5.34 and 12.28Helped
Use SpeedLoader instead of FlexGenOPT single-device inference · OPT-6.7B, OPT-30B, and OPT-175Bspeedup: 1.52, 2.09, and 2.35Helped
Use SpeedLoader instead of DeepSpeed7B pretraining · Wikipedia, OpenWebText, and C4tokens processed (M): 26.2 -> 113.2; 27.3 -> 116.4; 35.7 -> 131.1Helped
Use SpeedLoader instead of DeepSpeed13B pretraining · Wikipedia, OpenWebText, and C4tokens processed (M): 14.7 -> 53.5; 18.9 -> 34.6; 18.9 -> 48.8Helped
Add FlashAttention-2 (ablation)SpeedLoader distributed training with offloading · LLaMA-2-7B, LLaMA-2-13B, and LLaMA-2-70Bspeedup: 1.13x, 1.13x, and 1.05xHelped
Add FlashAttention-2 (ablation)SpeedLoader distributed training without offloading · LLaMA-2-7B and LLaMA-2-13Bspeedup: 1.16x and 1.13xHelped
Increase sub-batch size to the maximum allowed by HBM (ablation)SpeedLoader · LLaMA-2-7B single-GPU hyperparameter analysisthroughputHelped
Increase sequence length while shrinking sub-batch size (ablation)SpeedLoader · LLaMA-2-7B single-GPU hyperparameter analysistotal throughputHurt
Increase sub-batch size, number of sub-batches, or number of on-device layers (ablation)SpeedLoader · LLaMA-2-7B single-GPU hyperparameter analysisMFUHelped

Surprising findings

Limitations

Experimental setup

Datasets: Wikipedia OpenWebText C4

Benchmarks: training MFU benchmark inference throughput benchmark pretraining loss and tokens processed

Metrics: model FLOPs utilization speedup throughput (tokens/s) training loss tokens processed

Baselines: DeepSpeed ZeRO-Offload FlexGen vLLM PatrickStar

Builds on: ZeRO-Offload ZeRO-Infinity ZeRO++ FlexGen FlashAttention-2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy