InferScale-Sim
interactive serving-systems research prototype
Loading Python runtime...
InferScale-Sim / v0.3.0

Explore serving policies, cache reuse, and P/D disaggregation without provisioning a GPU.

Generate workloads, compare schedulers, model KV pressure and prefix reuse, separate prefill from decode, and search the SLO-constrained design space. The simulator is Python running locally in a Pyodide Web Worker.

Backend
None
Runtime
Python / WASM
Network data
None after load
Profiles
Analytical reference
Reference-profile mode. Absolute L4, A10G, and A100 latency values are analytical predictions, not measured GPU benchmarks. Queueing, scheduling, cache, transfer, and SLO behavior is simulated live.

Run summary

Waiting

Configure a workload and run it

The Python simulator executes in a background Web Worker and returns request-level virtual timestamps.

Same workload - same seed

Scheduler Arena

Run every colocated v0.3 scheduler against the current Serving Lab workload and rank by SLO attainment, then goodput.

No comparison yet

Your Serving Lab workload and model controls are reused automatically.

Planner result

Waiting

No search yet

The planner repeatedly runs the simulator at different offered loads.

P/D disaggregation + prefix reuse

Modern Serving Lab

Compare colocated and prefill/decode-disaggregated serving, each with and without the current shared-prefix reuse scenario. P/D worker counts and interconnect settings come from Serving Lab.

No topology study yet

Set shared-prefix and P/D parameters in Serving Lab, then run this controlled comparison.

Bounded what-if sweep

Design Explorer

Sweep 10 colocated candidates plus six P/D/cache variants, then identify the non-dominated goodput/TTFT frontier. This is an interactive design study, not an exhaustive optimizer.

No design sweep yet

The current workload, model, SLO, and P/D parameters are reused from Serving Lab.

Simulation core

What is actually simulated?

Requests are generated from deterministic workload distributions and advanced through virtual time. Colocated runs model admission, prefill, paged KV allocation, dynamic decode batches, and completion. P/D runs use separate prefill and decode worker pools plus an explicit serialized KV-transfer link.

request -> queue -> prefill -> [KV transfer] -> decode -> completion
Prefix reuse

Cache without pretending to implement a radix tree

v0.3 models a single shared prompt prefix with configurable length and reuse fraction. Cache hits avoid redundant prefill work and share one persistent KV allocation. It is deliberately a controlled what-if abstraction, not a claim to reproduce SGLang's full RadixAttention policy.

P/D disaggregation

Role-specific resources and transfer cost

Prefill and decode have separate accelerator profiles and worker counts. Prompt KV state crosses a modeled interconnect before decode admission. The simulator reports role utilization, transfer latency, and transfer pressure so the benefit of isolation can be weighed against data-movement overhead.

Design search

Pareto, not one magic configuration

The Design Explorer reports both a raw-performance frontier and a resource-normalized frontier using goodput per accelerator. That prevents a multi-GPU P/D layout from looking unconditionally better merely because it uses more simulated hardware.

Research lineage

Why these features are in v0.3

Vidur established the value of simulation for avoiding expensive deployment sweeps. Recent systems have pushed toward heterogeneous and disaggregated serving, communication-aware modeling, runtime optimizations, and SLA-dependent design-space exploration. InferScale-Sim remains intentionally smaller and inspectable.

Vidur / 2024Predictive profiling, workload-aware serving simulation, configuration search.
TokenSim / 2025Extensible scheduling and memory-management simulation.
Revati / 2026GPU-free time-warp emulation of serving control logic.
LLMServingSim 2.0 / 2026Heterogeneous and disaggregated infrastructure, memory and communication.
Frontier / May 2026P/D disaggregation, runtime optimizations, stateful workloads, Pareto exploration.
HeteroPanacea / Aug 2026Heterogeneous stage specialization motivates resource-aware P/D comparison.
SGLang / RadixAttentionAutomatic shared-prefix KV reuse motivates the controlled cache scenario.