arXiv:2611.04032cs.AINov 2026

Manuscript Offprint

arXiv:2611.04032

ROCm InferaSim: Cut LLM Serving Trial Costs and Deploy the Best Configuration

Anshu Raina, Yao Fu, Zhang Jiejing, Peyman Razaghi, Shiksha Patel, Ravi Gupta, Deval Shah, Adeem Jassani, Subhajit Dutta Chowdhury, Lorri Rao, Kailash Gogineni, Zhenyu Gu, Onil Gunawardana, Emad Barsoum

Anshu Raina

Yao Fu

Zhang Jiejing

Peyman Razaghi

Shiksha Patel

Ravi Gupta

Deval Shah

Adeem Jassani

Subhajit Dutta

Chowdhury

Lorri Rao

Kailash Gogineni

Zhenyu Gu

Onil Gunawardana

Emad Barsoum

Advanced Micro Devices Inc. (AMD)

Correspondence to: anshu.raina@amd.com

Abstract

Serving a large language model (LLM) efficiently requires making several key decisions: the serving engine, how the model is split across graphics processing units (GPUs), numeric precisions, scheduler settings, speculative decoding, key-value (KV) cache management, and prefill-decode disaggregation. The best configuration depends on the model, hardware, workload, and serving objective (interactivity, time to first token, or throughput). Today, operators typically rely on trial and error to identify the best combination, with each experiment occupying one or more nodes for several minutes. Exhaustively evaluating all candidate configurations in our study would require approximately 25,000 GPU-hours. We propose ROCm InferaSim, a framework that predicts LLM serving performance using a few short measurements. Many configuration choices, such as batch size, prompt length, and GPU count, change the amount of work performed by each GPU without changing the underlying GPU kernels. ROCm InferaSim benchmarks each distinct set of kernels once, on at most one node, and we call this measurement an anchor. Analytical laws carry the anchor to other deployments (a configuration on a given set of GPUs) that run the same kernels. For deployments spanning multiple nodes, ROCm InferaSim first reduces the configuration to a single-node equivalent, measures its performance, and then analytically scales the results to the full deployment. A simulator replays realistic multi-turn serving traffic, while an automated tuning agent uses the predicted performance to search for efficient serving configurations. We evaluate on AMD Instinct™ MI355X GPUs with three engines (vLLM, SGLang, and ATOM). Measuring 11 anchors took 9.1 GPU-hours; measuring the 226 fixed-length configurations they cover took 204 GPU-hours. On 172 configurations that pass our measurement filters, time per output token has 8.1% median error. On a multi-turn coding workload, predictions are within 8% on throughput. For 159 additional deployments that run prefill and decode on separate GPUs, throughput is within 5.5%, although no such deployment is used as an anchor. Using predictions alone, among configurations an anchor covers, a short list of the mix planner's five best candidates contains a deployment within 12% of the best feasible pairings of model and latency target.

1 Introduction

Serving a large language model (LLM) efficiently is a configuration problem. An operator picks a serving engine, such as vLLM [26] or SGLang [60], and decides how to split the model across graphics processing units (GPUs) (Figure 2). Tensor parallelism (TP) splits every layer across GPUs [47]. Expert parallelism (EP) places whole experts of a mixture-of-experts (MoE) model on different GPUs [27]. Data parallelism (DP) gives each GPU its own requests, and engines often apply it to the attention layers only (attention DP) [12, 60]. Pipeline parallelism (PP) gives each GPU

Figure

(a) GPU-hours to measure

(b) median error (%)

Figure 1: ROCm InferaSim at a glance. (a) GPU-hours to measure every candidate versus only ROCm InferaSim's anchors. (b) Median prediction error on each validation set (§5). Agentic sets show the error factor of §5.1 minus one. Tails are 99th-percentile (p99) time per output token (TPOT).

