News

日本語 · English

Thoughts on Running Tachyon for V100 on a 5090

What we did: We ran Tachyon, which we had developed for the V100, on an RTX 5090 and increased its speed from 27.8 to 72.7 tok/s. The cause was that Tensor Core instructions were missing. We have not changed the speed or answers for the V100 (self-measured).

Why I Tried Running Tachyon, Designed for V100, on a 5090

Tachyon has been an inference engine developed exclusively for the Tesla V100. It is written in Rust and CUDA. This time, I attempted to run Tachyon on an NVIDIA GeForce RTX 5090 (Blackwell generation, sm_120). The starting point was to verify whether it would work on a new generation of GPUs. Beyond simply getting it to run, we verified performance improvements ourselves.

It Was Slow as Is

First, we built and ran it without any modifications. While it did run, it was slow, with a throughput of 27.8 tok/s for Qwen3.8-27B at 27B parameters. In contrast, the same engine on a V100 achieves 38–40 tok/s, resulting in a reversal where the newer GPU performed slower.

For reference, the published hardware specifications are as follows: The RTX 5090 has 32GB of memory (GDDR7), a bandwidth of approximately 1.79TB/s, and 170 SMs. The Tesla V100 (SXM3 32GB) has a bandwidth of approximately 0.9TB/s and 80 SMs.

We then investigated the cause. The GEMV time per layer remained almost constant at 0.532–0.540ms, regardless of the weight size (204–307MB). Since the time was proportional to the number of elements but not to the bytes read, this indicated that the bottleneck was computation rather than memory bandwidth. The effective bandwidth was 470GB/s, which is only about one-fourth of the 5090's bandwidth.

The reason became clear. The V100 is a Volta-generation GPU that uses the mma.m8n8k4 instruction for Tensor Cores. However, this instruction does not exist on the new Blackwell-generation 5090. Consequently, when built as-is, the compiler (ptxas) replaces this instruction with a sequence of standard FFMA instructions. As a result, the machine code for the 5090 contained zero Tensor Core instructions (HMMA).

What We Fixed

We added support for the GEMV during decoding and GEMM (matrix-matrix multiplication) during prefilling for GPUs with sm_80 or higher. By using ldmatrix and mma.m16n8k16 (f16×f16→f32), the HMMA.16816 count in the 5090 machine code reached 8,064. Additionally, we changed the GEMV launch configuration from being hardcoded to assume "80 SMs" to dynamically querying the number of SMs at runtime (the 5090 has 170, while the V100 has 80, as before). The arrangement and rules for weights (integer weights converted to f16, sums in f32) remain identical to those for the V100.

Results

The results on the 5090 (single user, greedy decoding) based on our own measurements are shown in the table below. Greedy decoding is a simple generation method that selects the word with the highest probability each time.

Before FixAfter FixReference: V100
27B Decoding27.8 tok/s72.7 tok/s38–40 tok/s
27B + MTP Draft 3 Tokens46.2 tok/s136.7 tok/s (Acceptance 54%)
Qwen3.6-35B-A3B (MoE) Decoding87.8 tok/s205.6 tok/s~120 tok/s

tok/s is an indicator of the number of tokens generated per second. MTP refers to a mechanism (a form of speculative decoding) where small additional layers attached to the model draft subsequent tokens, which the main model then verifies collectively. "Draft 3 tokens" indicates reading ahead three tokens at once. "Acceptance 54%" refers to the percentage of drafted tokens that were actually accepted. MoE refers to models that use only a subset of experts depending on the input.

Furthermore, Qwen3.6-35B-A3B + MTP Draft 3 tokens achieved 458.2 tok/s. However, this value was measured on a single sentence, and acceptance rates vary by sentence. The effective bandwidth for GEMV (matrix-vector multiplication) increased from 210GB/s to 1,030GB/s under conditions where eight streams were processed simultaneously. For prefilling (processing input sentences in batches), the rate was 2,247 tok/s for 27B at 512 tokens. For comparison, running the same 512 tokens through the original path without Tensor Cores (replaced with FFMA) yielded only 149 tok/s. Weights used were unsloth's UD-Q4_K_XL for 27B and ggml-org's Q4_K_M for 35B-A3B (both are GGUF format, 4-bit level).

I believe these numbers reflect the resolution of the computational bottlenecks.

Are the Answers Correct?

The answers from the new path showed an error of 4.1e-7 compared to dequantization via gguf-py and f64 calculations, across six quantization types and batch sizes of 1–32. This consistency was confirmed over four runs.

We also compared it with llama.cpp on the same 5090. Token agreement rates were 98.9% for 27B and 97.0% for 35B-A3B. When comparing discrepancies one by one against a CPU-based f32 reference calculation (3 discrepancies for 27B, 4 for 35B-A3B), Tachyon's top choice matched the reference at every discrepancy point. In all cases, the top two choices were very close. For example, in the 27B case at mid_word-35, the reference had rank 1: 328 (-0.720) and rank 2: 421 (-0.746); Tachyon had 328 (-0.721) and 421 (-0.744); llama.cpp had 421 (-0.696) and 328 (-0.768). For two points in the 35B-A3B case, the relative logit difference was 5–6% (likely near the decision boundary for MoE expert selection), but the top choice still matched the reference. What can be stated here is merely that "at discrepancy points, Tachyon was closer to the reference," not that llama.cpp is generally incorrect.

Has the V100 Changed?

We also verified on December 3, 2026, that the V100 behavior remained unchanged. Comparing 12 sentences (greedy 64 tokens, top 20 prefill tokens) for 27B and 35B-A3B across three configurations—production build (V100-only), this version's V100-only path, and the combined V100+5090 build—all 8 groups were identical down to the token (IDENTICAL). Speeds were also identical: 27B decoding was 39.7 tok/s, and prefilling for 512 tokens was 1,098.8 and 1,099.1 tok/s respectively. The 5090-specific paths exist only within compile-time branching (sm_80 or higher), so the V100 never enters a different path at runtime.

Things That Cannot Yet Be Concluded

Interpretation requires caution. The 5090 measurements were taken with a single device, single user, and greedy decoding; scenarios involving multiple simultaneous users or long contexts have not yet been measured. The 458.2 tok/s figure was measured on a single sentence and varies by sentence. The 5090 is not yet used in production; production remains on the V100. A candidate for the next area to address is that some parts of GEMV (gate/up in ffn) utilize only 136 out of 170 available SMs.

Timeline So Far

Tachyon was released as open-source software in November as an inference engine for a single V100, "Tachyon-v100" (Release of Open-Source Inference Engine "Tachyon-v100" for Single V100). Subsequently, it was updated to support loop-type LLMs ("Tachyon-v100" Updated for Loop-Type LLMs). The development philosophy is summarized in my contribution "Even with an Old Single V100, Building Your Own Engine Increases Speed." The article "Memory and Bandwidth – Comparing GPUs, HBM, PC Memory, and SSDs by Product" details why decoding speed is often determined by memory bandwidth. This time, taking the V100-targeted engine was a step toward extending it to GPUs of a different generation.

All figures are from our own measurements (December 2–3, 2026). RTX 5090 specifications are from the NVIDIA product page. The llama.cpp used for comparison is from the GitHub repository. Weights were sourced from unsloth's Qwen3.8-27B GGUF and ggml-org's Qwen3.6-35B-A3B GGUF. Models were verified using Qwen's Qwen3.8-27B and Qwen3.6-35B-A3B.

This article was translated from the Japanese original. 日本語で読む

← Latest articles