interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / qwen38 / CEILING.md

98 lines · 7189 bytes Raw Blame History Source

Qwen3.8-27B ceilings on the DGX Spark

How fast can the 27B model write tokens (pieces of words) on this machine at most? There are two limits, and which one applies depends on how many tokens the chip works on per pass over the weights.

  1. Memory ceiling, one token at a time: writing one token reads every weight the model uses once, so memory speed limits one user writing one token after another.
  2. Compute ceiling, many tokens per pass: once the weights are read, the arithmetic on them limits how many tokens in total the chip can work on per second.

Every number below shows its arithmetic, so a calculator is enough to redo it. The calc: ids name the receipt for each step in calc-receipts/ (file <id>...json); each receipt stores the expression and its exact result (see the last section).

1. Memory ceiling: one token at a time

Weight bytes read per generated token, FP8 weights (1 byte each) with the bf16 final layer (lm_head, 2 bytes each), from the layer shapes (calc:ca9900d8):

PartArithmeticBytes
MLP, 64 layers, 3 matrices of 5120 x 17408 each64 x 3 x 5120 x 1740817,112,760,320
48 linear-attention layers, each 5120 x 10240 + 5120 x 6144 + 2 x 5120 x 48 + 6144 x 5120 = 115,834,88048 x 115,834,8805,560,074,240
16 full-attention layers, each 5120 x 12288 + 2 x 5120 x 1024 + 6144 x 5120 = 104,857,60016 x 104,857,6001,677,721,600
lm_head, 248320 x 5120 weights, 2 bytes each248320 x 5120 x 22,542,796,800
Totalsum of the four lines26,893,352,960

The live server's 7.63 tokens per second is 1000 / 131.05 ms. The 131.05 ms is the median chip time of 4 runs of 256 greedy tokens (129.0, 129.9, 132.2 and 134.9 ms; the median of four is the mean of the middle two, (129.9 + 132.2) / 2 = 131.05; evidence/qwen38-serve-fast-20261019/after/runs.tsv). Against the ceiling: (1000 / 131.05) / 10.15 = 7.63 / 10.15 = 0.752 (calc:64f74f90).

2. Compute ceiling: many tokens per pass over the weights

Each weight takes part in one multiply and one add for every token the chip works on, so the arithmetic is 2 operations per weight per token.

Chip speed for that arithmetic, and which figures are measured and which are specification:

Chip speedMeasured or specificationTokens per second in total
207.7 TFLOPS, FP8 denseMeasured by a third party, not by me: StorageReview's DGX Spark review, FP8 (E4M3) matrix multiply. It is the FP8 figure my prefill floor uses (evidence/qwen38-prefill-20261018T1836Z/README.md).207.7e12 / 51,243,909,120 = 4,053 (calc:4a61446a)
250 TFLOPS, FP8 denseSpecification, derived: NVIDIA's 1 PFLOP is FP4 with sparsity (footnote on the page above); without sparsity it is half, 500 TFLOPS FP4 dense; FP8 runs at half the FP4 rate, 2501e15 / 2 / 2 / 51,243,909,120 = 4,879 (calc:72c1312d)
415.4 TFLOPS, FP4 denseTwice the measured FP8 figure (2 x 207.7); not measured415.4e12 / 51,243,909,120 = 8,106 (calc:92ff5f95)
500 TFLOPS, FP4 denseSpecification, derived as above1e15 / 2 / 51,243,909,120 = 9,757 (calc:e020bb81)
115.36 TFLOPS, bf16Measured by me: Omega's tensor-core micro-test (HMMA.16816.F32.BF16), omega commit 4f5ecdd1, peak.log in omega-mv (best line: 115.36 TFLOPS)115.36e12 / 51,243,909,120 = 2,251 (calc:c749c639), bf16 arithmetic, not FP8

So with the FP8 weights shipped today the compute ceiling is about 4,050 to 4,880 tokens per second in total, and about twice that, 8,100 to 9,760, with FP4 weights (not shipped). I have not measured an FP8 peak myself; 115 TFLOPS bf16 is the only chip peak I measured.

3. Why the gap between the two ceilings matters

One user writing one token at a time is held to the memory ceiling: each token needs a full read of the weights and uses only one token's worth of arithmetic per read. At 10.15 tokens per second the chip does about 1/400 of the arithmetic it could do (4,053 / 10.15 = 399, calc:28e59303).

A single user gets more than 10.15 tokens per second only by checking several tokens per read of the weights: guess the next few tokens cheaply, then check all the guesses in one pass over the weights. Each checked guess costs arithmetic (about 51.2 billion operations) but no extra weight reading, so a few hundred guesses fit in one pass before arithmetic becomes the limit. Every guess the model agrees with is a token written without its own read of the weights. The gap between the memory ceiling (10.15) and the compute ceiling (about 4,050 at FP8) is the room the cascade work (guessing and checking several tokens per pass) is meant to use. How much of it a real guesser uses depends on how often its guesses are right; that is not measured yet.

Sources and how to check

What this does not cover: time to the first token (reading the prompt), which is limited by compute rather than memory speed; and power.