NVIDIA H100 80GB HBM3 · 512 prompt tokens, 128 new · batch 1 · median of 10 runs after 3 warm-ups · measured 2026-09-29T15:07:15+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)174 tok/svLLM158 tok/s
- Linnet, CUDA graphs169 tok/stransformers, compiled118 tok/s
- Linnet, XLA (StableHLO)174 tok/sKerasHub166 tok/s
- vLLM on Linnet's export166 tok/svLLM158 tok/s
- SGLang on Linnet's export165 tok/sSGLang165 tok/s
- TGI on Linnet's export121 tok/sTGI118 tok/s
- linnet.serve, CUDA graphs5,764 tok/svLLM5,546 tok/s
- vLLM on Linnet's export5,849 tok/svLLM5,546 tok/s
- SGLang on Linnet's export4,927 tok/sSGLang4,906 tok/s
- TGI on Linnet's export1,826 tok/sTGI1,664 tok/s
- Triton, linnet.serve backend5,487 tok/sTriton, vLLM backend2,071 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 | 21.3 ms | 48.7 tok/s | – | – | 5.07 s | 14.5 GiB | 0 (the reference) | ||
| transformers, compiled | 17.6 ms | 118 tok/s | – | – | 3.81 s | 14.5 GiB | 0.0781 | ||
| Linnet, generated PyTorch | 17.2 ms | 75.3 tok/s | – | – | 3.17 s | 14.4 GiB | 0.64× transformers, compiled | 0.0781 | KV cache compiled for 768 positions |
| Linnet, inductor | 12.9 ms | 143 tok/s | – | – | 3.18 s | 21.3 GiB | 1.21× transformers, compiled | 0.0859 | KV cache compiled for 768 positions |
| Linnet, CUDA graphs | 12.7 ms | 169 tok/s | – | – | 2.94 s | 21.3 GiB | 1.43× transformers, compiled | 0.0859 | KV cache compiled for 768 positions |
| JAX | |||||||||
| KerasHub | 27.4 ms | 166 tok/s | – | – | 35.1 s | 14.6 GiB | 0.0938 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (StableHLO) | 16.0 ms | 174 tok/s | – | – | 10.2 s | 14.2 GiB | 1.05× KerasHub | 0.13 | 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) | 15.3 ms | 174 tok/s | – | – | 10.9 s | 14.2 GiB | 1.05× KerasHub | 0.128 | 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 | 41.5 ms | 55.9 tok/s | – | – | 0.44 s | 32.2 GiB | 0.0734 | 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 | 29.9 ms | 75.1 tok/s | – | – | 0.48 s | 16.5 GiB | 0.0728 | 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 | 30.5 ms | 74.0 tok/s | – | – | 0.45 s | 15.1 GiB | 0.156 | 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 | 50.2 ms | 29.7 tok/s | – | – | 0.45 s | 73.5 GiB | 0.069 | 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 | 26.0 ms | 51.9 tok/s | – | – | 0.42 s | 37.8 GiB | 1.82 | 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 | 27.0 ms | 50.3 tok/s | – | – | 0.45 s | 36.7 GiB | 0.148 | 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 | 14.8 ms | 158 tok/s | – | – | 73.5 s | 66.2 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 | 16.1 ms | 166 tok/s | – | – | 34.1 s | 66.2 GiB | +4.5% from vLLM | not compared | linnet.hf.export (14 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 | 19.4 ms | 165 tok/s | – | – | 59.1 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 | 19.4 ms | 165 tok/s | – | – | 31.5 s | 68.0 GiB | −0.1% from SGLang | not compared | linnet.hf.export (15 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.0 ms | 118 tok/s | – | – | 52.1 s | 59.2 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 | 22.6 ms | 121 tok/s | – | – | 36.1 s | 59.2 GiB | +2.8% from TGI | not compared | linnet.hf.export (17 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 | 21.1 ms | 179 tok/s | – | – | 108 s | 14.1 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 | – | – | 5,546 tok/s | – | 78.8 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 gpu_memory_utilization 0.85 | |
| linnet.serve, CUDA graphs | – | – | 5,764 tok/s | 2,447 ms | 8.01 s | 27.3 GiB | 1.04× 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 | – | – | 4,796 tok/s | 3,064 ms | 10.9 s | 20.6 GiB | 0.86× 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 | – | – | 3,617 tok/s | 4,283 ms | 0.25 s | 35.6 GiB | 0.65× 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 | – | – | 5,849 tok/s | – | 29.3 s | 68.7 GiB | +5.5% 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 | – | – | 4,906 tok/s | – | 49.7 s | 70.0 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 | – | – | 4,927 tok/s | – | 36.5 s | 70.0 GiB | +0.4% 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 | – | – | 1,664 tok/s | 1,650 ms | 42.1 s | 61.1 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 | – | – | 1,826 tok/s | 1,408 ms | 36.1 s | 61.2 GiB | +9.7% 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,071 tok/s | 5,191 ms | 58.1 s | 69.2 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 | – | – | 5,487 tok/s | 2,513 ms | 652 s | 26.9 GiB | 2.65× 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 | – | – | 915 tok/s | – | 3.75 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 | – | – | 394 tok/s | – | 37.7 s | 24.1 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 | |