interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / evidence / q36-step-model-20261031 / README.md

209 lines · 15376 bytes Raw Blame History Source

q36 step-time model, version 1 (DRA-64)

Refs aien-dev/benchmarks-mv#65, Linear DRA-64.

The fitted step-time model of one Qwen3.6-35B-A3B decode stroke (n heads, one token each) on one GB10:

t(n) = 9.13 + 3.29 n + 0.696 U(n) + 4.81 Ceiling[n/4]   ms per stroke
U(n) = experts read per layer per stroke = routed-expert union of the n heads + 1 shared expert

q36-step-model.wl is the versioned model (q36-step-model/1). It is frozen: a change is a new versioned file opened by a model-revision issue, never an edit of this one. Every number below is copied from q36-step-model-wolfram-raw.json (hosted Wolfram Language evaluator, MCP tool WolframLanguageEvaluator); none is hand computed. Host evidence only: no chip was used for this directory, and the ladder it fits is labelled "shared chip, not a speed receipt" in its source README.

Files

filewhat
inputs/copies of the source receipts, pinned by SHA256SUMS (source: aien-sovereign-core-mv d3dec0eb, evidence/motor-chip-20261021/)
derived/union-cells-*.jsonper-cell routed-expert union counts (31 decode steps x 40 layers) from the host goldens, by scripts/union-cells.sh
derived/header-bytes.jsonweight bytes per launch class from the checkpoint safetensors headers, by scripts/header-bytes.sh
inputs.wlthe Wolfram association q36in, generated from the pinned files by scripts/extract-inputs.sh
q36-step-model.wlthe model: frozen parameters, predict[n, U], predictTokS, recordLever, the fit procedure, the checks, the report
q36-step-model-query.wlexactly what was sent: inputs.wl + q36-step-model.wl
q36-step-model-wolfram-raw.json, q36-step-model-rerun-wolfram-raw.jsontwo evaluations of the same query; q36-step-model-rerun.diff (0 bytes) is their text diff
negctl-768.wl, negctl-perturbed.wlthe two negative-control overrides; negctl-*-query.wl = inputs + override + model; negctl-*-wolfram-raw.json their outputs

Goldens used by scripts/union-cells.sh (not copied, 3 MB; aien-sovereign-core-mv d3dec0eb evidence/q36-host-20261020/):

cf0e0119aec93c4325cfed86fe7b2a2b669f768edbfe816082a3f11a0a066207  gen-p1.json
7d4bd2b795f9d65f943c4c804e1ab06b8a77723b27a355c6daba81a38e08241a  gen-p2.json
78168f26a505ee086a83b3efde3ba69041c4e381c63a17b2c95263aa68ca8142  gen-p3.json
beb224ed1062a20b12dd5d0d47e3a3bd480d296688dc2c03db6feb333479932c  gen-p4.json
3dad6e46beb121036173cc12c304c4739a54ed96fbc5f99fb81bacd2c3ebee69  gen-chat-code.json
d1266bdda1c6281423fc1b9338dce3087234fb56b2a0917173e0c9ac5a738f5c  gen-chat-prose.json
394634b60fd0032e88651444694387a4a02fe1051cfcffd33c95c136468d1191  gen-chat-prose2.json
570daa064d83fdaae1db69485b2d72dab807e0df7e84aab9a0b3c3916ce428b3  gen-chat-chat.json
03e1df06010ac7f2e96431354a6c62678dc64af7747c4b93525dddffdb98fe9f  gen-chat-review.json

The pinned union script inputs/expert-union.sh run on these goldens reproduces all four pinned union files (expert-union-{4p,4chat,8prompts,8prompts-b}.json) byte for byte (cmp, exit 0, 2026-10-31). Checkpoint: ~/models/qwen3.6-35b-a3b-fp8-95a723d0 on the Spark; derived/header-bytes.json records the sha256 of config.json and of each of the 41 safetensors header blobs it read (layers 0-39 and outside.safetensors; mtp.safetensors excluded). Only headers are read; no tensor data and no model load.