a block of consecutive layers [21]. TP4 is TP across four GPUs; EP8 and PP2 read alike. The operator also picks precisions for weights, activations and the key-value (KV) cache, scheduler limits, speculative decoding [28], whether prefill and decode run on separate GPUs (disaggregated) or the same ones (colocated) [40, 61], and the number of replicas. These choices interact, and the best combination changes with the model, the hardware and the traffic. The goal is the cheapest deployment meeting a latency service-level objective (SLO).

Trial and error is expensive. Today, each trial loads the model, starts the engine and runs a benchmark. Our measurements show that a configuration holds its GPUs for a median 3.4 minutes, plus engine start-up. Frontier models increasingly require multiple nodes. Evaluating the 226 fixed-length configurations (fixed prompt and output lengths) in our study consumed 204 GPU-hours. Measuring all candidates of the searches in §5.11 would take about 25,000 GPU-hours (Figure 1a). Operators therefore tune by hand and deploy the best of a few trials.

Existing tools fall short. Performance models could eliminate the need for repeated trials, but existing approaches have two main limitations. Operator-level simulators such as Vidur [3] profile each operator and must profile again whenever the model, engine, or kernel library changes. Vidur models only dense layers, and none of these simulators ships data for AMD GPUs (§6). Analytical models [58, 8, 59] compute a step's time from hardware peak rates (roofline arithmetic [49]). Although these models capture how computational workloads decrease as more GPUs are added, they overlook the fixed per-step cost of kernel launches, synchronization, sampling, and scheduling. This cost remains largely unchanged as the GPU count increases and therefore strongly influences how execution time scales. Ignoring it and naively halving a measured four-GPU DeepSeek-V4-Pro step time to predict eight-GPU performance gives 44% median error.

Our approach. ROCm InferaSim rests on the key observation that many serving choices change how much work each GPU performs without changing which kernels run. Batch size, context length, TP/EP/PP width, replica count, arrival rate and keeping the KV cache in host memory fall into this category. In contrast, numerical precision, attention implementation, graph-capture mode, speculative decoding method and inference engine can alter the kernels themselves. We call the kernels that one engine step launches its kernel set. ROCm InferaSim profiles each kernel set once in a short run on at most one node. We call this measurement an anchor. Its analytical transfer laws predict other deployments with the same kernel set. They keep the fixed per-step cost of kernel launches, synchronization, sampling and scheduling unchanged while scaling only the GPU-divisible work. On the same four-to-eight-GPU DeepSeek-V4-Pro transfer, this reduces median error to 0.9% (§3.1.2).

Beyond one node. We handle a deployment larger than a node in three steps adapted from training performance prediction [43]. We reduce it to a configuration that fits on one node, measure that, and analytically restore what the reduction removed, such as pipeline stages, cross-node communication and wider sharding (§3.2). We also model factors specific to inference: disaggregated pools and their KV-cache transfers, KV caches in host memory, and request queueing.

Agentic traffic and search. These step predictions describe how a deployment executes, but choosing a deployment also requires modeling the traffic it serves, especially agentic sessions that pause between turns and reuse long prefixes. ROCm InferaSim embeds its step model in a discrete-event simulator that captures queueing, batching and prefix reuse. A tuning agent and mix planner then search these predictions instead of evaluating every candidate on GPUs.

Contributions. This paper makes four contributions:

  • Anchors and analytical transfer laws that predict every deployment sharing an anchor's kernel set from one measurement (§3.1–§3.1.2).

  • A reduce–measure–restore method for serving that covers pipelines across nodes, disaggregated prefill and decode pools, and KV caches in host memory (§3.2–§3.5).

  • A simulate mode that predicts with no measurement at all, used to rank candidates within one engine, and a tuning agent and mix planner that search with the predictor (§4).

  • An evaluation on AMD Instinct MI355X GPUs with vLLM, SGLang, and the ATOM engine from AMD [6], on fixed-length, agentic and disaggregated traffic (§5, Figure 1b).

References (51)