🤖 AI Tools
· 18 min read
Last updated on

How to Benchmark LLM Inference Correctly — Metrics That Matter


Most LLM speed numbers you see online are hard to compare because they measure different things: one counts the first token, another doesn’t; one runs a single request, another a hundred; one has a warm prompt cache, another doesn’t. This guide defines the metrics precisely, shows how to measure them with the tools each engine ships, and gives you a small script you can run against any OpenAI-compatible streaming endpoint. It contains no benchmark results of its own. Every number you get should come from your hardware, your model and your prompts.

Pick the tool for the question

Your questionUseWhat it measures
How fast is this model file on this machine, ignoring the server?llama-bench (llama.cpp)Prompt processing (pp) and text generation (tg) tokens/s, no HTTP, no tokenization or sampling
How fast was this one Ollama request?Timing fields in the Ollama API responsePer-request load, prompt eval and generation durations
How does a vLLM server behave under load?vllm bench serveTTFT, TPOT, ITL, throughput with percentiles at the client
How does any OpenAI-compatible server behave under load, with reports and sweeps?GuideLLM or AIPerfLoad-testing frameworks with concurrency/rate control
I just need TTFT and tok/s from my own endpoint, with no installThe Python script belowClient-side TTFT, decode tok/s, aggregate tok/s

The vLLM documentation says its own vllm bench serve is mainly for evaluating vLLM features and regression testing, and recommends GuideLLM for benchmarking production servers (vLLM Benchmark CLI docs).

Key metrics explained

Metric names are not standardized across tools. The vLLM docs say so explicitly: compare measurement points and formulas, not names (vLLM docs). The definitions below follow vLLM’s.

Time to first token (TTFT)

Time from sending the request to receiving the first streamed output. It includes network latency, queueing on the server, tokenization and chat-template work, and the prefill pass over your whole prompt. Prefill cost grows with prompt length, so a 10K-token prompt has a very different TTFT from a 50-token one on the same hardware. Interactive users feel TTFT as “is it doing anything?”. Pick a target from your product, not from a blog post.

Two traps:

  • Reasoning models stream thinking tokens before the visible answer. Decide whether TTFT means “first token” or “first visible answer token”, and report which one you used.
  • Prompt caching makes repeated prompts look fast. vLLM’s docs warn that repeating vllm bench serve against the same server can reuse prompts in the prefix cache and inflate throughput (source). llama-server’s cache_prompt option reuses the KV cache of the previous request and is on by default (llama-server README). Use unique prompts when you want to measure prefill.

Inter-token latency (ITL) and time per output token (TPOT)

ITL is the gap between consecutive streamed outputs, aggregated across all requests. TPOT is computed once per request, excluding the first token:

TPOT = (end-to-end latency − TTFT) / (output tokens − 1)

With normal decoding each streamed chunk usually holds one token, so ITL and TPOT are close. With speculative decoding one chunk can hold several tokens, so ITL (gaps between chunks) and TPOT (amortized per token) diverge (vLLM docs). Look at the spread of ITL, not just the mean. Spikes can come from scheduling contention (a long prefill from another request interrupting decoding) or memory pressure.

Tokens per second (tok/s)

Be explicit about which one you mean:

  • Per-request decode speed: (output tokens − 1) / (time of last token − time of first token). This is what one user experiences while text streams.
  • Aggregate output throughput: total output tokens across all requests divided by wall-clock time. This is what the server delivers, and it usually rises with concurrency while per-request speed falls.

Decode speed also drops as context grows, because each new token attends to a larger KV cache. llama-bench can measure this directly with its depth option (-d), which prefills the KV cache with N tokens before the test (llama-bench README).

For a rough sense of what is fast enough for a human reader: the largest meta-analysis of silent reading found an average of 238 words per minute for English non-fiction (Brysbaert, 2019). That is about 4 words/s, or roughly 5 tokens/s at around 1.3 tokens per English word (the ratio depends on the tokenizer). A chat UI therefore needs less than people assume. Coding agents, tool-calling loops and reasoning models that generate hidden thinking tokens are limited by total generation time instead, so they need much more. Set your target from the workload.

Throughput (requests/s) and goodput

Requests completed per second at a given concurrency. This is where continuous batching matters: the vLLM paper reports 2-4x higher throughput than FasterTransformer and Orca at similar latency, with larger gains for longer sequences and larger models (Kwon et al., 2023). Treat that as a result for that paper’s setup, not a promise for your model.