Reproduce

cd evidence/q36-step-model-20261031
sha256sum -c SHA256SUMS
scripts/header-bytes.sh ~/models/qwen3.6-35b-a3b-fp8-95a723d0 | cmp - derived/header-bytes.json
(cd <core d3dec0eb>/evidence/q36-host-20261020 && <this dir>/scripts/union-cells.sh gen-p1.json gen-p2.json) | cmp - derived/union-cells-ladder2-p1p2.json   # likewise for each union-cells file, sets below
scripts/extract-inputs.sh | cmp - inputs.wl
{ cat inputs.wl; echo; cat q36-step-model.wl; } | cmp - q36-step-model-query.wl
{ cat inputs.wl; echo; cat negctl-768.wl; echo; cat q36-step-model.wl; } | cmp - negctl-768-query.wl
{ cat inputs.wl; echo; cat negctl-perturbed.wl; echo; cat q36-step-model.wl; } | cmp - negctl-perturbed-query.wl
# send each *-query.wl as one WolframLanguageEvaluator call; the text must equal the matching *-wolfram-raw.json .text

Union sets: ladder1-p1 {p1}, ladder2-p1p2 {p1, p2}, ladder4-p1234 {p1..p4}, ladder8-setb {p1..p4, chat-code, chat-prose2, chat-chat, chat-review}, 4chat {chat-code, chat-prose, chat-chat, chat-review}, 8a {p1..p4, chat-code, chat-prose, chat-chat, chat-review}, pair-code-p2, pair-code-review. The ladder sets are the goldens of the lever-2 ladder runs (inputs/stroke{1,2,4,8}l2-real.json, conversations).

Checks (all True in the main run)

checkmeaning
ladderMediansMatchReadmethe gate median of each stroke_chip_ns list equals the README ladder (L247-250) to 0.0005 ms
ladderMediansMatchFileFieldand equals the file's own stroke_chip_ns_median exactly
stampsMedianMatchesLogthe stamped run's median equals the 84.076 ms in its log
stampsKindsSumToTotalthe per-kind stamp times sum to the timeline's total_ns
ladderHeadsAre1248the four ladder files are 1, 2, 4, 8 heads
pinnedUnionMeansRederivedWolfram's mean of the union cells equals each pinned file's mean_union (1e-9)
expertBytesContractheader bytes per expert = 32048512 FP8 + 3(164) BF16 scales x 2 B = 3,146,112; shared expert the same; 256 routed experts; 40 layers
lmHeadByteslm_head = 248320 x 2048 x 2 B
mixBytesMatchReadme0944GBmix bytes round to the README's 0.944 GB
fitPublishedReproducedLinearUthe fit procedure below reproduces a, b, c, h, RMS within half a unit of their published last digit
linearU4U8MatchPinnedUnionsLinear U(4) 30.7 and U(8) 55.6 are the pinned 4chat and mean(set a, set b) unions + 1 (U(1) = 9 holds by construction; U(2) = 16.3 has no pinned source and is not checked)
indepFormulaMatchesPinnedFiles1 + 256(1-(31/32)^n) minus the shared expert equals the independent_draws of the pinned 8prompts and 4p files (1e-9)
publishedPinT8pin of the published text, reads no input: t(8, 55.6) = 83.7676 ms and 95.50 tok/s
publishedPinIndep8pin of the published text, reads no input: independent-draw U(8) rounds to 58.4 and gives 93.3 tok/s
weightClassesBelowCeilingno weight class runs above 273 GB/s with the corrected bytes

The gate median is the upper median (element Floor[len/2]+1 of the sorted list), the convention of the stroke gate and of the README. Wolfram's Median (mean of the middle pair) gives 25.30227, 32.457668, 44.288881, 85.427837 ms; the fit uses the gate's 25.320206, 32.464756, 44.350601, 85.427837 ms.

Fit procedure (reproduces the published numbers)

