Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yuri Pocepaev reports cutting GLiClass’s batch-1 median latency from 59.23 ms with an initial native FP8 adapter to 16.10 ms after adding Triton fusion and CUDA Graphs on an RTX 4050 Laptop GPU. The improvement came from reducing auxiliary GPU work and dispatch overhead—not from changing the FP8 weights alone. In the same measurements, BF16 with CUDA Graphs took 23.79 ms, so the optimized FP8 path was 1.48× faster on this particular request. These are the author’s results from one setup, not an independently reproduced benchmark or a general guarantee for FP8.

What the 59 ms and 16 ms figures compare

The 3.68× reduction is a comparison between two versions of Pocepaev’s FP8 adapter: the initial native implementation and the later Triton-plus-CUDA-Graphs implementation. It is not a controlled comparison between the original model and FP8. For a BF16 control using the same graph wrapper, the report gives a 23.79 ms median; the optimized FP8 version’s 16.10 ms median is 1.48× faster than that control.

Runtime Median latency p95 latency Peak allocated tensor memory
BF16, eager 24.18 ms 29.67 ms 3.219 GiB
BF16 + CUDA Graphs 23.79 ms 24.45 ms 3.238 GiB
Initial native FP8 adapter 59.23 ms 66.36 ms 2.145 GiB
FP8 + Triton 37.97 ms 46.62 ms 2.144 GiB
FP8 + Triton + CUDA Graphs 16.10 ms 16.44 ms 2.166 GiB

All figures in the table are reported by Pocepaev in 2026. They are medians and p95 values from his test, not confidence intervals or results aggregated across machines. The request used one fixed AG News example, four candidate labels, and batch size 1. After warmup and quality evaluation, he timed 50 more requests, synchronizing CUDA before and after each timing. Timing included tokenization and postprocessing, but excluded model loading, Triton compilation, and graph preparation. Laptop clocks and thermals were not locked.

Why the first FP8 version was slower

The derivative checkpoint uses FP8 E4M3 weights with per-output-channel scales and dynamically quantized activations for 168 matrices across 24 mT5 encoder blocks. This is W8A8 for selected projections, not for every tensor: embeddings, normalization layers, and classification components remain BF16. The reported weight files are 2,259,902,516 bytes for the derivative checkpoint and 3,416,522,340 bytes for BF16, a 33.85% reduction.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Lenovo LOQ Gaming Laptop, GeForce RTX 4050, AMD Ryzen 5 7235HS Processor
  • 【Processor】 AMD Ryzen 5 7235HS Processor (4 Cores, 8 Threads, 8 MB L3 Cache, 2 MB L2 Cache, 3.2 GHz Base Frequency, Up to 4.2 GHz Max Turbo Frequency).
  • 【Graphics】NVIDIA GeForce RTX 4050 6GB GDDR6.
  • 【Display】 15.6 inch Non-Touch Display, 144Hz, FHD (1920 x 1080), IPS, Anti-glare, 300 nits, G-SYNC.
  • 【RAM and Storage】 Up to 64GB DDR5 RAM. Up to 8TB PCIe M.2 SSD.
  • 【Tech Specs】 1x USB-C, 3x USB-A, 1x HDMI, 1x Ethernet RJ45, 1x headphone/microphone combo jack, WiFi 6 and Bluetooth 5.2. Windows 11 Home, 64-bit, English. White Backlight Keyboard.

That smaller representation did not make the first adapter faster. It used torch._scaled_mm and cuBLAS for the FP8 matrix multiplications, but a profiled request still involved 3,269 GPU kernel executions. Separate operations found activation maxima, calculated scales, converted types, padded rows, and processed outputs. On this request, those additional steps outweighed the benefit of using FP8 GEMMs.

What Triton fusion and CUDA Graphs changed

Triton fused work around the matrix multiplications

Pocepaev moved activation quantization into a Triton kernel and fused output scaling into a second Triton kernel. This reduced the separate auxiliary work around the matrix operations. The reported median fell from 59.23 ms to 37.97 ms, while peak allocated tensor memory stayed close to the initial adapter’s figure.

