interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / OWN30B-REQUAL-MAIN-710d438c-20261015 / gates / fp8gemm.out

169 lines · 13510 bytes Raw Blame History
1host-only: emulation, permutation, budgets
2emulation vs oracle: worst relative error 2.00e-08 of the term scale
3codegen k 2048 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B
4codegen k 4096 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B
5codegen k 1024 lane 16 mt 8 warps 16: 788 instructions, 104 registers (declared 112, register file 57344 of 65536), shared 16384 B
6codegen k 768 lane 8 mt 8 warps 16: 683 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B
7codegen k 768 lane 8 mt 8 warps 8: 731 instructions, 103 registers (declared 104, register file 26624 of 65536), shared 8192 B
8codegen k 2048 lane 8 mt 8 warps 16: 541 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B
9codegen k 2048 lane 16 mt 4 warps 16: 509 instructions, 99 registers (declared 104, register file 53248 of 65536), shared 8192 B
10codegen k 2048 lane 16 mt 8 warps 32: 765 instructions, 107 registers (declared 112, register file 114688 of 65536) DOES NOT FIT, shared 16384 B
11codegen k 2048 lane 16 mt 8 warps 8: 861 instructions, 107 registers (declared 112, register file 28672 of 65536), shared 16384 B
12codegen k 2048 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B
13codegen k 4096 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B
14gpu_fp8gemm_test: 53 checks, 0 failed: PASS
15sim k 2048 n 40 lane 16 mt 8 warps 16 grid 2: ok 0 of 600 outputs differ from the emulation (bit-identical)
16sim k 4096 n 20 lane 16 mt 8 warps 16 grid 1: ok 0 of 220 outputs differ from the emulation (bit-identical)
17sim k 1024 n 33 lane 16 mt 8 warps 16 grid 2: ok 0 of 99 outputs differ from the emulation (bit-identical)
18sim k 768 n 130 lane 8 mt 8 warps 16 grid 2: ok 0 of 2730 outputs differ from the emulation (bit-identical)
19sim k 768 n 24 lane 8 mt 8 warps 8 grid 1: ok 0 of 264 outputs differ from the emulation (bit-identical)
20sim k 2048 n 16 lane 16 mt 4 warps 16 grid 1: ok 0 of 160 outputs differ from the emulation (bit-identical)
21sim mutant 1: caught 600 of 600 outputs differ from the emulation
22sim mutant 2: caught 600 of 600 outputs differ from the emulation
23sim mutant 3: caught 600 of 600 outputs differ from the emulation
24sim: 3444454 warp issues in total
25gpu_fp8gemm_test: 9 checks, 0 failed: PASS
26== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8
27upload 403 MB: rc=OK 301 ms
28parity vs per-row GEMV (512 calls, 28 ms): 0 of 786432 outputs differ (bit-identical)
294 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08
30second call: bit-identical
31chip mutant 1: caught (786432 of 786432 outputs differ)
32chip mutant 2: caught (786432 of 786432 outputs differ)
33chip mutant 3: caught (784896 of 786432 outputs differ)
34GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 4063.8 us, call 4732.8 us; streams 563 MB (distinct experts 396 MB) = 138.6 GB/s on streamed, 97.5 GB/s on distinct
35per-token grouped GEMV baseline (64 tokens, medians of 15): chip 9417.1 us, call 10015.4 us => GEMM is 2.32x faster (chip), 2.12x (call)
36per token: GEMM chip 63.5 us/token, call 73.9 us/token
37== down: 128 experts, n 2048, k 768, 64 tokens x top-8
38upload 201 MB: rc=OK 84 ms
39parity vs per-row GEMV (512 calls, 27 ms): 0 of 1048576 outputs differ (bit-identical)
404 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08
41second call: bit-identical
42chip mutant 1: caught (1048576 of 1048576 outputs differ)
43chip mutant 2: caught (1048576 of 1048576 outputs differ)
44chip mutant 3: caught (1048576 of 1048576 outputs differ)
45GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1320.8 us, call 2174.9 us; streams 272 MB (distinct experts 198 MB) = 206.0 GB/s on streamed, 150.0 GB/s on distinct
46per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5816.0 us, call 6613.2 us => GEMM is 4.40x faster (chip), 3.04x (call)
47per token: GEMM chip 20.6 us/token, call 34.0 us/token
48== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1
49upload 10 MB: rc=OK 4 ms
50parity vs per-row GEMV (64 calls, 7 ms): 0 of 327680 outputs differ (bit-identical)
514 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09
52second call: bit-identical
53chip mutant 1: caught (327680 of 327680 outputs differ)
54chip mutant 2: caught (327680 of 327680 outputs differ)
55chip mutant 3: caught (327680 of 327680 outputs differ)
56GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1817.3 us, call 2100.4 us; streams 84 MB (distinct experts 10 MB) = 46.2 GB/s on streamed, 5.8 GB/s on distinct
57per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5167.9 us, call 5535.0 us => GEMM is 2.84x faster (chip), 2.64x (call)
58per token: GEMM chip 28.4 us/token, call 32.8 us/token
59== o: 1 experts, n 2048, k 4096, 64 tokens x top-1
60upload 8 MB: rc=OK 4 ms
61parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical)
624 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09
63second call: bit-identical
64chip mutant 1: caught (131072 of 131072 outputs differ)
65chip mutant 2: caught (131072 of 131072 outputs differ)
66chip mutant 3: caught (131072 of 131072 outputs differ)
67GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1463.3 us, call 1701.3 us; streams 67 MB (distinct experts 8 MB) = 45.9 GB/s on streamed, 5.7 GB/s on distinct
68per-token grouped GEMV baseline (64 tokens, medians of 15): chip 4418.2 us, call 4667.0 us => GEMM is 3.02x faster (chip), 2.74x (call)
69per token: GEMM chip 22.9 us/token, call 26.6 us/token
70gpu_fp8gemm_test: 36 checks, 0 failed: PASS
71== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8
72upload 403 MB: rc=OK 302 ms
73parity vs per-row GEMV (512 calls, 27 ms): 0 of 786432 outputs differ (bit-identical)
744 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08
75second call: bit-identical
76chip mutant 1: caught (786432 of 786432 outputs differ)
77chip mutant 2: caught (786432 of 786432 outputs differ)
78chip mutant 3: caught (784896 of 786432 outputs differ)
79GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 3639.6 us, call 4267.8 us; streams 563 MB (distinct experts 396 MB) = 154.7 GB/s on streamed, 108.9 GB/s on distinct
80per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9440.8 us, call 10104.4 us => GEMM is 2.59x faster (chip), 2.37x (call)
81per token: GEMM chip 56.9 us/token, call 66.7 us/token
82== down: 128 experts, n 2048, k 768, 64 tokens x top-8
83upload 201 MB: rc=OK 84 ms
84parity vs per-row GEMV (512 calls, 28 ms): 0 of 1048576 outputs differ (bit-identical)
854 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08
86second call: bit-identical
87chip mutant 1: caught (1048576 of 1048576 outputs differ)
88chip mutant 2: caught (1048576 of 1048576 outputs differ)
89chip mutant 3: caught (1048576 of 1048576 outputs differ)
90GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1308.6 us, call 2108.2 us; streams 272 MB (distinct experts 198 MB) = 207.9 GB/s on streamed, 151.4 GB/s on distinct
91per-token grouped GEMV baseline (64 tokens, medians of 9): chip 5763.3 us, call 6621.4 us => GEMM is 4.40x faster (chip), 3.14x (call)
92per token: GEMM chip 20.4 us/token, call 32.9 us/token
93== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1
94upload 10 MB: rc=OK 4 ms
95parity vs per-row GEMV (64 calls, 5 ms): 0 of 327680 outputs differ (bit-identical)
964 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09
97second call: bit-identical
98chip mutant 1: caught (327680 of 327680 outputs differ)
99chip mutant 2: caught (327680 of 327680 outputs differ)
100chip mutant 3: caught (327680 of 327680 outputs differ)
101GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1843.7 us, call 2097.9 us; streams 84 MB (distinct experts 10 MB) = 45.5 GB/s on streamed, 5.7 GB/s on distinct
102per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4119.1 us, call 4575.6 us => GEMM is 2.23x faster (chip), 2.18x (call)
103per token: GEMM chip 28.8 us/token, call 32.8 us/token
104== o: 1 experts, n 2048, k 4096, 64 tokens x top-1
105upload 8 MB: rc=OK 3 ms
106parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical)
1074 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09
108second call: bit-identical
109chip mutant 1: caught (131072 of 131072 outputs differ)
110chip mutant 2: caught (131072 of 131072 outputs differ)
111chip mutant 3: caught (131072 of 131072 outputs differ)
112GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1459.7 us, call 1609.7 us; streams 67 MB (distinct experts 8 MB) = 46.0 GB/s on streamed, 5.7 GB/s on distinct
113per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4463.0 us, call 4734.7 us => GEMM is 3.06x faster (chip), 2.94x (call)
114per token: GEMM chip 22.8 us/token, call 25.2 us/token
115gpu_fp8gemm_test: 36 checks, 0 failed: PASS
116--no-evict exit 0 (informational)
117== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8
118upload 403 MB: rc=OK 308 ms
119parity vs per-row GEMV (512 calls, 26 ms): 0 of 786432 outputs differ (bit-identical)
1204 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08
121second call: bit-identical
122chip mutant 1: caught (786432 of 786432 outputs differ)
123chip mutant 2: caught (786432 of 786432 outputs differ)
124chip mutant 3: caught (784896 of 786432 outputs differ)
125GEMM (medians of 9, evict 1): mt 8 warps 16 ctas 2 x 126 segments, 512 rows, up to 2 passes: chip 5701.4 us, call 6367.5 us; streams 409 MB (distinct experts 396 MB) = 71.7 GB/s on streamed, 69.5 GB/s on distinct
126per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9467.8 us, call 10048.1 us => GEMM is 1.66x faster (chip), 1.58x (call)
127per token: GEMM chip 89.1 us/token, call 99.5 us/token
128gpu_fp8gemm_test: 9 checks, 0 failed: PASS
129--shape gateup --mt 8 exit 0 (informational)
130== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8
131upload 403 MB: rc=OK 305 ms
132parity vs per-row GEMV (512 calls, 31 ms): 0 of 786432 outputs differ (bit-identical)
1334 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08
134second call: bit-identical
135chip mutant 1: caught (786432 of 786432 outputs differ)
136chip mutant 2: caught (786432 of 786432 outputs differ)
137chip mutant 3: caught (784896 of 786432 outputs differ)
138GEMM (medians of 9, evict 1): mt 2 warps 16 ctas 2 x 126 segments, 512 rows, up to 5 passes: chip 4048.2 us, call 4703.0 us; streams 928 MB (distinct experts 396 MB) = 229.2 GB/s on streamed, 97.9 GB/s on distinct
139per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9657.4 us, call 10508.9 us => GEMM is 2.39x faster (chip), 2.23x (call)
140per token: GEMM chip 63.3 us/token, call 73.5 us/token
141gpu_fp8gemm_test: 9 checks, 0 failed: PASS
142--shape gateup --mt 2 exit 0 (informational)
143== gateup: 128 experts, n 1536, k 2048, 128 tokens x top-8
144upload 403 MB: rc=OK 302 ms
145parity vs per-row GEMV (1024 calls, 54 ms): 0 of 1572864 outputs differ (bit-identical)
1464 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 7.66e-09
147second call: bit-identical
148chip mutant 1: caught (1572864 of 1572864 outputs differ)
149chip mutant 2: caught (1572864 of 1572864 outputs differ)
150chip mutant 3: caught (1572864 of 1572864 outputs differ)
151GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 6399.5 us, call 7896.5 us; streams 966 MB (distinct experts 403 MB) = 150.9 GB/s on streamed, 62.9 GB/s on distinct
152per-token grouped GEMV baseline (128 tokens, medians of 9): chip 19015.3 us, call 20429.1 us => GEMM is 2.97x faster (chip), 2.59x (call)
153per token: GEMM chip 50.0 us/token, call 61.7 us/token
154gpu_fp8gemm_test: 9 checks, 0 failed: PASS
155--shape gateup --tokens 128 exit 0 (informational)
156== down: 128 experts, n 2048, k 768, 128 tokens x top-8
157upload 201 MB: rc=OK 223 ms
158parity vs per-row GEMV (1024 calls, 62 ms): 0 of 2097152 outputs differ (bit-identical)
1594 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 3.32e-08
160second call: bit-identical
161chip mutant 1: caught (2097152 of 2097152 outputs differ)
162chip mutant 2: caught (2097151 of 2097152 outputs differ)
163chip mutant 3: caught (2097152 of 2097152 outputs differ)
164GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 2416.2 us, call 4183.8 us; streams 481 MB (distinct experts 201 MB) = 199.2 GB/s on streamed, 83.3 GB/s on distinct
165per-token grouped GEMV baseline (128 tokens, medians of 9): chip 12100.0 us, call 13741.2 us => GEMM is 5.01x faster (chip), 3.28x (call)
166per token: GEMM chip 18.9 us/token, call 32.7 us/token
167gpu_fp8gemm_test: 9 checks, 0 failed: PASS
168--shape down --tokens 128 exit 0 (informational)
169GPU_FP8GEMM_CHIP: PASS