Orca boosted GPT-3 175B serving throughput by 36.9x over NVIDIA FasterTransformer at identical median latency by replacing request-level batching with iteration-level scheduling, rebuilding the active batch after every single generated token. Gyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim, and Byung-Gon Chun published the system at USENIX OSDI 2022, identifying the exact scheduling mismatch that later underpinned every modern LLM inference engine.
Before Orca, serving stacks such as Triton Inference Server paired with FasterTransformer borrowed the batching contract built for image classifiers like ResNet and encoders like BERT, where one forward pass finishes one request. Autoregressive Transformers break that contract because each request loops through the model once per output token, creating wildly uneven execution times inside the same batch. Every production serving engine today, from vLLM to TensorRT-LLM and SGLang, still runs on Orca’s core loop of continuous batching and flattened non-attention tensor execution.
- 36.9x higher throughput at equal latency: On a 16-GPU GPT-3 175B cluster at 190 ms median normalized latency, Orca served 6.81 req/s compared to 0.185 req/s for FasterTransformer.
- 47% engine speedup from plane separation: Decoupling CPU gRPC control messages from GPU NCCL tensor transfers cut per-iteration synchronization overhead on multi-node 175B runs.
- Selective batching decouples tensor shapes: Flattening Linear, LayerNorm, and MLP layers into
[sum(L), H]lets prefill and decode requests share weights in one pass while splitting only Attention per request. - Microbatch pipelining trap removed: Iterating batches across pipeline stages removes FasterTransformer’s forced tradeoff between small microbatches and pipeline bubbles.
Why request-level serving breaks on autoregressive text
In a standard serving deployment like Triton paired with FasterTransformer, the scheduler grabs a batch of requests from a queue and hands the entire batch to the execution engine. The engine does not return control until every request in that batch finishes generating. That boundary works cleanly for vision models or single-pass BERT classifiers, where every item finishes in one pass.
Generative Transformers break both sides of that assumption. In the initiation (prefill) phase, a request processes all client prompt tokens in parallel to produce its first output token. In the increment (decode) phase, it feeds one newly generated token back through all layers per iteration until emitting an end-of-sequence token. Because requests enter with different prompt lengths and generate anywhere from a handful to hundreds of tokens, locking them together inside a fixed batch creates two symmetric penalties:
- Early-finished requests stay trapped: If request
x1needs 4 iterations andx2finishes on iteration 2, the engine still executes dummy padding steps forx2on iterations 3 and 4, andx2cannot return to the caller untilx1finishes. - Late-arriving requests queue behind the slowest tail: Any request arriving one millisecond after a batch launches must wait for the longest sequence in that batch to finish completely before entering the GPU.
Increasing the max batch size in FasterTransformer actually hits a ceiling fast. On a 101B-parameter model across 8 A100 GPUs, FasterTransformer peaked at 0.49 req/s on heterogeneous workloads because larger batches increase the spread between shortest and longest sequences, multiplying wasted padding and prompt truncation penalties.
Selective batching and why RNN tricks fail
Scheduling at single-iteration granularity immediately creates a tensor shape crisis. Once requests enter and leave between iterations, any batch plucked from the active pool contains requests in incompatible states: two initiation requests with 2 and 3 prompt tokens (x3 and x4), two increment requests at different KV history lengths (x1 at token 4 and x2 at token 2), or a mix of initiation and increment requests in the very same step.
Naive batching requires a single rectangular 3D input tensor of shape [B, L, H], where B is batch size, L is token count per request, and H is hidden dimension. Requiring all B requests to match phase and sequence position makes batching practically impossible; the odds of finding multiple requests at the exact same token index plummet exponentially as batch size grows.
Previous fine-grained schedulers like BatchMaker solved iteration-level batching for LSTMs by grouping identical recurrent cells across requests. That trick fails on Transformers because an LSTM’s hidden state tensor keeps a fixed shape at every step, whereas a Transformer’s Attention keys and values grow with token position t. Across Orca’s trace (lengths 33 to 640), BatchMaker would treat each token index as a different computation cell, collapsing execution back to unbatched serial kernels.
Orca’s insight is selective batching, built around GPU memory bandwidth. In large Transformer inference, loading model parameters from GPU HBM dominates walltime, so the primary goal is amortizing every weight read across as many tokens as possible. Non-Attention operators (LayerNorm, QKV Linear, Attn Out Linear, Add, GeLU MLP) apply identical transformations token by token without cross-request dependencies. Flattening requests x1 (1 token), x2 (1 token), x3 (2 tokens), and x4 (3 tokens) into one 2D [7, H] matrix lets all linear projections run as a single large batched matrix multiplication.
Before Attention, a lightweight Split operator separates the [7, 3H] QKV tensor back into four individual requests. Each request reads its own historical K and V vectors from an Attention K/V Manager, computes dot-product softmax attention independently, and passes its output to a Merge operator that reassembles [7, H]. Skipping batching inside Attention costs virtually nothing because Attention carries zero learnable parameters; batching Attention yields no weight-reuse savings in GPU memory reads. Better yet, Orca fuses all per-request Attention operations into a single CUDA kernel by concatenating thread blocks across heterogeneous request shapes, cutting kernel launch overhead.
Distributed planes, KV reservations, and pipelining
Scaling past a single GPU exposes two subtler bottlenecks that Orca fixed alongside its scheduler: control-data plane coupling and pipeline microbatching.
Like Megatron-LM and FasterTransformer, Orca combines intra-layer tensor parallelism (splitting each Linear and Attention layer across GPUs inside a node) with inter-layer pipeline parallelism (assigning groups of layers to separate worker processes across nodes). Existing engines broadcast per-iteration metadata (batch size, sequence lengths, termination flags) over NCCL alongside GPU tensors, forcing CPU threads and GPUs to synchronize at every step. Orca routes tensor activations strictly over NCCL while sending lightweight control messages and token IDs over gRPC between CPU controllers. On a 175B model across 16 A100s with pipelining disabled, separating control and data planes alone gave Orca’s engine up to a 47% speedup over FasterTransformer.
For multi-worker pipeline parallelism, FasterTransformer cannot inject a second client batch until the current batch finishes, so it splits one batch into mbs microbatches (Figure 8b). That creates a no-win bind: small microbatches shrink GEMM batch efficiency, while larger microbatches starve pipeline stages with idle bubbles. Because Orca schedules one iteration at a time, its scheduler simply injects up to n_workers independent batches into the pipeline back to back (A1B1, C1D1, E1F1 across 3 workers), keeping every GPU stage busy with full-sized batches and zero microbatch splitting.
Finally, Orca’s scheduler enforces iteration-level FCFS (Select sorts pending requests by arrival time and never lets a newer request advance past an older active one) while preventing GPU out-of-memory deadlocks. Whenever an initiation request is admitted for the first time, the scheduler checks n_rsrv + req.max_tokens <= n_slots against a pre-allocated Attention K/V slot budget, guaranteeing that active requests can always allocate KV space until completion. FasterTransformer, by contrast, pre-allocates KV buffers statically up to the full 2,048-token model limit for every request, causing OOM crashes at batch size 8 on GPT-3 13B (1 GPU) and batch size 16 on 101B (8 GPUs).
Trace every design decision on the 175B cluster
Explore the four core design mechanisms inside Orca below, comparing the bottleneck in request-level systems against Orca’s solution and measured impact on Azure ND96asr A100 v4 nodes.
Select a mechanism (or use Left and Right arrow keys) to compare the legacy serving bottleneck against Orca's fix and benchmark evidence.
Iteration-level scheduling over request batches
SchedulingReturning control to the scheduler after every forward pass eliminates idle padding for short sequences and queue blocking for new arrivals.
- Legacy bottleneck
- Request-level engines keep finished slots computing dummy tokens until the slowest request emits EOS, while new arrivals wait outside.
- Orca mechanism
- Scheduler polls the Request Pool after each single iteration, returns completed requests immediately, and admits waiting requests into freed slots.
- Measured evidence
- On GPT-3 175B with U(32, 512) inputs and U(1, 128) outputs, Orca reaches 6.81 req/s vs 0.185 req/s for FasterTransformer at 190 ms median latency (36.9x).
- Batching behavior
- Even on homogeneous 256-in/256-out traces, Orca outperforms FasterTransformer (max_bs=8) at every batch size above 1 by avoiding cross-batch stalls.
Flattened [sum(L), H] layers with split Attention
Execution engineDropping the rectangular [B, L, H] requirement lets mixed prefill and decode requests share model weights on every non-Attention layer.
- Legacy bottleneck
- Prefill tokens, decode tokens at different KV lengths, and distinct prompt lengths cannot form one rectangular 3D batch tensor.
- Orca mechanism
- Flattens all active tokens into a 2D [sum(L), H] matrix for Linear/LayerNorm/MLP ops, splits per request for a fused Attention CUDA kernel, and merges back.
- Measured evidence
- In Section 6.1 microbenchmarks on 13B and 101B models, skipping Attention batching matches FasterTransformer throughput because Attention has zero weights.
- Kernel optimization
- Concatenating heterogeneous request thread blocks into one fused Attention launch cuts CUDA launch overhead while keeping GPU occupancy high.
Decoupling gRPC control from NCCL data transfers
DistributedSending batch metadata over CPU gRPC channels prevents per-iteration CPU-GPU synchronization stalls across multi-GPU workers.
- Legacy bottleneck
- FasterTransformer and Megatron-LM pass batch size and length metadata through GPU NCCL collectives, forcing CPU-GPU syncs every token.
- Orca mechanism
- Engine Master pushes control messages and token IDs asynchronously over gRPC to worker CPU controllers, reserving NCCL strictly for GPU activations.
- Measured evidence
- With pipelining turned off on GPT-3 175B across 16 A100 GPUs, Orca's engine beats FasterTransformer by up to 47% on identical homogeneous batches.
- Pipeline advantage
- Worker1 forwards control metadata to Worker2 before Worker1's GPU kernels finish, overlapping scheduling control with tensor execution.
Per-request KV reservation and batch pipelining
Memory & scaleReserving max_tokens slots at admission avoids OOM crashes and feeds inter-layer pipeline stages without shrinking batch sizes.
- Legacy bottleneck
- FasterTransformer pre-allocates 2,048 KV slots per request (OOM at batch 8 on 13B) and splits batches into microbatches that lose GEMM efficiency.
- Orca mechanism
- Admits initiation requests only when n_rsrv + req.max_tokens <= n_slots, and keeps n_workers distinct batches concurrently in flight.
- Measured evidence
- Orca scales cleanly to batch size 32 on 13B (1 GPU) and 101B (8 GPUs), and serves up to 341B models across 32 GPUs (4 pipeline x 8 tensor).
- Deadlock safety
- Pre-reserving worst-case max_tokens guarantees an in-flight decode sequence never stalls midway waiting for KV memory from another request.
If you prefer the short takeaway without clicking through each tab, Orca’s speedup comes from four coordinated shifts:
- Iteration loop: Checking completion after every token eliminates dummy padding and lets new arrivals join on the next forward pass, driving the 36.9x throughput gain on GPT-3 175B.
- Selective batching: Flattening tokens into
[sum(L), H]preserves weight reuse across Linear and MLP layers while running parameter-free Attention per request in one fused CUDA kernel. - Control-data plane split: Moving metadata off NCCL onto asynchronous CPU gRPC cuts multi-node synchronization overhead by up to 47% on 175B.
- KV reservation and pipelining: Reserving
max_tokensper request prevents OOM crashes and deadlock, while feedingn_workersindependent batches keeps pipeline stages full without microbatching.
Caveats and how modern serving moved past Orca
Three constraints in the 2022 paper explain nearly every major LLM serving paper published afterward.
First, Orca evaluated synthetic traces without real weights or early termination. Without live GPT-3 175B checkpoints, every request generated deterministically up to a sampled max_gen_tokens rather than emitting <EOS> early. Real workloads exhibit higher variance, penalizing request-level batching further, though exact speedups shift with prompt-to-output ratios.
Second, reserving contiguous max_tokens slots wastes GPU memory. When a request caps max_tokens at 2,048 yet stops after 120 tokens, Orca locks 1,928 unused KV slots until completion. One year later, PagedAttention in vLLM replaced contiguous reservations with virtualized KV blocks allocated on demand, and SGLang’s RadixAttention extended block management to reuse shared prompt prefixes.
Third, mixing unchunked prefill with decode inside one [sum(L), H] batch causes latency spikes. Admitting a 512-token prompt into the same step as single-token decodes stalls active streams until prefill finishes. Follow-up engines solved this via Sarathi-Serve’s chunked prefill or phase disaggregation in Splitwise and DistServe.
For infrastructure engineers today, Orca remains the foundation: continuous iteration-level scheduling and flattened token batching are standard defaults, while paged blocks, prefix caching, and chunked prefill refine the tradeoffs inside its per-iteration loop.


