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 / inference / T4-DECODE-BUDGET.md

37 lines · 2701 bytes Raw Blame History Rendered
1# T4 decode budget: measured result and optional follow-up (spec note, 2026-10-06)
2
3Evidence: t4-measure-20261006T2217Z (before) and `docs/inference/evidence/t4fix-20261006T2254Z/` (after,
4sovereign-core 8c5294c, omega c0369e6, physics 6d7cf0d). Tags: [M] measured, [I] inferred, [C] read in code.
5
6What B covers [C]: `propose_with_retries` starts its clock at entry (`crates/aien-runtime/src/spine.rs:854`);
7attempt 1 runs for what is left of B = 29 000 ms. The declared warm-up runs before the accept loop
8(`crates/aien-runtime/src/server.rs:158-162`), so it is outside B. T4 needs 231 tokens = 1 from prefill
9+ 230 decode steps (ACCEPTANCE-v6 Section 3.1): prefill + 230 x d < 29 000 ms, d < 117 ms at 2 075 ms prefill.
10
11Result, one T4 launch per budget, AIEN_STEP_LOG=1 [M] (FINDINGS.md there):
12| | cta 64 (omega default) | cta 256 |
13|---|---|---|
14| warm-up (outside B) | 10 508 ms | 9 434 ms |
15| T4 prefill | 2 102 ms | 1 660 ms |
16| decode mean | 184.7 ms/token | 89.7 ms/token |
17| S3 wall | 29 094 ms (timeout) | 23 678 ms, S4-S6 PASS, docs/GUIDE.md 24 lines |
18Prefill shapes (106 rows) at 256: 100/100 calls each, repeat_mismatch 0, e2e bad 0/0 [M].
19The worker's estimate from m=1 matmul medians was 118 ms/token at 256 [I]; the measured 89.7 is faster,
20reason UNKNOWN. Decision (orchestrator): the AIEN daemon default is 256 (`AIEN_OMEGA_CTA_BUDGET` unset);
21omega's library default stays 64. Limits: one launch each; token identity 64 vs 256 not compared (64 timed
22out); ACCEPTANCE-v7 row R1 (GB10 vs CPU reference ids) checks it.
23
24Margin at 256 [I]: 1 660 + 230 x 89.7 = 22 291 ms of backend time, about 6.7 s under B.
25
26Optional follow-up (no longer needed for T4; more margin, longer replies):
271. omega: single-row matmul (m = 1). Today m=1 pads to 16 rows (TILE_M 16, `omega_gpu_matmul_api.h:46`)
28 and every CTA is one warp (`threads_x = 32`, `omega_gpu_matmul_api.c:169`) walking column tiles of 8.
29 Wanted: a GEMV kernel with several warps per CTA and split-K (each warp reduces a K slice, then a CTA
30 reduction) for q/o, k/v, gate/up, down and logits; parity against the host oracle, repeat_mismatch 0.
312. physics: spin wait. `m16/m16_native.c:105` (physics 6d7cf0d) sleeps `usleep(50)` inside
32 `m16_native_wait_marker_ge` (line 98) on every marker poll; omega waits through it
33 (`src/omega_gpu_session.c:52`). About 113 matmul launches per token [I], each can overshoot by up to
34 one sleep (size UNKNOWN). Wanted: spin with `yield` for a bounded first window, then the sleep; timeout
35 unchanged. Measure the per-launch wait before and after.
36Acceptance for either: a sealed GB10 T4 step log on the frozen path plus the parity receipt.
37No change to B, A or max_tokens 256.