NVIDIA H100 80GB HBM3 · 512 prompt tokens, 128 new · batch 1 · median of 10 runs after 3 warm-ups · measured 2026-09-29T15:13:03+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)167 tok/svLLM152 tok/s
- Linnet, CUDA graphs161 tok/stransformers, compiled110 tok/s
- Linnet, XLA (StableHLO)167 tok/sKerasHub160 tok/s
- vLLM on Linnet's export157 tok/svLLM152 tok/s
- SGLang on Linnet's export158 tok/sSGLang158 tok/s
- TGI on Linnet's export115 tok/sTGI112 tok/s
- Linnet, tensor parallel (PyTorch)238 tok/svLLM, tensor parallel233 tok/s
- linnet.serve, CUDA graphs5,600 tok/svLLM5,449 tok/s
- vLLM on Linnet's export5,607 tok/svLLM5,449 tok/s
- SGLang on Linnet's export4,757 tok/sSGLang4,776 tok/s
- TGI on Linnet's export2,566 tok/sTGI2,621 tok/s
- Triton, linnet.serve backend5,377 tok/sTriton, vLLM backend2,998 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, Linnet, offloaded to host, vLLM, tensor parallel, 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 | 22.2 ms | 51.2 tok/s | – | – | 5.29 s | 16.0 GiB | 0 (the reference) | ||
| transformers, compiled | 18.6 ms | 110 tok/s | – | – | 4.29 s | 16.1 GiB | 0.0625 | ||
| Linnet, generated PyTorch | 17.4 ms | 79.0 tok/s | – | – | 3.59 s | 15.9 GiB | 0.72× transformers, compiled | 0.0938 | KV cache compiled for 768 positions |
| Linnet, inductor | 13.1 ms | 141 tok/s | – | – | 3.35 s | 22.8 GiB | 1.28× transformers, compiled | 0.0625 | KV cache compiled for 768 positions |
| Linnet, CUDA graphs | 13.0 ms | 161 tok/s | – | – | 3.10 s | 22.8 GiB | 1.46× transformers, compiled | 0.0625 | KV cache compiled for 768 positions |
| JAX | |||||||||
| KerasHub | 27.5 ms | 160 tok/s | – | – | 31.0 s | 17.3 GiB | 0.0938 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (StableHLO) | 16.6 ms | 167 tok/s | – | – | 10.7 s | 16.3 GiB | 1.04× 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) | 15.7 ms | 166 tok/s | – | – | 10.6 s | 16.3 GiB | 1.04× KerasHub | 0.0962 | 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 | 42.0 ms | 53.7 tok/s | – | – | 0.50 s | 35.2 GiB | 0.0654 | 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 | 30.5 ms | 71.0 tok/s | – | – | 0.51 s | 17.5 GiB | 0.0703 | 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 | 31.1 ms | 71.8 tok/s | – | – | 0.48 s | 16.5 GiB | 0.0938 | 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 | – | – | – | – | – | 65.5 GiB | – | – | Failed: Fail: [ONNXRuntimeError] : 1 : FAIL : TensorRT EP failed to create engine from network for fused node: TensorrtExecutionProvider_TRTKernel_graph_main_3492707504992015285_0_0 |
| Linnet, TensorRT f16 | 28.6 ms | 47.5 tok/s | – | – | 0.49 s | 42.0 GiB | 9.77 | 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 | 28.5 ms | 49.5 tok/s | – | – | 0.49 s | 39.9 GiB | 0.125 | 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 | 16.5 ms | 152 tok/s | – | – | 74.6 s | 67.4 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 | 157 tok/s | – | – | 39.3 s | 67.4 GiB | +3.3% from vLLM | not compared | linnet.hf.export (16 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 | 21.0 ms | 158 tok/s | – | – | 55.7 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.9 ms | 158 tok/s | – | – | 38.4 s | 67.9 GiB | ±0.0% from SGLang | not compared | linnet.hf.export (18 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 | 27.9 ms | 112 tok/s | – | – | 44.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 | 25.7 ms | 115 tok/s | – | – | 40.1 s | 59.2 GiB | +2.1% from TGI | not compared | linnet.hf.export (19 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 | 22.0 ms | 171 tok/s | – | – | 75.5 s | 15.0 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 | |
| Beyond one GPU | |||||||||
| vLLM, tensor parallel | 11.9 ms | 233 tok/s | – | – | 286 s | 139.4 GiB | not compared | reserves a KV-cache pool up front (gpu_memory_utilization 0.85), so its memory is a setting, not a need | |
| Linnet, tensor parallel (PyTorch) | 10.8 ms | 238 tok/s | – | – | 4.77 s | 27.1 GiB | 1.02× vLLM, tensor parallel | not compared | one process per GPU under torchrun, NCCL, CUDA graphs; KV cache compiled for 768 positions |
| Linnet, tensor parallel (XLA) | 16.2 ms | 181 tok/s | – | – | 16.1 s | 18.4 GiB | 0.78× vLLM, tensor parallel | 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 |
| Linnet, layers on two GPUs | 22.5 ms | 87.8 tok/s | – | – | 7.00 s | 23.3 GiB | 0.0938 | KV cache compiled for 768 positions | |
| Linnet, offloaded to host | 180 ms | 5.73 tok/s | – | – | 19.6 s | 8.94 GiB | 0.0938 | KV cache compiled for 768 positions; cuda:0: embedding, layers.0-13; host, streamed in: layers.14-31, norm, lm_head | |
| Serving many requests | |||||||||
| vLLM | – | – | 5,449 tok/s | – | 135 s | 68.7 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,600 tok/s | 2,508 ms | 6.99 s | 27.8 GiB | 1.03× 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,734 tok/s | 3,089 ms | 12.0 s | 22.1 GiB | 0.87× 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,558 tok/s | 4,341 ms | 0.26 s | 37.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,607 tok/s | – | 34.7 s | 68.7 GiB | +2.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 | – | – | 4,776 tok/s | – | 55.8 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,757 tok/s | – | 44.9 s | 69.9 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 | – | – | 2,621 tok/s | 3,609 ms | 42.1 s | 60.7 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 | – | – | 2,566 tok/s | 4,158 ms | 40.1 s | 61.2 GiB | −2.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,998 tok/s | 4,545 ms | 61.1 s | 67.5 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,377 tok/s | 2,559 ms | 645 s | 28.3 GiB | 1.79× 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 | – | – | 881 tok/s | – | 3.98 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 | – | – | 391 tok/s | – | 30.1 s | 25.8 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 | |