Raw throughput can be gamed by letting latency explode. vllm bench serve supports --goodput with service-level objectives (for example TTFT and TPOT limits in milliseconds), so you can count only the requests that met your latency targets.

Tail latency (p50 / p95 / p99)

Averages hide queueing. One request in a hundred taking 5 s feels like “it’s flaky” even if the mean is 200 ms. Report p50, p95 and p99 for TTFT and end-to-end latency, and note how many requests you ran: with 30 requests, a p99 is just the slowest request. vLLM’s --metric-percentiles defaults to 99 only, so ask for the percentiles you want.

A quick sanity check before you start

For a dense model at batch size 1, decoding is usually limited by memory bandwidth, because every generated token has to read the model weights. That gives an upper bound:

max tok/s ≈ memory bandwidth (GB/s) / bytes read per token (GB)

Illustrative arithmetic (not a measurement): a 16 GB set of weights on a device with 500 GB/s of memory bandwidth has a ceiling near 31 tok/s. If your measured single-stream decode speed is far above your ceiling, suspect a cache hit, speculative decoding, a mixture-of-experts model that only reads its active parameters per token, or a measurement bug. If it is far below, suspect CPU offload, thermal limits or a wrong backend. See GPU memory planning for how to estimate model size.

Common mistakes

  1. Using only short prompts. Real workloads often have long system prompts, retrieved documents or code context. Short prompts hide prefill cost and KV cache overhead.
  2. Single-user benchmarks only. Measure at the concurrency you will actually run, and sweep it. A single stream tells you nothing about queueing.
  3. No warmup. The first requests include model loading, kernel compilation and cold caches. In Ollama, the first request’s load_duration can dominate. vLLM has --num-warmups, llama-bench runs warmup by default (disable with --no-warmup), and AIPerf has --warmup-request-count.
  4. Letting the prompt cache flatter you. See the caching note under TTFT. Vary the prompt prefix or restart the server between runs.
  5. Comparing different quantizations or context sizes. Lower-bit weights usually decode faster because fewer bytes are read per token, but the gain depends on the kernel and hardware, and quality changes too. See quantization trade-offs. Compare like with like.
  6. Counting tokens inconsistently. Different tokenizers split the same text into different token counts. Use the server’s reported usage counts, or the same tokenizer on both sides, and keep the output length comparable (for example fixed max_tokens with end-of-sequence ignored, where the tool allows it).
  7. Measuring only generation. llama-bench deliberately excludes tokenization and sampling (README), so its numbers will be higher than what an HTTP client sees. Use an end-to-end tool for user-facing numbers.
  8. Missing environment details. A result without GPU, driver/CUDA version, engine version, model and quantization, context size and concurrency cannot be compared with anything.
  9. Using curl -w time_starttransfer for TTFT. If the request is not streamed, the “first byte” arrives when the whole response is ready, so you are measuring total latency. Stream the response ("stream": true) and time the first chunk.

Tool-by-tool commands

Check each against the version you run. These flags were confirmed against the upstream docs and source on December 3, 2026.

llama.cpp: llama-bench

# 512-token prompt processing, 128-token generation, repeated 5 times (the default is 5)
llama-bench -m ./model.gguf -p 512 -n 128 -r 5

# Generation speed with an empty vs a 4096-token-deep KV cache
llama-bench -m ./model.gguf -p 0 -n 128 -d 0,4096

# Prompt processing followed by generation as one test
llama-bench -m ./model.gguf -pg 512,128

pp rows measure prompt processing, tg rows measure text generation, and results are averaged tokens per second with a standard deviation. Options can take comma-separated values to run a matrix (for example -ngl 20,30,99 or -b 128,256,512). Defaults include 512 prompt tokens, 128 generated tokens, 5 repetitions and -ngl -1 (llama-bench README).

llama.cpp: llama-server under load

llama-server exposes an OpenAI-compatible API and runs continuous batching by default. Its default port is 9931 in the current README (older builds used 8080), so pass --port explicitly. Set the number of slots explicitly when you benchmark concurrency, because each slot serves one request at a time:

