Introduction
Large Language Model (LLM) inference is characterized by two distinct operational phases: the "prompt" phase (prefill) and the "generation" phase (decoding). The prefill phase is highly parallel and compute-intensive, saturating the GPU's Streaming Multiprocessors (SMs). Conversely, the decoding phase generates tokens sequentially, making it heavily bottlenecked by memory bandwidth while leaving significant compute resources underutilized.
In high-end production environments, systems like Splitwise address this imbalance by distributing these phases across separate, dedicated GPU clusters. However, for many researchers and developers, hardware is a scarce resource, often limited to a single GPU. Splitwiser introduces a method to maximize single-GPU efficiency by running these phases in parallel, effectively "filling the gap" of idle compute cycles.
The Resource Utilization Gap
The fundamental motivation for Splitwiser lies in the inefficient use of hardware during standard sequential inference. Profiling reveals that while the prefill phase utilizes a significant portion of the GPU's compute capacity, the subsequent decoding phase sees a dramatic drop in SM throughput.
As seen in the profiling data above, the SM throughput (left) remains high during the initial prefill kernels but plummets once the model transitions to token generation. This underutilization represents a missed opportunity for higher throughput, as the GPU has the headroom to perform additional computations if managed correctly.
The Splitwiser Approach
Splitwiser leverages NVIDIA’s Multi-Process Service (MPS) to enable concurrent execution of the prefill and decoding phases on a single device. MPS allows multiple Linux processes to share GPU resources more effectively than standard multitasking by reducing context-switching overhead and allowing kernels from different processes to run simultaneously.
The core strategy involves decoupling the inference pipeline into separate processes. While one process handles the memory-bound token generation for an existing batch, another process can utilize the idle SMs to compute the prompt for a new batch. This overlapping execution, illustrated in the figure above, transforms sequential bottlenecks into parallel streams, significantly increasing the total number of requests processed per second.
Experimental Results
The researchers evaluated Splitwiser using two primary frameworks: a modified Hugging Face pipeline and the high-performance vLLM library.
Hugging Face and MIMIC-III
Using the OPT-125m model and radiology reports from the MIMIC-III dataset, the team found that increasing the number of parallel processes led to substantial gains. With 8 parallel processes, Splitwiser achieved a 17.6% reduction in end-to-end latency compared to traditional sequential execution. In steady-state scenarios with 4 processes, a 1.1x throughput improvement was observed.
vLLM and LLAMA2-7B
Further testing on NVIDIA A10 GPUs using the LLAMA2-7B model demonstrated the scalability of the approach. By running two vLLM engines in parallel via MPS (MPSx2), the system achieved a 1.42x speedup in throughput when handling a workload of 160 inference requests. On the A10 hardware specifically, the combination of Splitwiser and MPS resulted in an 18.2% overall latency reduction.
Discussion and Limitations
While Splitwiser offers a clear path to higher efficiency on constrained hardware, several technical challenges remain. A primary hurdle is the memory footprint; running multiple model instances typically doubles the VRAM requirement. To make this approach truly viable for large models on single GPUs, implementing shared memory for model weights is a critical next step.
Additionally, the overhead of spawning processes in PyTorch and the complexities of inter-process communication (IPC) for CUDA tensors introduce some latency. Future work will focus on integrating "on-demand prompt processing" directly into the vLLM scheduler to minimize synchronization overhead and further optimize resource allocation.
Conclusion
Splitwiser demonstrates that high-efficiency LLM inference is possible even without massive GPU clusters. By intelligently scheduling compute-heavy and memory-heavy tasks to run concurrently via NVIDIA MPS, users can unlock significant performance gains on a single GPU, making advanced AI deployment more accessible and cost-effective.
Summary updated