c = (gate_up + down chip time of the stamped lever-2 eight-head stroke) / U(8)  = 38.69792 ms / 55.6
h = (lm_head chip time of that stroke) / (2 lm_head launches)                   = 9.619136 ms / 2
a, b = least squares of  median(n) - c U(n) - h Ceiling[n/4]  over n = 1, 2, 4, 8

[INFERENCE] c and h come from ONE stamped shared-chip stroke (timeline_last_stroke, total_ns 77738400), not from a median, so they carry that stroke's noise and the stamping overhead. c assumes the gate_up + down time is fully proportional to U with no fixed per-launch term; a fixed term, if any, is absorbed into a and b.

U setabchRMS msresiduals n = 1, 2, 4, 8 (ms)
Linear (9, 16.3, 30.7, 55.6)9.128623.2884560.6960064.8095682.4186241.82951, 0.604763, -4.108787, 1.674514
ladder-matched (9, 16.749194, 30.374194, 55.541129)9.013573.310650.6967434.8095682.3147081.915726, 0.350426, -3.87816, 1.612008
independent draws (9, 16.75, 31.531006, 58.420831)9.536773.2485110.6623994.8095682.287221.763763, 0.526208, -3.875897, 1.585926

The published (rounded) parameters against the four ladder medians: RMS 2.418561 ms, residuals 1.826206, 0.599956, -4.116599, 1.660237 ms. A free four-parameter solve (a -66.42103, b -80.574258, c 12.016275, h 64.169018) passes through all four points by construction and is not a model; it is reported only to show that four points cannot discriminate four free parameters, which is why c and h come from the stamped timeline.

U difference report: the Linear U values do not come from the ladder's own conversations. Ladder-matched minus Linear: 0, +0.449194, -0.325806, -0.058871. U(2) = 16.3 has no pinned source: the ladder pair {p1, p2} gives 16.749194; the closest pinned pairs are chat-code + p2 (16.342742) and chat-code + chat-review (16.289516). Only the Linear U set reproduces the published parameters; the ladder-matched set gives the second row of the table above (h unchanged).

Variants at n = 8

variantU(8)t mstok/s
measured union (Linear)55.683.767695.502318
independent-draw union, exact 1 + 256(1-(31/32)^8)58.42083185.73089893.315248
independent-draw union, Linear rounding58.485.716493.331031
ladder-matched (set b)55.54112983.72662695.549055

Per-class achieved bandwidth, corrected bytes