llama-server -m ./model.gguf -c 16384 -np 4 --port 8080 --metrics
  • -np, --parallel N sets the number of server slots. The context set by -c is shared across slots, so the context available per request shrinks as you add slots.
  • --metrics enables a Prometheus-compatible /metrics endpoint (disabled by default).
  • Responses include a timings object with fields such as prompt_ms, prompt_per_second, predicted_n, predicted_per_second and cache_n (prompt tokens reused from cache), which is useful for spotting cache hits.

Then point the Python script below, or vllm bench serve / AIPerf / GuideLLM, at http://localhost:8080. Source: llama-server README.

Ollama: timing fields in the API response

Ollama’s /api/generate returns timing data in the final response object (the last item of a stream, or the whole object with "stream": false):

curl -s http://localhost:11434/api/generate -d '{
  "model": "<your-model>",
  "prompt": "Explain how a hash map handles collisions.",
  "stream": false
}'
FieldMeaning (per the Ollama API docs)
total_durationTotal time for the request
load_durationNanoseconds spent loading the model
prompt_eval_countTokens in the prompt
prompt_eval_durationNanoseconds evaluating the prompt (uncached tokens)
eval_countTokens in the response
eval_durationNanoseconds spent generating the response

Generation speed is eval_count / eval_duration × 10^9 tokens/s, and prompt processing speed is prompt_eval_count / prompt_eval_duration × 10^9. Notes:

  • All durations are in nanoseconds.
  • The API does not report TTFT directly. load_duration + prompt_eval_duration approximates the server-side time before generation starts, but it excludes network and queueing. Use the streaming script below for client-side TTFT.
  • If the model was not loaded, load_duration is large. Send a warmup request first, or keep models loaded with keep_alive or OLLAMA_KEEP_ALIVE.
  • With a cached prompt, prompt_eval_count and prompt_eval_duration cover only the tokens that had to be evaluated.
  • Parallelism is controlled by OLLAMA_NUM_PARALLEL, and more parallel requests need more memory. Set it explicitly for concurrency tests.
  • Ollama also serves an OpenAI-compatible /v1/chat/completions endpoint with streaming and stream_options.include_usage, so the script below works against http://localhost:11434/v1/chat/completions.

Sources: Ollama API docs, FAQ, OpenAI compatibility. The Ollama CLI also has a --verbose flag on its run command that prints timings after each response. If results look slow, see Ollama slow inference fix.

vLLM: vllm bench serve

Start a server, then benchmark it from a second terminal:

vllm serve <model-id>

vllm bench serve \
  --backend openai-chat \
  --endpoint /v1/chat/completions \
  --model <model-id> \
  --dataset-name random \
  --random-input-len 1024 \
  --random-output-len 256 \
  --num-prompts 200 \
  --max-concurrency 16 \
  --num-warmups 3 \
  --percentile-metrics ttft,tpot,itl,e2el \
  --metric-percentiles 50,95,99 \
  --save-result
  • --dataset-name random with --random-input-len / --random-output-len generates synthetic prompts of a chosen length. Use sharegpt, a Hugging Face dataset or a custom .jsonl file when you need realistic text. With random, a fixed --seed (default 0) reproduces the same prompts, which also means repeated runs can hit the prefix cache. Vary --seed, restart the server, or use vllm bench sweep serve, which resets server caches between runs.
  • --request-rate defaults to inf (send everything at once). A finite rate uses a Poisson process by default. --max-concurrency caps requests in flight. For capacity planning, the docs describe setting a concurrency limit and sweeping it.
  • The output includes request throughput, output token throughput, total token throughput, and mean/median/percentile TTFT, TPOT and ITL.
  • The server defaults to port 8000. The client uses --host / --port or --base-url.
  • vllm bench serve can talk to other OpenAI-compatible servers through its --backend options, but check that the server supports the fields it sends.
  • For offline engine throughput without HTTP, vllm bench throughput exists, with the same --dataset-name random options.

Source: vLLM Benchmark CLI and the vllm/benchmarks/serve.py argument definitions. For production-style load tests the vLLM docs point to GuideLLM. See also Serve LLMs with vLLM.

NVIDIA: AIPerf (replacing GenAI-Perf)

The GenAI-Perf README says it is being phased out with no new features, and points users to AIPerf (GenAI-Perf README). The previous version of this article used genai-perf. Use AIPerf for new work:

pip install aiperf

