NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computron: Serving Distributed Deep Learning Models with Model Parallel Swapping

Daniel Zou, Xinchen Jin, Xueyang Yu, Hao Zhang, James DemmelarXiv 2023 · DOI

Introduction

The rapid proliferation of Large Language Models (LLMs) and their specialized fine-tuned variants has created a significant infrastructure challenge: the "GPU memory wall." While organizations may need to serve dozens of distinct models, physical VRAM capacity is often insufficient to keep all models resident simultaneously. Traditional approaches either rely on expensive hardware scaling or suffer from high latency during model swaps. Computron addresses this by unifying model parallelism with memory swapping, transforming parallelism into a tool for overcoming I/O bottlenecks.

System Architecture

Computron utilizes an engine-worker architecture designed for distributed environments. A centralized engine manages request queues and scheduling, while individual workers (one per GPU) handle inference and memory management. This structure allows the system to treat a cluster of GPUs as a single, large-scale memory pool for a library of models that far exceed individual device capacity.

The Computron engine-worker architecture sharding models across multiple GPUs to enable parallelized I/O.

Model Parallel Swapping

The core innovation of Computron is Model Parallel Swapping, which leverages distributed computing techniques to accelerate data movement between CPU and GPU memory.

Aggregated Bandwidth

By employing Tensor Parallelism (TP) or Pipeline Parallelism (PP), Computron shards models across multiple GPUs. When a model needs to be swapped into VRAM, each GPU pulls its respective shard over its own independent PCIe link. If a model is sharded across four GPUs, the system effectively quadruples the available transfer bandwidth compared to a single-GPU swap, significantly reducing the time the system spends idle during transitions.

Asynchronous Pipelining

To minimize the impact of swap latency on throughput, Computron implements asynchronous pipelining using separate CUDA streams. This allows the system to overlap computation with communication: while one stream executes inference on an active model, background streams can simultaneously offload a previous model and pre-load the next one from pinned CPU memory.

Timeline demonstrating the asynchronous pipelining of model loading and batch execution across the engine and workers.

Evaluation and Key Insights

The system was evaluated using the OPT-13B model (approx. 24GB) on a cluster of four NVIDIA A100 GPUs. Key findings include:

  • Latency Reduction: Increasing the degree of Tensor Parallelism from 1 to 4 reduced average swap times from 1.4 seconds to 0.7 seconds. While scaling is sublinear due to fixed management overheads, the bandwidth gains are substantial.
  • Efficiency in Bursty Workloads: Computron performs exceptionally well under "bursty" request patterns. When multiple requests for the same model arrive in a short window, the system can process them as a single batch, amortizing the initial swap cost. Under high burstiness (CV=4), end-to-end latency was observed to drop from ~1.8s to ~0.17s.
  • Parallelism Configuration: A hybrid approach (e.g., TP=2, PP=2) often outperformed pure Tensor Parallelism, as it balanced communication overhead with raw transfer speed.

Conclusion and Future Work

Computron demonstrates that model parallelism is not just for speeding up matrix multiplications, but is also a vital tool for increasing I/O throughput in memory-constrained serving environments. Future iterations of the system aim to support heterogeneous model architectures, dynamic sharding based on real-time traffic, and predictive pre-fetching to hide swap latencies entirely.

Summary updated

BibTeX
@misc{zou2023computron,
  author = {Daniel Zou and Xinchen Jin and Xueyang Yu and Hao Zhang and James Demmel},
  title = {{Computron: Serving Distributed Deep Learning Models with Model Parallel Swapping}},
  year = {2023},
  eprint = {2306.13835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.13835},
}
Figure