NVIDIA H100 80GB HBM3 · median of 10 runs after 3 warm-ups · measured 2026-09-28T20:02:51+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, CUDA graphs27.7 mstransformers, compiled28.9 ms
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.
Encode
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.
Every number
| Method | Encode | Load time | Peak GPU memory | Against the stack it replaces | Distance from reference | Notes |
|---|---|---|---|---|---|---|
| PyTorch | ||||||
| transformers | 39.0 ms | 3.17 s | 2.99 GiB | 0 (the reference) | ||
| transformers, compiled | 28.9 ms | 0.65 s | 2.34 GiB | 1.0e-4 | ||
| Linnet, generated PyTorch | 41.6 ms | 0.50 s | 2.90 GiB | 0.70× transformers, compiled | 8.2e-5 | |
| Linnet, inductor | 28.2 ms | 0.45 s | 2.20 GiB | 1.03× transformers, compiled | 9.7e-5 | |
| Linnet, CUDA graphs | 27.7 ms | 0.50 s | 2.34 GiB | 1.04× transformers, compiled | 9.7e-5 | |
| JAX | ||||||
| Linnet, XLA (StableHLO) | 13.7 ms | 0.57 s | 2.78 GiB | 0.00123 | peak memory is JAX's allocator peak; the driver shows its pool, which grows in whole regions | |
| Linnet, XLA (generated JAX) | 13.8 ms | 0.82 s | 2.78 GiB | 0.00128 | 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 | 22.8 ms | 0.31 s | 8.58 GiB | 0.00232 | f32; ONNX Runtime's CUDA execution provider; first calls build the sessions; the image encoder | |
| Linnet, ONNX Runtime f16 | 20.9 ms | 0.36 s | 7.81 GiB | 0.00284 | f16; ONNX Runtime's CUDA execution provider; first calls build the sessions; the image encoder | |
| Linnet, ONNX Runtime bf16 | 22.9 ms | 0.30 s | 7.67 GiB | 0.0276 | bf16; ONNX Runtime's CUDA execution provider; first calls build the sessions; the image encoder | |
| Linnet, TensorRT f32 | 14.2 ms | 0.30 s | 4.39 GiB | 0.00123 | f32; ONNX Runtime's TensorRT execution provider; first calls build the sessions; the image encoder | |
| Linnet, TensorRT f16 | 9.64 ms | 0.32 s | 4.11 GiB | 0.00798 | f16; ONNX Runtime's TensorRT execution provider; first calls build the sessions; the image encoder | |
| Linnet, TensorRT bf16 | 9.76 ms | 0.32 s | 3.81 GiB | 0.0298 | bf16; ONNX Runtime's TensorRT execution provider; first calls build the sessions; the image encoder | |