Skip to content
HIPS
  • Earn with your GPU
  • Pricing
  • Docs
Sign inJoin early access
  1. Learn
  2. /
  3. Low-latency AI inference

Low-latency AI inference: measure it, then cut it

Low-latency AI inference means answers that start fast and stream fast. Measure it as two numbers: time to first token, set mostly by the prompt's length and any queue, and the time between tokens, set by the model's size and the GPU's memory speed. Each has its own fixes, and the fastest setup for one can slow the other.

A HIPS guide. Updated December 2, 2026. Sources at the end.

On this page+
  1. 01The numbers that define latency
  2. 02Tokens per second, per user and per system
  3. 03Measure it yourself
  4. 04AI inference optimization for latency
  5. 05What the fastest LLM inference depends on
  6. 06Low-latency inference on HIPS
  7. 07Questions
  8. 08Sources
Join early accessRead LLM inference, explained
FIG. 1Low-latency AI inference
NETWORK OUTQUEUEPREFILLFIRST TOKENONE TICK PER OUTPUT TOKENTIME BETWEEN TOKENSLAST TOKENNETWORK BACKTIME TO FIRST TOKENEND TO END

On this page

  1. 01The numbers that define latency
  2. 02Tokens per second, per user and per system
  3. 03Measure it yourself
  4. 04AI inference optimization for latency
  5. 05What the fastest LLM inference depends on
  6. 06Low-latency inference on HIPS
  7. 07Questions
  8. 08Sources
01

The numbers that define latency

NVIDIA's benchmarking documentation defines the metrics most tools report.[1]

The numbers that define latency
MetricNVIDIA's definitionWhat sets it
Time to first token (TTFT)"the time from query submission to the first received token, if the response is not empty"The queue, the prefill of your prompt, the network
Inter-token latency (ITL), also time per output token (TPOT)"the average time between consecutive tokens"Decode: the model's size, its precision, the GPU's memory bandwidth, the batch
End-to-end latency"how long it takes from submitting a query to receiving the full response"Both of the above, times the answer's length
Tokens per second (TPS), per system"total output token throughput across all simultaneous requests"The whole server, under load

NVIDIA adds that TTFT "generally includes request queuing time, prefill time, and network latency," and that "Longer prompts increase TTFT."[1]

The arithmetic that matters. End-to-end latency is the time to first token plus the generation time, and generation takes about one inter-token interval per output token. So the answer's length multiplies every millisecond of decode. One chip maker puts it this way: "for a 500-token response, shaving 5 ms off TPOT saves 2.5 seconds."[2]

Look at the tail. Report the 95th or 99th percentile, not only the average. A system with a quick median can still keep one user in twenty waiting.

02

Tokens per second, per user and per system

"Tokens per second" means two different things, and benchmarks mix them up.

  • Per user: how fast one answer streams. It is roughly one divided by the inter-token latency: 20 milliseconds between tokens is 50 tokens a second.
  • Per system: all output tokens a server produces across every request at once. NVIDIA: "As the number of requests increases, total TPS per system increases until it saturates the available GPU compute resources. Beyond that point, TPS can decrease."[1]

The two pull against each other. In the same chip maker's words, "a smaller batch gives each request more memory bandwidth and returns tokens sooner, but it leaves compute capacity unused."[2] A provider's headline throughput tells you little about how fast your one answer will stream.

03

Measure it yourself

Published figures come from the publisher's own prompts, hardware and load. Measure on yours. This script works against any OpenAI-compatible API, HIPS's included. Set BASE_URL, API_KEY and MODEL first.

Python
import os, time
from openai import OpenAI

client = OpenAI(base_url=os.environ["BASE_URL"], api_key=os.environ["API_KEY"])
start = time.perf_counter()
first, pieces, usage = None, 0, None

