interplane.Get Omega
Read in your language

omega-helix

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

omega-helix / evidence / v0.2.0-gb10-h2h / README.md

96 lines · 9343 bytes Raw Blame History Source

Reproducible Head-to-Head & Live GB10 Verification (v0.2.0, Phase 1 sm_121 Stack)

Measured on NVIDIA DGX Spark (Grace + GB10 sm_121, Driver 580.173.02, Linux 7.0.0-1019-nvidia aarch64, CUDA 13.0 comparison arm only) against github/main commit 2ad71e9 (including 9b66406 Phase 1 128×128 packed-BF16 GEMMs, Fused Flash-Attention-2, CE_BF16, CTA-reduced RMSB_BF16, 256-CTA SQN, and live OMMA.SF.16864 NVFP4).


1. Matched BF16 Head-to-Head (15.83M v2 Shape, omega_h2h_v020.json & pytorch_h2h_v020.json)

Exact same 15,833,472-parameter v2 decoder-only Transformer (V=4096, T=256, D=384, H=12, F=1536, L=8, B=64 — 16,384 tokens/step, RMSNorm no bias, causal SDPA/FA2, ReLU MLP, tied token/output weights, BF16 mixed precision + AdamW):

MetricOmega Helix v0.1.0 (64×64 FP32-IO)Omega Helix v0.2.0 (9b66406 Phase 1)PyTorch 2.14.0+cu130 (Eager)PyTorch 2.14.0+cu130 (torch.compile)
Runtime / CUDA Dependencies0 CUDA / 0 cuBLAS / 0 Triton / 0 libc0 CUDA / 0 cuBLAS / 0 Triton / 0 libcCUDA 13.0 + cuBLAS + cuDNNCUDA 13.0 + Triton 3.8 + Inductor
Artifact / Disk Footprint791,988 B (~773 KiB)1,581,312 B (~1.51 MiB static ELF)5,325,112,578 B (~4.96 GiB)5,325,112,578 B (~4.96 GiB)
Footprint Ratio vs. v0.2.0—1×3,367.5× larger3,367.5× larger
Cold Start to Step 17,258.3 ms (380 MB ckpt I/O)7,938.7 ms (380 MB f64 ckpt I/O)2,030.2 ms (in-RAM init)1,561.1 ms (in-RAM + cache)
Steady-State Step Time (30 steps)193.56 ms/step (5.8067 s)62.96 ms/step (1.8887 s)121.08 ms/step (3.6324 s)62.45 ms/step (1.8734 s)
Steady-State Throughput (tok/s)84,646.7 tok/s260,243.3 tok/s135,315.6 tok/s262,371.0 tok/s
vs. Omega v0.1.0 (84,646.7)1.000×3.074× faster1.599×3.100×
Omega v0.2.0 vs. Arm3.074× faster1.000×1.923× faster (-58.12 ms)99.19% parity (+0.51 ms)

2. Live SM121 OMMA.SF.16864 NVFP4 Tensor Core GEMM (nvfp4_h2h_v020.json)

Measured inside Window 1 on 4096 × 4096 × 8192 (OMMA.SF.16864.F32.E2M1.E2M1.UE4M3.4X, slot 84, 500 TF GB10 NVFP4 hardware ceiling):

ArmShape (M × N × K)ItersWall TimeThroughput% Hardware PeakParity Check
Omega Helix nvfp4 (20 iters)4096 × 4096 × 81922011.975 ms459.09 TFLOPS91.81% (of 500 TF)expected=8192 got=8192 PASS
Omega Helix nvfp4 (50 iters)4096 × 4096 × 81925030.177 ms455.43 TFLOPS91.08% (of 500 TF)expected=8192 got=8192 PASS
PyTorch 2.14.0+cu130 cuBLAS BF16 matmul4096 × 4096 × 81922064.048 ms85.84 TFLOPS—Reference (5.35× slower than Omega NVFP4)

3. Root-Cause gprofb Breakdown of the 0.51 ms Gap vs. torch.compile (gprofb_v020.txt)

Per-kernel GPU launch profile on step 5 (T 5 7251558, gprofb_v020.txt, 241 step kernel launches summing to 64.644 ms under synchronous host wait_ns profiling vs. 62.96 ms/step pipelined, plus 64 bare ZERO round-trip probes averaging 6.29 µs/launch):

Kernel SlotRoleLaunchesSum Wait (ms)ShareMean (µs)
73128×128 Packed-BF16 split-K dW GEMM3211.97418.52%374.18
70128×128 Packed-BF16 dF backward (ReLU ep=2)85.6788.78%709.71
68128×128 Packed-BF16 X W + β C (Wo/W2)165.2208.07%326.22
71128×128 Packed-BF16 dX W^T backward164.5537.04%284.59
67128×128 Packed-BF16 X W (QKV/W1/logits)94.2256.54%469.39
69128×128 Packed-BF16 ReLU ep=1 forward84.1306.39%516.29
76CTA-reduced RMSB_BF16 backward174.0526.27%238.33
80 / 79 / 78 / 77Fused BF16 Flash-Attention-2 (dKV, dQ, delta, fwd)329.58314.82%299.47
85Fused 3-way QKV backward (dA = dQ Wq^T + dK Wk^T + dV Wv^T)82.5503.95%318.79
87 / 86 / 81CE_BF16 (2.306 ms), dLogits (1.920 ms), AdamW_BF16 (2.154 ms)36.3809.87%2,126.67
75RMSF_BF16 forward171.7542.71%103.15
14 / 13 / 20 / 82 / 83 / 74 / 22 / 23 / 9Auxiliary COLSUM (50×, 1.172 ms), gain (17×, 0.368 ms), ZERO, casts, scatter/emb754.5447.03%60.59

Measured root cause of the remaining 0.51 ms (0.81%) vs. torch.compile: Inductor fuses auxiliary reductions/casts and uses CUDA Graphs, whereas ollm-gb10 gtrainb currently issues 241 sequential QMD submissions per step — including 50 COLSUM (slot 14, 1.172 ms), 17 gain (slot 13, 0.368 ms), and 2 F32↔BF16 cast launches (slots 82/83, 0.316 ms) plus ~6.29 µs per-launch host dispatch overhead across auxiliary ops (~1.52 ms across 241 launches vs. single-graph submission). Fusing COLSUM/gain epilogues or batching QMD chains (batch.om) directly closes the remaining sub-millisecond margin.


4. Window 2 Live GB10 Verification (pillars_live_summary.txt)


5. Reproduce Yourself

TARGET=gb10 sh scripts/build.sh
./build/ollm-gb10 init base.ck 4096 256 384 12 1536 8 64 1 60000 3000 16
./build/ollm-gb10 gtrainb ck5.ck train.tok 5 5
./build/ollm-gb10 gtrainb ck35.ck train.tok 35 35
./build/ollm-gb10 gprofb base.ck train.tok 5
./build/ollm-gb10 nvfp4 4096 4096 8192 20
python3 tests/bench_pytorch_h2h.py --mode both --steps 30 --warmup 5 --measure-cold-start --out pytorch_h2h_v020.json

# Inside an exclusive spark-window:
OLLM_GB10_LIVE=1 python3 -W error::ResourceWarning -m unittest -v \
  tests/test_gpu_spiral_gb10.py tests/test_apu_weave.py tests/test_spiral_weave.py