Skip to main content
QUICK REVIEW

[Paper Review] Vidur: A Large-Scale Simulation Framework For LLM Inference

Amey Agrawal, Nitin Kedia|arXiv (Cornell University)|May 8, 2024
Simulation Techniques and ApplicationsDecision Sciences8 citations
TL;DR

Vidur is a high-fidelity LLM inference simulator with Vidur-Bench and Vidur-Search to enable cost-effective deployment configuration exploration across models, hardware, and workloads.

ABSTRACT

Optimizing the deployment of Large language models (LLMs) is expensive today since it requires experimentally running an application workload against an LLM implementation while exploring large configuration space formed by system knobs such as parallelization strategies, batching techniques, and scheduling policies. To address this challenge, we present Vidur - a large-scale, high-fidelity, easily-extensible simulation framework for LLM inference performance. Vidur models the performance of LLM operators using a combination of experimental profiling and predictive modeling, and evaluates the end-to-end inference performance for different workloads by estimating several metrics of interest such as latency and throughput. We validate the fidelity of Vidur on several LLMs and show that it estimates inference latency with less than 9% error across the range. Further, we present Vidur-Search, a configuration search tool that helps optimize LLM deployment. Vidur-Search uses Vidur to automatically identify the most cost-effective deployment configuration that meets application performance constraints. For example, Vidur-Search finds the best deployment configuration for LLaMA2-70B in one hour on a CPU machine, in contrast to a deployment-based exploration which would require 42K GPU hours - costing ~218K dollars. Source code for Vidur is available at https://github.com/microsoft/vidur.

Motivation & Objective

  • Motivate the need for cost-efficient deployment of large language models (LLMs) by exploring vast configuration spaces of parallelism, batching, and scheduling.
  • Introduce Vidur as a high-fidelity simulator that profiles and predicts end-to-end LLM inference performance across models, hardware, and workloads.
  • Provide Vidur-Bench to benchmark workload patterns and policies, and Vidur-Search to optimize deployment configurations under performance constraints.

Proposed method

  • Decompose LLMs into a small set of token-, sequence-, and communication-level operators and profile a minimal input size set to build a predictive runtime estimator.
  • Profile token-level, sequence-level, and communication operators to create operator-specific runtime models that can be interpolated for unprofiled inputs.
  • Use a random-forest regression-based runtime estimator to predict kernel runtimes from limited profiling data.
  • Employ a pluggable hierarchical scheduler with global, replica, and replica-stage components to simulate batching, memory management, and scheduling policies.
  • Introduce Vidur-Bench as an extensible workload suite with various patterns, schedulers, and serving frameworks for fidelity and benchmarking.
  • Implement Vidur-Search to maximize QPS per dollar by binary-searching the maximum sustainable QPS for each deployment configuration and workload.

Experimental results

Research questions

  • RQ1Can Vidur accurately predict end-to-end LLM inference performance across different models, parallelization strategies, and workload traces?
  • RQ2How does workload variation impact key performance metrics such as latency and throughput in LLM inference?
  • RQ3Can Vidur-Search identify cost-effective deployment configurations that meet specified SLOs for given workloads and hardware?
  • RQ4What is the fidelity of Vidur’s predictions for dynamic, online workloads compared to offline, static scenarios?

Key findings

  • Vidur predicts request-level LLM inference performance with under 9% error across a range of models, hardware, and traces.
  • Vidur-Bench reveals that workload characteristics—such as input/decode token counts and batch size—significantly affect output metrics.
  • Vidur-Search can find near-optimal deployment configurations (e.g., for LLaMA2-70B) substantially faster and cheaper than hardware-based exploration (e.g., 1 hour on CPU vs 42K GPU hours and $218K).
  • Profiling focuses on a small set of operator categories (token-level, sequence-level, communication) to enable scalable predictions across models.
  • The framework demonstrates high fidelity in mimicking cluster-level metrics for large-scale workloads and traces.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.