NVIDIA H100 80GB HBM3 · 512 prompt tokens, 128 new · batch 1 · median of 10 runs after 3 warm-ups · measured 2026-09-29T15:02:16+00:00
Linnet 0.1.0, PyTorch 2.14.0, JAX 0.11.2, transformers 5.17.0, diffusers 0.40.0, ONNX Runtime 1.30.0, Python 3.12.3, driver 580.126.09
Linnet against the stack it replaces
Each side in its fastest configuration, on the same GPU and checkpoint. A speed-up is how many times the other's speed; an export is measured against the original checkpoint in the same engine.
- Linnet, XLA (generated JAX)585 tok/svLLM469 tok/s
- Linnet, CUDA graphs491 tok/stransformers, compiled188 tok/s
- Linnet, XLA (generated JAX)585 tok/sKerasHub395 tok/s
- vLLM on Linnet's export485 tok/svLLM469 tok/s
- SGLang on Linnet's export472 tok/sSGLang469 tok/s
- TGI on Linnet's export242 tok/sTGI236 tok/s
- linnet.serve, CUDA graphs12,997 tok/svLLM12,046 tok/s
- vLLM on Linnet's export12,149 tok/svLLM12,046 tok/s
- SGLang on Linnet's export10,734 tok/sSGLang10,524 tok/s
- TGI on Linnet's export3,578 tok/sTGI3,574 tok/s
- Triton, linnet.serve backend11,195 tok/sTriton, vLLM backend2,199 tok/s
Each row also carries its distance from reference: the largest absolute difference between its output and transformers (eager)'s on the same input. bf16 outputs differ by rounding (about 0.1 on logits near 16), so a small number is expected; it is there so that a fast wrong answer cannot look like a win.
Time to first token
ms, lower is better; the best bar is red.
Decode speed
tok/s, higher is better; the best bar is red.
Serving throughput
tok/s, higher is better; the best bar is red.
Serving time to first token
ms, lower is better; the best bar is red.
Load time
s, lower is better; the best bar is red.
Peak GPU memory
What the driver reports the process holding at its peak, in GiB; lower is better; the best bar is red. Not drawn, since theirs is a setting rather than a need: vLLM, vLLM, transformers, batched, Triton, vLLM backend, vLLM on Linnet's export, vLLM on Linnet's export, SGLang, SGLang on Linnet's export, SGLang, SGLang on Linnet's export, TGI, TGI on Linnet's export, TGI, TGI on Linnet's export (in the table).
Every number
| Method | Time to first token | Decode speed | Serving throughput | Serving time to first token | Load time | Peak GPU memory | Against the stack it replaces | Distance from reference | Notes |
|---|---|---|---|---|---|---|---|---|---|
| PyTorch | |||||||||
| transformers | 15.8 ms | 64.0 tok/s | – | – | 2.66 s | 4.19 GiB | 0 (the reference) | ||
| transformers, compiled | 8.50 ms | 188 tok/s | – | – | 1.96 s | 4.24 GiB | 0.102 | ||
| Linnet, generated PyTorch | 7.44 ms | 120 tok/s | – | – | 1.06 s | 4.31 GiB | 0.64× transformers, compiled | 0.156 | KV cache compiled for 768 positions |
| Linnet, inductor | 4.50 ms | 291 tok/s | – | – | 0.97 s | 5.74 GiB | 1.55× transformers, compiled | 0.117 | KV cache compiled for 768 positions |
| Linnet, CUDA graphs | 3.61 ms | 491 tok/s | – | – | 0.99 s | 5.79 GiB | 2.61× transformers, compiled | 0.117 | KV cache compiled for 768 positions |
| JAX | |||||||||
| KerasHub | 14.2 ms | 395 tok/s | – | – | 10.0 s | 4.01 GiB | 0.125 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (StableHLO) | 7.08 ms | 579 tok/s | – | – | 2.16 s | 4.00 GiB | 1.47× KerasHub | 0.141 | KV cache compiled for 768 positions; peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions |
| Linnet, XLA (generated JAX) | 6.11 ms | 585 tok/s | – | – | 2.13 s | 4.00 GiB | 1.48× KerasHub | 0.0938 | KV cache compiled for 768 positions; peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions |
| ONNX Runtime and TensorRT | |||||||||
| Linnet, ONNX Runtime f32 | 17.3 ms | 121 tok/s | – | – | 0.31 s | 10.4 GiB | 0.0924 | f32; ONNX Runtime's CUDA execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| Linnet, ONNX Runtime f16 | 13.0 ms | 139 tok/s | – | – | 0.31 s | 5.76 GiB | 0.0857 | f16; ONNX Runtime's CUDA execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| Linnet, ONNX Runtime bf16 | 13.6 ms | 140 tok/s | – | – | 0.35 s | 5.14 GiB | 0.148 | bf16; ONNX Runtime's CUDA execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| Linnet, TensorRT f32 | 16.1 ms | 101 tok/s | – | – | 0.32 s | 21.0 GiB | 0.0942 | f32; ONNX Runtime's TensorRT execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| Linnet, TensorRT f16 | 9.70 ms | 141 tok/s | – | – | 0.30 s | 11.7 GiB | 9.69 | f16; ONNX Runtime's TensorRT execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| Linnet, TensorRT bf16 | 9.62 ms | 138 tok/s | – | – | 0.30 s | 11.3 GiB | 0.359 | bf16; ONNX Runtime's TensorRT execution provider; first calls build the sessions; logits copied to the host each step for the argmax | |
| LLM engines | |||||||||
| vLLM | 7.68 ms | 469 tok/s | – | – | 49.0 s | 67.3 GiB | not compared | reserves a KV-cache pool up front (gpu_memory_utilization 0.85), so its memory is a setting, not a need | |
| vLLM on Linnet's export | 9.95 ms | 485 tok/s | – | – | 27.3 s | 67.3 GiB | +3.3% from vLLM | not compared | linnet.hf.export (4 s), then vLLM on the exported checkpoint; reserves a KV-cache pool up front (gpu_memory_utilization 0.85), so its memory is a setting, not a need |
| SGLang | 9.29 ms | 469 tok/s | – | – | 42.7 s | 67.9 GiB | not compared | reserves a KV-cache pool up front (mem_fraction_static 0.85), so its memory is a setting, not a need | |
| SGLang on Linnet's export | 9.74 ms | 472 tok/s | – | – | 29.5 s | 67.9 GiB | +0.6% from SGLang | not compared | linnet.hf.export (6 s), then SGLang on the exported checkpoint; reserves a KV-cache pool up front (mem_fraction_static 0.85), so its memory is a setting, not a need |
| TGI | 23.5 ms | 236 tok/s | – | – | 34.1 s | 60.0 GiB | not compared | over HTTP, streamed; the prompt is the token ids decoded and tokenized again; reserves a KV-cache pool up front (cuda-memory-fraction 0.85), so its memory is a setting, not a need | |
| TGI on Linnet's export | 20.8 ms | 242 tok/s | – | – | 28.1 s | 60.0 GiB | +2.4% from TGI | not compared | linnet.hf.export (6 s), then Text Generation Inference on the exported checkpoint; over HTTP, streamed; the prompt is the token ids decoded and tokenized again; reserves a KV-cache pool up front (cuda-memory-fraction 0.85), so its memory is a setting, not a need |
| llama.cpp on Linnet's GGUF | 10.4 ms | 513 tok/s | – | – | 21.9 s | 4.07 GiB | not compared | linnet.gguf.export, then llama-bench with every layer on the GPU; the first token is the prompt at llama-bench's prompt rate | |
| Serving many requests | |||||||||
| vLLM | – | – | 12,046 tok/s | – | 24.7 s | 68.2 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; KV-cache pool at gpu_memory_utilization 0.85 | |
| linnet.serve, CUDA graphs | – | – | 12,997 tok/s | 1,082 ms | 4.32 s | 13.9 GiB | 1.08× vLLM | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; 64 fixed cache rows of 640 positions |
| linnet.serve, XLA | – | – | 9,922 tok/s | 1,438 ms | 4.09 s | 13.0 GiB | 0.82× vLLM | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; 64 fixed cache rows of 640 positions; peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions |
| linnet.serve, ONNX Runtime | – | – | 6,333 tok/s | 2,382 ms | 0.26 s | 28.1 GiB | 0.53× vLLM | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; 64 fixed cache rows of 640 positions |
| vLLM on Linnet's export | – | – | 12,149 tok/s | – | 22.1 s | 68.7 GiB | +0.9% from vLLM | not compared | linnet.hf.export (0 s), then vLLM on the exported checkpoint; 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; KV-cache pool at gpu_memory_utilization 0.85 |
| SGLang | – | – | 10,524 tok/s | – | 38.5 s | 69.1 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; KV-cache pool at mem_fraction_static 0.85 | |
| SGLang on Linnet's export | – | – | 10,734 tok/s | – | 32.9 s | 69.1 GiB | +2.0% from SGLang | not compared | linnet.hf.export (0 s), then SGLang (offline, continuous batching) on the exported checkpoint; 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; KV-cache pool at mem_fraction_static 0.85 |
| TGI | – | – | 3,574 tok/s | 2,395 ms | 32.1 s | 60.9 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; over HTTP, streamed; stops at end-of-sequence (TGI cannot ignore it), so throughput counts the tokens produced; KV-cache pool at cuda-memory-fraction 0.85 | |
| TGI on Linnet's export | – | – | 3,578 tok/s | 2,438 ms | 28.1 s | 61.0 GiB | +0.1% from TGI | not compared | linnet.hf.export (0 s), then Text Generation Inference (continuous batching) on the exported checkpoint; 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; over HTTP, streamed; stops at end-of-sequence (TGI cannot ignore it), so throughput counts the tokens produced; KV-cache pool at cuda-memory-fraction 0.85 |
| Triton, vLLM backend | – | – | 2,199 tok/s | 8,071 ms | 49.1 s | 68.0 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; over HTTP, streamed, first tokens timed at the client | |
| Triton, linnet.serve backend | – | – | 11,195 tok/s | 1,172 ms | 813 s | 14.2 GiB | 5.09× Triton, vLLM backend | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; over HTTP, streamed, first tokens timed at the client |
| transformers, batched | – | – | 1,557 tok/s | – | 1.67 s | 79.1 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; paged|sdpa attention; reserves a paged KV-cache pool up front, so its memory is a setting, not a need; no per-request timestamps | |
| KerasHub, static batches | – | – | 544 tok/s | – | 9.12 s | 18.2 GiB | not compared | 256 requests of 128-512 prompt tokens and 128 new tokens, at most 64 in flight; every batch runs to the longest possible prompt plus the new tokens; peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |