What metrics should you measure for LLM inference performance?
The prerequisite for sizing and TCO estimation is benchmarking the performance of each deployment unit, e.g., an inference server. The goal of this step is to measure the throughput a system can produce under load, and at what latency. These throughput and latency metrics, together with quality of service requirements (e.g., max latency) and expected peak demand (e.g., max concurrent users or requests per second), will help estimate the required hardware, such as sizing the deployment. In turn, sizing information is a prerequisite for estimating the total cost of ownership (TCO) of the given s
What formulas determine cost per token and yearly depreciation for LLM inference?
To estimate the amount of hardware and software licenses required and the associated cost, follow these steps and a hypothetical example First, collect and identify the cost information corresponding to both hardware and software. Next, calculate the total cost following the steps: Number of servers is calculated as the number of instances times the GPUs per instance, divided by the number of GPUs per server. Yearly server cost is calculated as the initial server cost divided by the depreciation period (in years), adding the yearly software licensing and hosting costs per server. Total cost is
How do latency-throughput trade-offs affect deployment optimization?
Once raw benchmark data are collected, they are analyzed to gain insight into the various performance characteristics of the system. Read our LLM inference benchmarking guide, where we gather NIM performance data with GenAI-perf and use a simple Python script to analyze the data. For example, performance data provided by GenAI-perf can be used to establish the latency-throughput trade-off curve, shown in Figure 1. Each dot on this graph corresponds to a “concurrency” level, that is, the number of concurrent requests being put into the system at any given time throughout the benchmark process