NVIDIA H100 80GB HBM3 · 512 prompt tokens, 128 new · batch 1 · median of 10 runs after 3 warm-ups · measured 2026-09-28T17:31:05+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)1,055 tok/svLLM707 tok/s
- Linnet, CUDA graphs908 tok/stransformers, compiled189 tok/s
- Linnet, XLA (generated JAX)1,055 tok/sKerasHub717 tok/s
- vLLM on Linnet's export510 tok/svLLM707 tok/s
- linnet.serve, CUDA graphs34,643 tok/svLLM18,828 tok/s
- vLLM on Linnet's export26,248 tok/svLLM18,828 tok/s
- Triton, linnet.serve backend24,211 tok/sTriton, vLLM backend2,157 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 (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 | 12.4 ms | 93.2 tok/s | – | – | 1.96 s | 1.87 GiB | 0 (the reference) | ||
| transformers, compiled | 7.03 ms | 189 tok/s | – | – | 1.55 s | 1.94 GiB | 0.191 | ||
| Linnet, generated PyTorch | 7.76 ms | 108 tok/s | – | – | 0.83 s | 1.96 GiB | 0.57× transformers, compiled | 0.188 | KV cache compiled for 768 positions |
| Linnet, inductor | 3.14 ms | 322 tok/s | – | – | 0.80 s | 2.59 GiB | 1.71× transformers, compiled | 0.141 | KV cache compiled for 768 positions |
| Linnet, CUDA graphs | 1.82 ms | 908 tok/s | – | – | 0.68 s | 2.31 GiB | 4.81× transformers, compiled | 0.141 | KV cache compiled for 768 positions |
| JAX | |||||||||
| KerasHub | 10.0 ms | 717 tok/s | – | – | 7.22 s | 2.04 GiB | 0.156 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (StableHLO) | 3.23 ms | 1,047 tok/s | – | – | 0.77 s | 1.54 GiB | 1.46× KerasHub | 0.313 | 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) | 3.01 ms | 1,055 tok/s | – | – | 0.77 s | 1.54 GiB | 1.47× KerasHub | 0.273 | 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 | 11.1 ms | 153 tok/s | – | – | 0.32 s | 4.02 GiB | 0.143 | 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 | 9.94 ms | 138 tok/s | – | – | 0.34 s | 2.93 GiB | 0.143 | 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 | 10.0 ms | 146 tok/s | – | – | 0.31 s | 2.23 GiB | 0.387 | 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 | 7.83 ms | 210 tok/s | – | – | 0.29 s | 8.25 GiB | 0.139 | 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 | 5.74 ms | 215 tok/s | – | – | 0.29 s | 5.75 GiB | 5.98 | 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 | 5.58 ms | 218 tok/s | – | – | 0.29 s | 5.05 GiB | 0.25 | 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.58 ms | 707 tok/s | – | – | 57.8 s | 69.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 | 12.2 ms | 510 tok/s | – | – | 39.2 s | 69.1 GiB | −27.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 |
| llama.cpp on Linnet's GGUF | 5.95 ms | 767 tok/s | – | – | 12.0 s | 1.91 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 | – | – | 18,828 tok/s | – | 18.3 s | 68.0 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 | – | – | 34,643 tok/s | 403 ms | 3.90 s | 2.99 GiB | 1.84× 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 | – | – | 29,018 tok/s | 571 ms | 2.75 s | 2.10 GiB | 1.54× 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 | – | – | 13,227 tok/s | 1,105 ms | 0.25 s | 10.1 GiB | 0.70× 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 | – | – | 26,248 tok/s | – | 29.6 s | 67.7 GiB | +39.4% from vLLM | not compared | linnet.hf.export (0 s), then vLLM (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 gpu_memory_utilization 0.85 |
| Triton, vLLM backend | – | – | 2,157 tok/s | 7,317 ms | 52.1 s | 68.3 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 | – | – | 24,211 tok/s | 559 ms | 621 s | 4.00 GiB | 11× 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,865 tok/s | – | 1.34 s | 76.8 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 | – | – | 2,482 tok/s | – | 6.51 s | 2.69 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 | |