2026-11-27 16:42 UTC

Developer reports K5 beats TorchAO FP8 on one L4 benchmark

state: expiredheat: lowuncertainty: mediumrelevance: mediumternary-quantization inference-throughput local-inferenceCode_MasterCody

What is this?

Code_MasterCody says they built TKintegers, a balanced-ternary weight representation and GPU inference implementation. In a Reddit post, they report that its K5 implementation ran Qwen2.5-0.5B-Instruct on an NVIDIA L4 at 3.21× the prefill throughput and 3.10× the decode throughput of a TorchAO dynamic E4M3 FP8 baseline in a matched workload. They describe K5 codes as five balanced-ternary digits stored in one byte, with kernels expanding tiles and using FP16 tensor-core operands and FP32 accumulation. The post links a repository and video, but the supplied web results provide no independent confirmation. The author says the FP16 control was faster than both K5 and FP8, and cautions that the results apply only to this model, workload and implementation.

Why it matters

If independently reproduced, this would show that a specialized low-precision representation and runtime can beat a hardware-supported FP8 path on existing GPUs, without requiring native instructions for the new format. That could broaden options for local inference and make kernel/runtime design as consequential as the weight format. The evidence is a single developer’s benchmark, however; the FP16 control was faster, and the result does not establish an advantage over stronger FP8 implementations or across models and workloads.

Current assessment

New evidence is a developer’s Reddit report, dated 2026-10-30, of TKintegers K5 results on Qwen2.5-0.5B-Instruct using an NVIDIA L4: 3,402.85 versus 1,061.58 tokens/s for prefill (3.21×), and 26.75 versus 8.63 tokens/s for decode (3.10×). The stated baseline is TorchAO dynamic E4M3 FP8 in eager PyTorch; decode uses fixed-token model forwards with a carried KV cache. The author says K5 codes use five balanced-ternary digits stored in one byte, and the kernels expand bounded tiles, computing with FP16 tensor-core operands and FP32 accumulation; some tensors remain higher precision. These are attributed measurements, not independently verified findings: no corroborating results are present in the supplied web results, and the author invites replication. The author also reports FP16 was faster than both tested methods, limiting the claim to a K5-versus-this-FP8-baseline comparison. Useful follow-up: inspect the linked repository and benchmark methodology, then seek independent replication and comparisons across runtimes, models, batch sizes and sequence lengths before drawing broader performance or deployment conclusions.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-29 17:53⭐ origin directly observedTKintegers K5: 3.21× prefill and 3.10× decode throughput vs TorchAO FP8 on NVIDIA L4 [R] [P]
Code_MasterCody on r/MachineLearning
—
10-29 17:53amplified on r/MachineLearning 👑reddit.post.1xir3oa
Code_MasterCody
peak 1 · 1 comments · 104% of case engagement
10-29 18:20our radar first saw it · +0.5hdiscovery anchor: reddit.post.1xir3oa—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 reddit ⭐TKintegers K5: 3.21× prefill and 3.10× decode throughput vs TorchAO FP8 on NVIDIA L4 [R] [P]
MachineLearning
Code_MasterCody11

Interpretation history

Decision trace