Imagine it’s late, you’ve just finished a long day of debugging, and you’re staring at a massive bill for a GPU cluster. You know your Large Language Model (LLM) inference could be faster and cheaper if you "disaggregated" it—splitting the compute-heavy prefill phase from the memory-hungry decode phase—but how do you actually slice the pie? Do you give 4 GPUs to prefill and 4 to decode? Or 2 and 6?
Usually, the answer involves days of "profiling": running every possible configuration, measuring it, and hoping the workload doesn't change tomorrow. The authors of OSplit think there’s a better way. They’ve built a mathematical "crystal ball" that predicts the optimal GPU split from first principles, no profiling required.
TL;DR
OSplit is an analytical method that calculates exactly how to divide your GPUs between prefill and decode tasks to maximize throughput. By modeling the "physics" of the hardware (like NVIDIA’s H100 and the new Blackwell GB300) and the math of the model, it finds the perfect balance point where neither phase bottlenecks the other, matching real-world measurements with near-perfect accuracy.
What Problem Does This Paper Address?
LLM inference is a tale of two cities.
- Prefill: The model reads your prompt. This is a massive burst of matrix-matrix multiplication. It’s "compute-bound," meaning the bottleneck is how fast the GPU’s math engines (Tensor Cores) can crunch numbers.
- Decode: The model spits out tokens one by one. This is "memory-bandwidth bound." The GPU spends most of its time waiting for data to move from memory to the processor.
In a standard setup, these two phases fight for resources. Disaggregated inference solves this by putting them on separate GPU pools. But the "optimal split" is a moving target. It changes if your prompts get longer, if you switch from Llama to DeepSeek, or if you upgrade your hardware. OSplit addresses the "provisioning problem": how to allocate a fixed budget of GPUs and choose the right parallelism (Tensor, Data, or Expert) without wasting weeks on trial-and-error testing.
Methods
The researchers developed a Capacity Model that acts like a high-fidelity simulator. Instead of running code, it looks at the "tile-level" movement of data. It calculates how many bytes move from HBM (High Bandwidth Memory) to the L2 cache and how many cycles the Tensor Cores spend on math.
Key features of the method include:
- Hardware-Aware Modeling: It accounts for specific hardware quirks of NVIDIA H100 and GB300, including NVLink communication overhead.
- Algorithm 1 (The OSplit Search): It iterates through all valid parallelism configurations (how you shard the model across GPUs). For each one, it calculates the "price" of a request in GPU-seconds.
- The Balanced Split: It identifies the "crossing point" where the prefill pool and decode pool have matching throughput. Since you can't have half a GPU, it uses a discrete search to find the best integer allocation.
Datasets
The paper evaluates OSplit using several state-of-the-art LLMs as benchmarks:
- Dense Models: Llama 3.1 (8B, 70B, and the massive 405B).
- Mixture-of-Experts (MoE) Models: Qwen3-30B, Qwen3-235B, and DeepSeek (V3 and R1).
- Hardware Targets: NVIDIA H100 (NVL8) and the Blackwell-based GB300 (NVL72).
Key Insights and Ideas
- The "One Size Fits All" Trap: A static GPU split is a recipe for inefficiency. As input lengths grow, the prefill phase becomes much more expensive relative to decode. OSplit shows that a split optimized for short prompts can lose over 40% of potential throughput if the workload shifts to long documents.
- Analytical > Empirical: You don't need to measure to manage. By understanding the "arithmetic intensity" of the kernels (like FlashAttention), the model can predict performance within ~10% of actual hardware measurements.
- The Ratio is King: The optimal split depends primarily on the ratio of GPU-seconds per prefill request to GPU-seconds per decode token. If your model predicts these two costs accurately, the errors often cancel out, leading to the correct provisioning decision anyway.
Key Results
- Accuracy: On H100 GPUs, OSplit predicted prefill and decode iteration times with a Mean Absolute Percentage Error (MAPE) of about 9-10%.
- Optimal Provisioning: In every test case, OSplit identified the same "best" GPU split that was found through exhaustive manual measurement.
- Speed: A full provisioning search for a complex model takes less than a second on a standard CPU, compared to hours or days for empirical profiling.
- Blackwell Ready: The model successfully extends to the GB300 (Blackwell) architecture, accounting for new features like FP4 precision and multi-tier L2 caches.
Limitations and Future Work
- Steady-State Assumption: The model assumes a "sufficiently high load" where the system is always busy. It doesn't yet account for the "bursty" traffic patterns of real-world apps.
- Homogeneous Pools: While it allows different GPU types for prefill vs. decode, it assumes all GPUs within a single pool are the same.
- Agentic Workloads: The authors note that "agentic" workloads (where an AI agent loops back and forth with varying prompt lengths) are a prime target for future versions of this modeling.
In short, OSplit turns a "black art" of system tuning into a predictable science, ensuring that when you pay for a rack of H100s, you're actually getting every token you paid for.
Summary updated