aiperf profile \
  --model <model-id> \
  --endpoint-type chat \
  --endpoint /v1/chat/completions \
  --streaming \
  --url localhost:8000 \
  --concurrency 8 \
  --request-count 100 \
  --warmup-request-count 5 \
  --output-tokens-mean 256

Run one concurrency value per invocation and loop in your shell to sweep. AIPerf reports TTFT, time to second token, inter-token latency, request latency, per-user and total token throughput, with avg/min/max/p50/p90/p99. The README’s Ollama example also passes --tokenizer <huggingface-id> so AIPerf can count tokens itself; add it if your server’s token counts are unavailable. Source: AIPerf README.

GuideLLM

GuideLLM is the vLLM project’s benchmarking framework for serving endpoints, with synthetic or dataset-backed workloads (--data kind=synthetic_text,prompt_tokens=256,output_tokens=128) and generated reports. It is the tool the vLLM docs recommend for production servers. Read its README for the current guidellm benchmark options before scripting it.

A minimal script: TTFT and tokens/s against any streaming endpoint

This script uses only the Python standard library. It sends streaming chat requests to an OpenAI-compatible endpoint (vLLM, llama-server, Ollama’s /v1 API, or a hosted API), discards warmup requests, and reports client-side TTFT, per-request decode tok/s and aggregate tok/s. It is a starting point for your own measurements: run it yourself and keep the output with your hardware notes.

#!/usr/bin/env python3
"""Measure TTFT and decode tokens/s against an OpenAI-compatible streaming endpoint.

Standard library only. Example:
  python bench_stream.py --url http://localhost:8000/v1/chat/completions \
      --model <model-name> --requests 30 --concurrency 4 --warmup 3
"""
import argparse
import json
import time
import urllib.request
import uuid
from concurrent.futures import ThreadPoolExecutor


def one_request(args, prompt):
    # A unique prefix defeats prefix/prompt caching, which would otherwise hide prefill cost.
    text = f"[{uuid.uuid4()}] {prompt}" if args.unique else prompt
    body = json.dumps({
        "model": args.model,
        "messages": [{"role": "user", "content": text}],
        "max_tokens": args.max_tokens,
        "temperature": 0,
        "stream": True,
        "stream_options": {"include_usage": True},
    }).encode()
    headers = {"Content-Type": "application/json", "Authorization": f"Bearer {args.api_key}"}
    req = urllib.request.Request(args.url, body, headers)

    t0 = time.perf_counter()
    first = last = None
    chunks = 0
    usage_tokens = None
    with urllib.request.urlopen(req, timeout=args.timeout) as resp:
        for raw in resp:  # server-sent events: one "data: {...}" line per chunk
            line = raw.decode().strip()
            if not line.startswith("data:"):
                continue
            data = line[5:].strip()
            if data == "[DONE]":
                break
            evt = json.loads(data)
            if evt.get("usage"):
                usage_tokens = evt["usage"].get("completion_tokens")
            for choice in evt.get("choices", []):
                delta = choice.get("delta", {})
                # Reasoning models stream thinking tokens first; count them as output.
                if delta.get("content") or delta.get("reasoning_content") or delta.get("reasoning"):
                    now = time.perf_counter()
                    first = first or now
                    last = now
                    chunks += 1
    if first is None:
        raise RuntimeError("no tokens streamed")
    tokens = usage_tokens or chunks  # fall back to chunk count if the server sends no usage
    decode_tps = (tokens - 1) / (last - first) if tokens > 1 and last > first else float("nan")
    return {"ttft": first - t0, "e2e": time.perf_counter() - t0, "tokens": tokens, "tps": decode_tps}