Stamped lever-2 eight-head stroke (inputs/stroke8l2-stamps.json timeline_last_stroke, 1469 launches, total_ns 77738400). Stamps cost chip time and the chip was shared: these are stamped-timeline rates, not speed receipts. Expert bytes use the header-read 3,146,112 B per expert and U(8) = 55.541129 (set b, the stamped run's conversations). [INFERENCE] The timeline is the last stroke; its exact union is not recorded, so the mean set-b union stands in for it. [INFERENCE] The gate_up and down launches include the shared expert (one launch per layer per kind, 40 each).

classbytes per strokelaunchesmsGB/s% of 273 GB/s
experts gate_up + down6.989544501677419e98038.69792180.61809366.160474
experts gate_up4.659696334451613e94022.839968204.01501274.730773
experts down2.329848167225806e94015.857952146.91986553.8168
lm_head bf16 (2 four-head reads)2.03423744e929.619136211.47818777.464537
mix (FP8 + scales)9.438336e8406.501856145.16371953.173524
o_proj (FP8 + scales)3.3558528e8402.433344137.91115450.516906
router (bf16 256 x 2048)4.194304e7402.13132819.6792997.208534
ab (bf16 in_proj_a, in_proj_b)7.86432e6300.41977618.7345636.862477
superseded: experts at 768-wide 3 x 2048 x 768 B1.0483037084903227e108038.69792270.89407199.228597

The source README computed its expert rows with the 768-wide expert (4,718,592 B), which put the experts near the ceiling (last row). With the header bytes the expert GEMVs run at 66 % of 273 GB/s: the experts are not at the bandwidth wall, and the remaining headroom is a lever input, not a fixed cost. gdn, attn and the small kinds read state rather than weights and have no row.

Projection rows

nU independent drawst mstok/sstatus
1923.49442.564059independent-draw variant (fitted range n <= 8)
216.7532.17862.154267independent-draw variant (fitted range n <= 8)
431.53100649.0455881.556788independent-draw variant (fitted range n <= 8)
858.42083185.73089893.315248independent-draw variant (fitted range n <= 8)
16102.962162152.671665104.800062architecture projection until OMEGA_GPU_Q36_MAX_HEADS > 8 is qualified
32164.313846267.252437119.736981architecture projection until OMEGA_GPU_Q36_MAX_HEADS > 8 is qualified
64223.442488452.165971141.540947architecture projection until OMEGA_GPU_Q36_MAX_HEADS > 8 is qualified

OMEGA_GPU_Q36_MAX_HEADS is 8 (omega-mv 474197e4 src/omega_gpu_q36_graph.h L66). Rows with n >= 16 are outside every measurement and stay projections until a qualified build raises that limit.

Procedure for later lever issues (10 % rule)

Every lever issue that changes the stroke records predicted against measured stroke time with this model, before claiming a speedup:

  1. Measure the lever's stroke median with the stroke gate (gate median, stroke_chip_ns_median) at n heads, in a spark-window, and its union U(n) with scripts/union-cells.sh on the run's goldens (Wolfram 1 + Mean[cells]).
  2. Evaluate inputs.wl + q36-step-model.wl + recordLever["DRA-NN lever", n, U, measuredMs] in the WolframLanguageEvaluator; save the raw json beside the lever's receipt.
  3. verdict is WITHIN_MODEL when |measured - predicted| / predicted <= 10 %, else OPEN_MODEL_REVISION_ISSUE: open a model-revision issue in aien-dev/benchmarks-mv citing the raw json; the revision adds a new versioned .wl (q36-step-model/2) with its own pinned inputs, and lever predictions keep citing the version they used. A lever that is designed to change a term (for example h after an XBATCH change) predicts with the revised term and states which term it changed.
  4. scope marks n > 8 as an architecture projection.

In-sample residuals of the published model on its own ladder, (measured - predicted)/predicted, report key publishedModelResidualFraction: n = 1 +0.077731, n = 2 +0.018828, n = 4 -0.084936, n = 8 +0.01982 (main run). The rule stays as specified (> 10 % opens a model-revision issue), but at n = 4 the model already sits 1.5064 points inside it (WolframLanguageEvaluator: 100 (1/10 - 0.084936) -> 1.5064), so a no-op lever can trip the rule there from shared-chip drift alone. Measure in a quiet spark-window and compare against the lever's own no-op control before opening the issue.

The main run carries two worked examples: measured = 1.05 x predicted gives residual 0.05, WITHIN_MODEL; 1.15 x predicted gives 0.15, OPEN_MODEL_REVISION_ISSUE. Applying the rule to a later lever is NOT_RUN here.

Negative controls

controloverridechecks that went FalseallChecksPass
negctl-768expert bytes = 3 x 2048 x 768expertBytesContractFalse
negctl-perturbedn = 4 ladder strokes x 1.05ladderMediansMatchReadme, ladderMediansMatchFileField, fitPublishedReproducedLinearU (a 9.610692, b 3.307739, RMS 1.487754)False

The 768-wide expert keeps weightClassesBelowCeiling True (270.894071 GB/s, under 273): the ceiling check alone would not catch it, the header-bytes contract does.

Status

itemstatus
inputs pinned by sha256, model reproduces the published fitPASS (host, Wolfram)
measured-union and independent-draw variantsPASS (host, Wolfram)
per-class bandwidth from corrected bytesPASS (host, Wolfram; stamped shared-chip timeline, not a speed receipt)
predicted vs measured procedure and predict[n, U]IMPLEMENTED, exercised on two synthetic examples; application to later levers NOT_RUN
n >= 16 rows labelled projectionsPASS
rerun determinismPASS (two evaluations, text diff empty)
chip qualification of the modelNOT_RUN (no chip run in this directory)