stream = client.chat.completions.create(
    model=os.environ["MODEL"],
    messages=[{"role": "user", "content": "Explain in 200 words how a GPU runs a language model."}],
    stream=True,
    stream_options={"include_usage": True},
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        first = first or time.perf_counter()
        pieces += 1
    if chunk.usage:
        usage = chunk.usage
end = time.perf_counter()

tokens = usage.completion_tokens if usage else pieces
itl = (end - first) / max(tokens - 1, 1)
print(f"time to first token: {(first - start) * 1000:.0f} ms")
print(f"time between tokens: {itl * 1000:.1f} ms, about {1 / itl:.0f} tokens per second")
print(f"end to end: {(end - start) * 1000:.0f} ms for {tokens} output tokens")

The time between tokens follows NVIDIA's definition, which leaves the first token out.[1] A reasoning model may think before it writes, so its first visible token comes later than its first token.

To get numbers you can trust:

  • Use your real prompts, at their real lengths.
  • Run at your real concurrency, not one request at a time.
  • Repeat it, at your busiest hours, and report the median and the 95th percentile.
  • Run it from where your users are, since the network counts.
04

AI inference optimization for latency

Each fix moves one number. Pick by the number that is too high.

AI inference optimization for latency
FixMovesThe trade-off
A shorter promptTime to first tokenLess context for the model
Prefix caching: the same beginning reused across requestsTime to first tokenOnly helps when requests share that beginning
Keeping the model loadedTime to first token of the first requestYou pay for the GPU while it waits
A smaller model, or a mixture-of-experts modelTime between tokensCheck quality on your own test set
QuantizationTime between tokensPossible loss of quality
Speculative decodingTime between tokensNeeds a draft model; gains vary by text
Fewer requests per GPUTime between tokensLower throughput, higher cost per token
Shorter answersEnd-to-end latencyLess text
StreamingWhen the reader sees the first wordsNothing; the total stays the same
Fewer calls in a chainEnd-to-end latency of an agentSimpler steps

Two of these deserve a source each. On quantization, NVIDIA's engineering blog says it means "you can transfer more parameters over the same amount of bandwidth, which can help to accelerate models that are bandwidth-limited."[3] On speculative decoding, the paper that introduced it reported "a 2X-3X acceleration compared to the standard T5X implementation, with identical outputs" on the T5-XXL model.[4] For agents, latency adds up: "Agentic pipelines chain inference calls in sequence, with each step waiting on the one before it."[2]

05

What the fastest LLM inference depends on

There is no single fastest service or setup. Speed comes from a stack of choices, and each benchmark measures one stack:

  • The GPU's memory bandwidth. Decode is memory-bound, so faster memory means a shorter wait per token.[3]
  • The model's active size and precision. Fewer bytes read per token means faster decode.
  • The server's batching policy. How many requests share a GPU sets the balance between each user's speed and total throughput.
  • Speculative decoding and caching. Both cut steps, when they apply.
  • The queue and the network. Neither shows in a lab benchmark; both show to your users.

When a provider publishes a speed, read the model, the precision, the prompt length, the concurrency and the percentile before you compare it with anything else.

06

Low-latency inference on HIPS

HIPS does not publish latency or speed figures today. Run the script above against https://ai.hips.com/v1 once you have a key, with your own prompts. What HIPS offers for each lever:

  • Streaming. stream: true returns server-sent events in OpenAI's chat.completion.chunk shape, then data: [DONE]. With stream_options.include_usage, the last chunk carries the usage and the request's cost.
  • A model kept loaded. On GPU rental and serverless GPU endpoints, active workers run all the time, so your model is always loaded.
  • Ready models first. Semantic routing, in preview, can send each request to the model with the shortest measured time for its size, when you choose its Fastest preference. Models with a GPU ready now go before models that start on demand, since loading a model can take minutes.
  • Prompt caching. A request's shared beginning, such as a long system prompt or a shared document, is kept in GPU memory only, reused by your workspace alone, and dropped after 30 minutes without use. No hit is promised.
  • Batch stays out of the way. Batch jobs are for work that can wait. Live requests always come first.
  • One LLM API for open models
  • Semantic routing
  • Streaming
07

Low-latency inference questions

What is low-latency AI inference?

Inference whose answers start and stream quickly enough for the product: a short time to first token and a short time between tokens, at the percentile your users feel, under your real load.

How do I make LLM inference faster?

Measure first. If the first token is slow, shorten the prompt, reuse shared beginnings through prefix caching and keep the model loaded. If the stream is slow, use a smaller or quantized model, speculative decoding or fewer requests per GPU. If the whole answer is slow, ask for fewer tokens.

What is tokens per second?

How many output tokens are produced each second. Per user, it is how fast one answer streams, roughly one divided by the time between tokens. Per system, it is the total across all requests a server handles at once.

What is the fastest LLM inference?

It depends on the model, the precision, the hardware, the batching and your prompt lengths, so no single answer holds for every workload. Compare published speeds only when they state those conditions, and measure on your own requests.

Does quantization reduce latency?

Often, during decode, because fewer bytes are read for each token. Check quality on your own test set before you switch.

Why is the first request slow and the rest fast?

The model may have had to load onto a GPU first, which can take minutes. Keeping it loaded, or sending traffic to a model that already is, removes that wait.

08

Sources

  1. [1]

    NVIDIA NIM Benchmarking documentation, "Metrics", read December 2, 2026.

    docs.nvidia.com/nim/benchmarking/llm/latest/metrics.html
  2. [2]

    d-Matrix, "Low Latency AI Inference: How to Achieve It at Scale", updated November 6, 2026, read December 2, 2026.

    www.d-matrix.ai/low-latency-ai-inference-how-to-achieve-it-at-scale/
  3. [3]

    NVIDIA Technical Blog, "Mastering LLM Techniques: Inference Optimization", published November 17, 2023, updated 2025, read December 2, 2026.

    developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/
  4. [4]

    "Fast Inference from Transformers via Speculative Decoding", arXiv 2211.17192, last revised May 18, 2023, read December 2, 2026.

    arxiv.org/abs/2211.17192
  5. HIPS: the Docs' Chat completions reference, Streaming, Semantic routing and Batch jobs pages.

Measure it on your own prompts

Join early access. When your invitation comes, run the script above against HIPS.

Join early accessRead LLM inference, explained

Guides to running large language models

  • Private LLM: what it means and four ways to run one
  • Private AI server: buy, rent or use an API
  • Self-hosted LLM: what it takes and what it costs
  • LLM inference, explained
  • How to reduce LLM API costs

Product

  • Inference
  • Models
  • Serverless GPUs
  • GPU rental
  • Deploy your model
  • Coding agents
  • How it works
  • Use cases
  • Pricing

Models

  • DeepSeek API
  • Kimi API
  • Qwen API
  • GLM API
  • Gemma API
  • Mistral API
  • gpt-oss API
  • All models

Developer

  • Docs
  • Quickstart
  • Migrate to HIPS
  • HIPS SDK
  • Batch jobs
  • API reference
  • Claude Code pricing
  • Claude Code limits
  • Best models for coding
  • Token counter
  • LLM price table
  • VRAM calculator
  • Compare models

Provider

  • Earn with your GPU
  • Register GPU interest
  • Download for Mac
  • Download for Windows
  • Download for Linux

Resource

  • Security and Data
  • Resources
  • Tools
  • Guides
  • llms.txt

Compare

  • OpenRouter alternatives
  • Together AI alternatives
  • Groq alternatives
  • Runpod alternatives
  • Claude Code alternatives
  • Cursor alternatives
  • All comparisons

Company

  • About
  • Contact
  • Affiliate program
  • HIPS Payments

Legal

  • Legal
  • Consumer Health Data Privacy Policy
  • Report content
  • Cookie preferences

Support

  • Contact HIPS
  • Looking for payments support?

HIPS. AI inference for builders.

hips.com

Hyperscale Inference Processing Systems OÜ