Rank #2
HP Victus 15.6 inch FHD 144Hz Gaming Laptop Intel Core i5-13420H NVIDIA GeForce RTX 4050 6GB - 16GB DDR4 512GB SSD Mica Silver (2024)
  • HP Victus 15.6" Gaming Laptop with FHD, 144Hz refresh rate, IPS micro-edge anti-glare display
  • NVIDIA GeForce RTX 4050 6GB GDDR6
  • 16 GB DDR4 RAM, 512 GB PCIe Gen4 NVMe M.2 solid-state drive
  • Windows 11 Home, 13th Generation Intel Core i5-13420H Processor, NVIDIA GeForce RTX 4050 Laptop GPU (6 GB GDDR6 dedicated)
  • 16 GB DDR4 RAM, 512 GB PCIe Gen4 NVMe M.2 solid-state drive

CUDA Graphs reduced encoder dispatch overhead

He then captured encoder work in CUDA Graphs. The adapter uses four sequence-length buckets—64, 128, 192, and 256 tokens—pads each input to a bucket, and masks the added positions. One compatibility adjustment was to construct the attention mask outside the captured region. With Triton fusion and graph capture together, the profiled request involved 1,425 GPU kernel executions and retained all 168 native FP8 GEMMs; the median was 16.10 ms.

The staged results show why the optimization was not simply “turn on FP8”: Triton fusion helped, and graph capture produced a further large change on this batch-1 workload. The measured peak allocated tensor memory for the final path was 2.166 GiB, but that is not a complete VRAM or model-loading requirement. The report says the loader temporarily reconstructs weights in BF16 before replacing projections, so peak allocation during the timed run should not be treated as the total memory needed to load the model or as equivalent to an nvidia-smi reading.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HP Victus 15.6" Gaming Laptop, AMD Ryzen 7 7445HS CPU, NVIDIA GeForce RTX 4050 6GB GPU, FHD 144Hz IPS, 32GB DDR5 RAM, 1TB SSD, HDMI, USB-C, RJ-45, Wi-Fi 6, Backlit Keyboard, Windows 11, Mica Silver
  • 【POWERFUL RYZEN 7 & RTX 4050 PERFORMANCE】 Powered by the AMD Ryzen 7 7445HS processor with 6 cores, 12 threads, and speeds up to 4.7GHz, paired with NVIDIA GeForce RTX 4050 Laptop Graphics with 6GB GDDR6 dedicated memory. Enjoy responsive gaming, smooth multitasking, streaming, content creation, and GPU-accelerated applications.
  • 【144HZ FHD GAMING DISPLAY】 The 15.6-inch Full HD IPS display features a 1920 x 1080 resolution, fast 144Hz refresh rate, anti-glare coating, micro-edge design, 300-nit brightness, and AMD FreeSync Premium for smooth, responsive visuals during fast-paced gaming and everyday entertainment.
  • 【MEMORY & STORAGE】 The Victus gaming laptop installed memory with up to 64GB DDR5 RAM for smooth multitasking and demanding applications, plus up to 4TB PCIe NVMe M.2 SSD storage for fast boot times, responsive performance, and plenty of room for games, projects, videos, and large files.
  • 【VERSATILE CONNECTIVITY】 Stay connected with Wi-Fi 6E, Bluetooth 5.3, Gigabit Ethernet, 2 USB-A ports, USB-C with DisplayPort support and Power Delivery support, HDMI 2.1, and a headphone/microphone combo jack. HDMI supports up to 4K at 60Hz for convenient external display connectivity.
  • 【BUILT FOR GAMING & EVERYDAY USE】 A full-size backlit keyboard with numeric keypad, DTS:X Ultra spatial audio, 720p HD camera, dual-array microphones, OMEN Gaming Hub, and Windows 11 Home make the Victus ready for gaming, school, work, streaming, entertainment, and everyday productivity.

