Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Notes on Serving LLMs with TensorRT-LLM and Triton

Reagiere als Erste:r — dein Feedback zählt!

Notes on Serving LLMs with TensorRT-LLM and Triton

2026-05-31 · LLM serving / NVIDIA stack

These are working notes on taking an open-weights LLM from a Hugging Face checkpoint to a
production-style serving endpoint on the NVIDIA stack — TensorRT-LLM for the engine,
Triton Inference Server for the deployment surface — and benchmarking it honestly against
vLLM on multi-GPU hardware. They follow the harness in
trtllm-triton-serving
(4× H100, NVLink).

The goal is to move from "I use vLLM" to "I can stand up the NVIDIA inference stack on real
multi-GPU hardware and reason about the trade-offs."

1. The serving pipeline

The path from checkpoint to endpoint has four stages. Each one is a place where a decision
affects latency, throughput, or accuracy:

  1. Checkpoint — a Hugging Face model.
  2. Engine build — compile to a TensorRT-LLM engine for a fixed tensor-parallel degree, precision, and batching policy.
  3. Model repository — wrap the engine in a Triton tensorrt_llm-backend model repo.
  4. Serving + load testtrtllm-serve (or Triton) exposes an OpenAI-compatible endpoint; a load generator drives it under controlled concurrency.

The key mental shift from vLLM: TensorRT-LLM does ahead-of-time compilation. vLLM is a
runtime that takes the model and serves it; TensorRT-LLM builds an engine specialized to your
GPU, TP degree, and precision first. That build is where the performance comes from, and also
where the rigidity comes from.

2. Tensor parallelism (TP)

For a model that doesn't fit on one GPU — or to cut latency — TensorRT-LLM shards each layer
across GPUs. On a 4× H100 NVLink box, TP=4 means every forward pass does an all-reduce
across the four GPUs over NVLink.

The all-reduce is not free. On this fabric it tops out around 77 % of the NVLink budget
(see the separate NVLink-wall notes). For prefill (large
tensors) you're bandwidth-bound and TP helps. For decode (one token at a time) you're
pinned against the small-message latency floor, and past a point more TP makes decode
slower. Pick TP for the regime you actually serve.

3. Precision: FP16 vs FP8

The engine is built for a specific precision. The two that matter most on Hopper:

Precision Memory Throughput Accuracy risk
FP16 baseline baseline none (reference)
FP8 ~½ weights + KV-cache higher small, model-dependent

FP8 uses the Hopper Transformer Engine and shrinks both weights and the KV-cache, which is
often the real bottleneck for long contexts. The honest move is to measure the accuracy
delta on your task rather than assume FP8 is free — a quantization study belongs in the same
harness as the throughput numbers.

4. The batching policy that actually matters

Two features dominate real serving throughput:

  • In-flight (continuous) batching — new requests join the running batch at the next iteration instead of waiting for the current batch to drain. This is what keeps GPUs busy under bursty traffic; vLLM and TensorRT-LLM both do it.
  • Paged KV-cache — the KV-cache is allocated in pages, so memory isn't reserved for the worst-case sequence length per request. This is what lets you fit more concurrent sequences.

If a "benchmark" doesn't enable these, it isn't measuring production serving — it's measuring a
toy.

5. The benchmark trap: comparing the same work

The single most common mistake in "X vs Y" LLM benchmarks is not decoding the same number of
tokens
. If stack A happens to emit shorter completions, it looks faster while doing less work.

The fix used in the harness is a controlled methodology: every request decodes exactly
256 tokens by setting ignore_eos=True and min_tokens=max_tokens. Now throughput and
latency compare identical work across TensorRT-LLM, Triton, and vLLM. Without this, the numbers
are noise.

Metrics worth reporting, all under matched concurrency:

  • Throughput (tokens/s, total) — the headline.
  • TTFT (time to first token) — dominated by prefill; what the user feels first.
  • Inter-token latency — dominated by decode; what the user feels while reading.

6. Triton as the production surface

The measured runs can use TensorRT-LLM's own OpenAI server (trtllm-serve), but the
production path is the Triton tensorrt_llm-backend model repository (triton_model_repo/):

  • It exposes the engine over a hardened, observable server (metrics, health, dynamic batching config) instead of a script.
  • It's the same control plane you'd use for an ensemble (tokenizer → engine → de-tokenizer) and for multi-model hosting.

Treat trtllm-serve as the fast path for benchmarking and Triton as the path you'd actually
ship behind a gateway.

7. When does TensorRT-LLM win? (the measured answer)

Not always — and the measurement says which regime, not a vibe. Across a matched-work sweep on
4× H100, the result lands on a concurrency crossover:

  • TensorRT-LLM (with CUDA graphs) wins at low-to-mid concurrency — the latency-sensitive regime. The ahead-of-time engine plus CUDA-graph capture removes per-iteration launch overhead that dominates when the batch is small, so TTFT and inter-token latency are lower.
  • vLLM wins at high concurrency — the throughput-saturated regime, where its scheduler keeps the GPU packed and the launch-overhead advantage no longer matters.

One caveat that cost a real bug: CUDA graphs only help if the config actually enables them.
A run that looks like "TensorRT-LLM is barely faster" can be a mis-set graph config; fixing it
moved the low-concurrency number substantially. Always confirm the optimisation you're
crediting is switched on before drawing the curve.

So the decision rule is about your load, not brand loyalty: latency-bound, low/mid
concurrency → TensorRT-LLM + CUDA graphs; throughput-bound, high concurrency → vLLM. The honest
deliverable is a reproducible serve → benchmark loop with documented methodology that draws
that crossover for your hardware.

Takeaway

Serving an LLM well is mostly about three things: putting tensor parallelism in the regime that
helps, enabling continuous batching + paged KV-cache, and measuring the same work across
stacks. The measured crossover: TensorRT-LLM + CUDA graphs win low/mid concurrency (latency),
vLLM wins high concurrency (throughput) — and a Triton control plane is what you'd actually
put in production.

→ Full pipeline, Triton model repo, and the matched-work harness:
github.com/waynehacking8/trtllm-triton-serving

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Notes on Serving LLMs with TensorRT-LLM and Triton

Thematisch verwandte Begriffe: Notes, Serving, LLMs, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick