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 / native / neuralese / learnscore.om

328 lines · 4848 bytes Raw Blame History
1om2
2note Independent NL1 raw-carrier scorer for frozen NL6 design 8ee0a494.
3note Does not trust reported predictions, abstentions, correctness or expected bits.
4note Public synthetic fixture only; not an independent secret-task campaign.
5const CHUNK ulong 16384
6global Buf uchar CHUNK
7global Io ulong 4
8global Row ulong 21
9global Seen ulong 135
10global Count ulong 135
11global Good ulong 135
12global Refuse ulong 135
13text BAD "NL6RAW INVALID\n"
14text COMMA ","
15text LF "\n"
16text HEAD "NL6RAW1,seed,partition,arm,quant,total,correct,refused,wrong\n"
17text TAG "S,"
18text FIN "NL6RAW END\n"
19text ENDREC "NL1LEARN END\n"
20
21fn putout a view uchar * n ulong to void
22o = ulong 0
23while lt o n
24z = write 1 a o sub n o
25if le z 0
26exit 93
27end
28o = add o ulong z
29end
30end
31fn invalid to void
32putout BAD len BAD
33exit 90
34end
35fn num n ulong to void
36b = new uchar 20 0
37p = ulong 20
38while true bound 20
39p = sub p 1
40put b p uchar add rem n 10 48
41n = div n 10
42if eq n 0
43break
44end
45end
46putout part b p sub ulong 20 p sub ulong 20 p
47end
48fn sep to void
49putout COMMA 1
50end
51fn next to long
52if eq get Io 1 get Io 2
53z = read int get Io 0 Buf 0 CHUNK
54if lt z 0
55invalid
56end
57if eq z 0
58ret -1
59end
60put Io 1 0
61put Io 2 ulong z
62end
63p = get Io 1
64put Io 1 add p 1
65ret long get Buf p
66end
67fn value delim long to ulong
68v = ulong 0
69n = ulong 0
70first = long -1
71while true bound 21
72c = next
73if eq c delim
74if eq n 0
75invalid
76end
77if and gt n 1 eq first 48
78invalid
79end
80ret v
81end
82if or lt c 48 gt c 57
83invalid
84end
85if eq n 0
86first = c
87end
88if or gt v 1844674407370955161 and eq v 1844674407370955161 gt c 53
89invalid
90end
91v = add mul v 10 ulong sub c 48
92n = add n 1
93if gt n 20
94invalid
95end
96end
97ret 0
98end
99fn parity id ulong to ulong
100ret and xor xor xor id shr id 1 shr id 2 shr id 3 1
101end
102fn mask phase ulong to ulong
103m = ulong 0
104for id ulong 16
105if or eq phase 0 eq parity id sub phase 1
106m = or m shl 1 id
107end
108end
109ret m
110end
111fn group si ulong phase ulong arm ulong mode ulong to ulong
112ret add mul add mul add mul si 3 phase 5 arm 3 mode
113end
114fn grade id ulong arm ulong idx ulong to void
115bit = shl 1 id
116if ne and get Seen idx bit 0
117invalid
118end
119put Seen idx or get Seen idx bit
120put Count idx add get Count idx 1
121status = ulong 0
122if ne arm 3
123for k ulong 3
124h = bitcast f64 get Row add k 6
125if not le fabs h 1.0f64
126status = 2
127end
128end
129end
130if ne get Row 20 status
131invalid
132end
133abst = ulong 0
134same = true
135if ne status 0
136abst = 1
137same = false
138end
139for j ulong 4
140score = bitcast f64 get Row add j 9
141pred = ulong 0
142if eq status 0
143if not and ge score 0.0f64 le score 1.0f64
144invalid
145end
146if ge score 0.5f64
147pred = 1
148end
149if lt fabs sub score 0.5f64 0.1f64
150abst = 1
151end
152else
153pred = 9
154end
155if ne pred get Row add j 13
156invalid
157end
158if ne pred and shr id j 1
159same = false
160end
161end
162if ne get Row 17 abst
163invalid
164end
165if ne abst 0
166same = false
167put Refuse idx add get Refuse idx 1
168end
169if same
170put Good idx add get Good idx 1
171end
172end
173fn row to void
174for j ulong 21
175d = long 44
176if eq j 20
177d = 10
178end
179put Row j value d
180end
181seed = get Row 0
182si = ulong 0
183if eq seed 29
184si = 1
185else
186if eq seed 43
187si = 2
188else
189if ne seed 17
190invalid
191end
192end
193end
194split = get Row 1
195arm = get Row 2
196id = get Row 3
197mode = get Row 4
198ctx = get Row 5
199if or gt split 1 or gt arm 4 or gt id 15 or gt mode 17 gt ctx 1
200invalid
201end
202note Only frozen precision arms and trained receiver context are scored here.
203if or ne ctx 1 gt mode 2
204ret
205end
206if and eq arm 3 ne mode 0
207invalid
208end
209phase = ulong 0
210if eq split 1
211phase = add parity id 1
212end
213idx = group si phase arm mode
214grade id arm idx
215end
216fn finish to void
217for si ulong 3
218for phase ulong 3
219for arm ulong 5
220for mode ulong 3
221if and eq arm 3 ne mode 0
222continue
223end
224idx = add mul add mul add mul si 3 phase 5 arm 3 mode
225if ne get Seen idx mask phase
226invalid
227end
228end
229end
230end
231end
232putout HEAD len HEAD
233for si ulong 3
234seed = ulong 17
235if eq si 1
236seed = 29
237else
238if eq si 2
239seed = 43
240end
241end
242for phase ulong 3
243for arm ulong 5
244for mode ulong 3
245if and eq arm 3 ne mode 0
246continue
247end
248idx = add mul add mul add mul si 3 phase 5 arm 3 mode
249putout TAG len TAG
250num seed
251sep
252num phase
253sep
254num arm
255sep
256num mode
257sep
258num get Count idx
259sep
260num get Good idx
261sep
262num get Refuse idx
263sep
264num sub sub get Count idx get Good idx get Refuse idx
265putout LF 1
266end
267end
268end
269end
270putout FIN len FIN
271end
272fn learnrun to int
273if ne argcnt 2
274invalid
275end
276path = new uchar 4096 0
277n = argread 1 path 0 len path
278if le n 0
279invalid
280end
281fd = fopen path 0 ulong n 524288 0
282if lt fd 0
283invalid
284end
285put Io 0 ulong fd
286while true
287c = next
288if eq c 82
289if ne next 44
290invalid
291end
292row
293else
294if or eq c 80 eq c 84
295note Parameter/timing records are not recovery evidence. Skip bounded metadata only.
296while true bound 256
297c = next
298if eq c 10
299break
300end
301if lt c 0
302invalid
303end
304end
305else
306if eq c 78
307for j ulong sub len ENDREC 1
308if ne next long get ENDREC add j 1
309invalid
310end
311end
312if ne next -1
313invalid
314end
315break
316else
317invalid
318end
319end
320end
321end
322z = fclose int fd
323if ne z 0
324invalid
325end
326finish
327ret 0
328end