What the quality check showed—and did not show

Pocepaev compared BF16 and optimized FP8 on 664 examples: a seeded subset of 256 AG News test examples plus the full English and Russian SIB-200 test splits, with 204 examples per language. SIB-200 candidate labels were in English for both language splits.

Evaluation set BF16 macro-F1 Optimized FP8 macro-F1 Difference
AG News 79.08% 79.49% +0.41 percentage points
SIB-200 English 84.57% 84.04% −0.53 percentage points
SIB-200 Russian 84.09% 83.42% −0.67 percentage points

Top-1 predictions agreed between BF16 and optimized FP8 on 99.25% of the 664 examples. Agreement is not accuracy, and the small positive AG News difference is not evidence that FP8 improved model quality. The results include declines on both SIB-200 splits; this three-set evaluation does not establish quality preservation across other languages or production tasks. The report also did not retain full score distributions, so it makes no claim about all-logit changes or calibration.

Rank #4
HP NVIDIA GeForce RTX 4050 Laptop Gamer Victus 13420H 16GB RAM 512GB SSD 15.6" Windows 11 Home English Keyboard
  • ️ [PROCESSOR] Reinforced with Intel Core i5 13420H processor, up to 4.6GHz with Intel Turbo Boost technology, 12MB cache and 8 cores
  • ️ [GRAFIIC] NVIDIA GeForce RTX 4050 GPU Fast Graphics for Laptops (GDDR6 6GB) to get more FPS in all your matches stably
  • 16GB DDR4 RAM memory.
  • ️ [STORAGE] Enjoy your favorite apps 512GB NVMe PCIe SSD drives
  • ️ [SCREEN] 15.6 inch 144 Hz full HD display (1920 x 1080) with micro edges and anti-glare to make the screen as comfortable as possible.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to interpret or reproduce the result

This is evidence that one implementation stack can make this GLiClass workload faster on one RTX 4050 Laptop setup. It does not establish expected performance on a different GPU, operating system, batch size, sequence-length distribution, or sustained-throughput workload. Larger batches and sustained throughput were not measured.

For a meaningful comparison with another implementation, match or record the conditions that affect both the model work and the timing:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
msi Thin 15 15.6” 144Hz FHD Gaming Laptop: Intel Core i7-13620H, NVIDIA Geforce RTX 4050, 16GB DDR4, 512GB NVMe SSD, WiFi 6E, Win 11: Black B13VE-2678US
  • Slim, lightweight design for everyday portability: Easy to take between home, class, and work with a portable chassis that fits into backpacks and shared desk setups.
  • Intel i7-13620H + RTX 4050 for strong gaming and multitasking: Power through popular games, streaming, schoolwork, and creative apps with a balanced processor and GPU built for fast performance.
  • Fast, smooth 1080p gaming on a 144Hz display: The 15.6" FHD 144Hz panel delivers crisp, fluid motion in esports and action games for a responsive, immersive experience.
  • 16GB RAM + 512GB NVMe SSD for quick loads and smooth switching: Games, apps, and browser tabs stay responsive throughout the day with fast DDR4 memory and a high-speed SSD.
  • Cooler Boost keeps performance steady during long sessions: MSI’s advanced thermal design helps maintain smooth gameplay and reliable performance during gaming, studying, or work.
  • GPU model and laptop power or thermal conditions.
  • Model and checkpoint revision, along with software versions.
  • Batch size, sequence length, and number of candidate labels.
  • Warmup and synchronization method, and whether tokenization and postprocessing are timed.
  • Whether model loading, compilation, and graph preparation are included or excluded.
  • Quality results on the same evaluation examples, rather than latency alone.

Pocepaev says his model, source code, report, and a Hugging Face repository containing weights, tokenizer, dependencies, adapter, and an inference.py entry point are available under Apache-2.0. Those are claims in his 2026 article; without a verified current artifact URL or revision, check the repository’s present contents and license before relying on them.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.