NVIDIA H100 80GB HBM3 · 512 prompt tokens, 128 new · batch 1 · median of 10 runs after 3 warm-ups · measured 2026-09-29T14:58:08+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 (StableHLO)788 tok/svLLM650 tok/s
- Linnet, CUDA graphs720 tok/stransformers, compiled172 tok/s
- Linnet, XLA (StableHLO)788 tok/sKerasHub600 tok/s
- vLLM on Linnet's export669 tok/svLLM650 tok/s
- SGLang on Linnet's export634 tok/sSGLang632 tok/s
- TGI on Linnet's export277 tok/sTGI274 tok/s
- linnet.serve, CUDA graphs25,091 tok/svLLM22,674 tok/s
- vLLM on Linnet's export23,257 tok/svLLM22,674 tok/s
- SGLang on Linnet's export20,053 tok/sSGLang20,305 tok/s
- TGI on Linnet's export3,880 tok/sTGI3,767 tok/s
- Triton, linnet.serve backend18,549 tok/sTriton, vLLM backend2,113 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.9 ms | 68.6 tok/s | – | – | 2.59 s | 2.93 GiB | 0 (the reference) | ||
| transformers, compiled | 8.21 ms | 172 tok/s | – | – | 1.60 s | 2.97 GiB | 0.0938 | ||
| Linnet, generated PyTorch | 8.06 ms | 110 tok/s | – | – | 0.86 s | 2.88 GiB | 0.64× transformers, compiled | 0.125 | KV cache compiled for 768 positions |
| Linnet, inductor | 3.39 ms | 331 tok/s | – | – | 0.80 s | 3.81 GiB | 1.92× transformers, compiled | 0.125 | KV cache compiled for 768 positions |
| Linnet, CUDA graphs | 2.53 ms | 720 tok/s | – | – | 0.78 s | 3.88 GiB | 4.19× transformers, compiled | 0.125 | KV cache compiled for 768 positions |
| JAX | |||||||||
| KerasHub | 12.1 ms | 600 tok/s | – | – | 9.21 s | 2.58 GiB | 0.188 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (StableHLO) | 5.42 ms | 788 tok/s | – | – | 1.47 s | 2.38 GiB | 1.31× 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 |
| Linnet, XLA (generated JAX) | 4.76 ms | 765 tok/s | – | – | 1.44 s | 2.38 GiB | 1.27× KerasHub | 0.125 | 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 | 14.6 ms | 158 tok/s | – | – | 0.31 s | 6.22 GiB | 0.0935 | 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 | 11.2 ms | 158 tok/s | – | – | 0.29 s | 4.03 GiB | 0.0898 | 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 | 11.6 ms | 165 tok/s | – | – | 0.30 s | 3.10 GiB | 0.125 | 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 | 12.3 ms | 146 tok/s | – | – | 0.29 s | 13.3 GiB | 0.0911 | 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 | 7.22 ms | 195 tok/s | – | – | 0.34 s | 8.23 GiB | 0.113 | 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 | 7.33 ms | 181 tok/s | – | – | 0.31 s | 7.39 GiB | 0.156 | 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.25 ms | 650 tok/s | – | – | 46.4 s | 67.1 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 | 8.02 ms | 669 tok/s | – | – | 26.1 s | 67.1 GiB | +2.9% from vLLM | not compared | linnet.hf.export (2 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 | 8.53 ms | 632 tok/s | – | – | 35.9 s | 68.0 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.89 ms | 634 tok/s | – | – | 28.0 s | 68.0 GiB | +0.3% from SGLang | not compared | linnet.hf.export (4 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 | 21.7 ms | 274 tok/s | – | – | 32.1 s | 60.1 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 | 23.9 ms | 277 tok/s | – | – | 28.1 s | 60.1 GiB | +0.8% from TGI | not compared | linnet.hf.export (3 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 | 7.19 ms | 702 tok/s | – | – | 15.0 s | 2.69 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 | – | – | 22,674 tok/s | – | 24.2 s | 68.1 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 | – | – | 25,091 tok/s | 583 ms | 4.11 s | 5.22 GiB | 1.11× 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 | – | – | 21,035 tok/s | 751 ms | 3.85 s | 3.58 GiB | 0.93× 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 | – | – | 10,580 tok/s | 1,467 ms | 0.25 s | 13.6 GiB | 0.47× 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 | – | – | 23,257 tok/s | – | 22.8 s | 68.3 GiB | +2.6% 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 | – | – | 20,305 tok/s | – | 36.2 s | 68.8 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 | – | – | 20,053 tok/s | – | 29.9 s | 68.8 GiB | −1.2% 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,767 tok/s | 2,482 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,880 tok/s | 2,260 ms | 30.1 s | 61.2 GiB | +3.0% 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,113 tok/s | 6,590 ms | 47.1 s | 68.1 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 | – | – | 18,549 tok/s | 710 ms | 652 s | 5.58 GiB | 8.78× 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,672 tok/s | – | 1.42 s | 79.0 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 | – | – | 1,387 tok/s | – | 8.64 s | 4.70 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 | |