def pct(values, p):
    s = sorted(values)
    return s[min(len(s) - 1, round(p / 100 * (len(s) - 1)))]  # nearest rank


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--url", default="http://localhost:8000/v1/chat/completions")
    ap.add_argument("--model", required=True)
    ap.add_argument("--api-key", default="not-needed")
    ap.add_argument("--prompt", default="Explain how a hash map handles collisions.")
    ap.add_argument("--prompt-file", help="read the prompt from a file (use it to test long prompts)")
    ap.add_argument("--max-tokens", type=int, default=256)
    ap.add_argument("--requests", type=int, default=30)
    ap.add_argument("--concurrency", type=int, default=1)
    ap.add_argument("--warmup", type=int, default=3)
    ap.add_argument("--timeout", type=int, default=600)
    ap.add_argument("--unique", action=argparse.BooleanOptionalAction, default=True,
                    help="prefix each prompt with a random id to avoid cache hits (default on)")
    args = ap.parse_args()
    prompt = open(args.prompt_file).read() if args.prompt_file else args.prompt

    for _ in range(args.warmup):  # discarded: model load, kernel compilation, cold caches
        one_request(args, prompt)

    t0 = time.perf_counter()
    with ThreadPoolExecutor(args.concurrency) as pool:
        results = list(pool.map(lambda _: one_request(args, prompt), range(args.requests)))
    wall = time.perf_counter() - t0

    ttft = [r["ttft"] * 1000 for r in results]
    tps = [r["tps"] for r in results if r["tps"] == r["tps"]]  # drop NaN
    total_tokens = sum(r["tokens"] for r in results)
    print(f"requests={len(results)} concurrency={args.concurrency} max_tokens={args.max_tokens}")
    print(f"TTFT ms   p50={pct(ttft, 50):.0f}  p95={pct(ttft, 95):.0f}  max={max(ttft):.0f}")
    print(f"decode tok/s per request   p50={pct(tps, 50):.1f}  p5={pct(tps, 5):.1f}")
    print(f"aggregate output tok/s = {total_tokens / wall:.1f}  ({total_tokens} tokens / {wall:.1f}s)")


if __name__ == "__main__":
    main()

How to use it and what it does not do:

  • Endpoints: vLLM http://localhost:8000/v1/chat/completions, llama-server http://localhost:8080/v1/chat/completions (with --port 8080), Ollama http://localhost:11434/v1/chat/completions. Use the model name that server expects.
  • TTFT is the time from sending the request until the first streamed chunk containing text (or reasoning text). It includes network, queueing and prefill.
  • Decode tok/s is (tokens − 1) / (last chunk time − first chunk time) for each request. Token counts come from the server’s usage field when it sends one, and fall back to counting streamed chunks, which can differ from the true token count (for example when a server bundles several tokens in one chunk).
  • Aggregate tok/s divides all output tokens by the wall time of the measured phase, so raise --requests at high concurrency until the ramp-up and tail effects are small relative to the run.
  • Concurrency is a closed loop: --concurrency N keeps N requests in flight. It does not model arrival rates (use vllm bench serve --request-rate or AIPerf for that).
  • Cache avoidance: by default each prompt starts with a random id so prefix caches cannot hit. Pass --no-unique to measure the cached path on purpose.
  • Long prompts: use --prompt-file with a document of the length you care about. With long prompts and high concurrency, prefill dominates TTFT.
  • Output length is not forced to be identical across requests, because the script does not set a server-specific “ignore end-of-sequence” option. Per-request tok/s normalizes for that, but aggregate numbers will vary with how long the model chooses to answer.
  • It is a small probe, not a statistics package. For publishable comparisons, repeat runs, record the spread and use one of the dedicated tools above.

The script’s stream parsing and summary output were exercised only against a local stub server that emits server-sent events. It has not been run against a real model server, so do a first run with --requests 3 and compare against the server’s own usage before trusting its output on your setup.

How to run a proper benchmark

  1. Define the workload. Collect real prompts (or realistic ones) with the input and output lengths you expect: short chat turns, medium coding requests, long document prompts. Fix max_tokens, temperature and the system prompt.
  2. Warm up. Send a few throwaway requests so the model is loaded and kernels are compiled. Then check that your measured runs do not hit the prompt cache unless that is your real traffic.
  3. Measure one stream first. Record TTFT and per-request decode speed at concurrency 1. That is your best case.
  4. Sweep concurrency. Run 1, 4, 8, 16, 32 (or whatever you will serve). At each level record TTFT p50/p95/p99, ITL, per-request tok/s and aggregate tok/s. Plot per-request tok/s against aggregate tok/s to find where adding users stops paying off.
  5. Set an objective. Decide your latency limits (for example “p95 TTFT under X ms and p95 per-request speed above Y tok/s”) and report the highest concurrency that meets them. That number is more useful than peak throughput.
  6. Report the environment. Hardware (GPU/CPU, memory, interconnect), driver and CUDA/ROCm/Metal versions, engine version and flags, model and quantization, context size, prompt and output length distribution, concurrency, number of requests, and cache settings.

Interpreting results

There are no universal “good” values. A coding assistant, a batch summarizer and a voice agent need different targets. Use these patterns instead:

  • TTFT grows as you add concurrency while per-request tok/s stays flat. Requests are queueing, either waiting for a free slot or behind other requests’ prefill. Look at -np in llama-server, --max-num-seqs in vLLM, or OLLAMA_NUM_PARALLEL in Ollama (check your version’s docs for the exact setting).
  • Per-request tok/s falls as concurrency rises, while aggregate tok/s rises. This is the normal trade-off of batching. Decide how much per-user speed you will give up.
  • Aggregate tok/s stops rising or falls. You have saturated compute or memory bandwidth, or you are paging or swapping. Check KV cache usage and GPU memory.
  • p99 is many times p50. Look for queueing, long prompts blocking short ones, preemption, or memory pressure. A heuristic, not a rule: if the tail is several times the median, find out why before shipping.
  • ITL spikes during decoding often coincide with another request’s long prefill. Chunked prefill and prefill/decode separation exist to reduce this, so check your engine’s settings.
  • Results that are too good. Check for cache hits, a fixed seed replayed against a warm server, or token counts that do not match the server’s usage.

Comparing inference engines

When comparing vLLM, Ollama, llama.cpp and TGI, keep these identical:

  • Model weights and quantization (a GGUF file and an AWQ checkpoint are not the same workload)
  • Hardware and power settings
  • Prompt set and output length
  • Concurrency levels and arrival pattern
  • Cache settings and warmup
  • The measuring tool, so metric definitions match

Public leaderboards measure model quality, not serving speed. See AI model leaderboards explained for how to read those. If you need a specific GPU for a test and do not own it, cloud GPU providers can rent one by the hour, and you should record the exact instance type in your report.

What changed in this update

December 3, 2026: Checked every command against current upstream documentation and rebuilt the tool section.

  • Removed the llm-benchmark command. Its flags (--url, --model, --num-requests) could not be confirmed; the PyPI package of that name is a different project (an Ollama benchmark).
  • Replaced genai-perf with AIPerf. The GenAI-Perf README states it is being phased out and points to AIPerf. The earlier command also passed several values to one --concurrency flag, which could not be confirmed; AIPerf examples use one value per run.
  • Added the current vllm bench serve command (with --dataset-name random, --max-concurrency, --num-warmups, --percentile-metrics, --metric-percentiles) and the vLLM docs’ warnings about prefix-cache reuse and about GuideLLM for production benchmarks.
  • Added llama-bench (-p, -n, -d, -pg, -r) and llama-server (-np, --metrics, timings) commands, including the current default port (9931).
  • Added the Ollama API timing fields (eval_count, eval_duration, prompt_eval_duration, load_duration) with the tokens/s formula and the fact that durations are in nanoseconds.
  • Fixed the curl -w time_starttransfer “TTFT” example: on a non-streaming request it measures total latency, not time to first token. Replaced it with a streaming measurement.
  • Removed the vegeta example, which cannot measure TTFT or ITL for streamed responses, and the unsourced “10-50x” continuous-batching claim, replaced by the vLLM paper’s reported 2-4x with a link.
  • Replaced the unsourced “good” thresholds table (TTFT under 500 ms, over 15 tok/s, over 10 req/s) with guidance on setting targets from your workload, plus a reading-speed reference (238 wpm, Brysbaert 2019).
  • Corrected “Q4 is always faster than FP16” to a conditional statement. The speed gain depends on kernels and hardware.
  • Corrected the red-flag guidance that TTFT rising with concurrency means batching is broken; it is expected once requests queue.
  • Added definitions for TPOT and goodput, a memory-bandwidth sanity check (illustrative arithmetic), and a runnable standard-library Python script for client-side TTFT and tok/s.
  • Replaced placeholder model names (qwen3.5:27b) with <model> placeholders so the commands do not imply a specific tested model.

Not verified: the AIPerf flags beyond those shown in its README and tutorial, the GuideLLM command line (only its --data syntax appears here), and the Python script against a live inference server.

Related: Serve LLMs with vLLM · vLLM vs Ollama vs llama.cpp · AI Model Leaderboards Explained · Continuous Batching · KV Cache Explained · GPU Memory Planning