Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/benchmarks-mv/blob/main/native/neuralese/nl1r/judge.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / native / neuralese / nl1r / judge.om` 357 lines ยท 5049 bytes Raw Blame History 1 note Native judge validates full input before publishing any metrics. 2 fn jheader to void 3 jexpect 67 4 jexpect 44 5 for i ulong 8 6 delim = long 44 7 if eq i 7 8 delim = 10 9 end 10 put JC i jvalue delim 11 end 12 schema = get JC 0 13 unit = get JC 1 14 if and ne schema 1 ne schema 2 15 jinvalid 16 end 17 if or eq get JC 2 0 gt get JC 2 `4294967295` 18 jinvalid 19 end 20 if or eq get JC 3 0 gt get JC 3 65535 21 jinvalid 22 end 23 d = ulong 4 24 n = ulong 40 25 if eq schema 1 26 if gt unit 3 27 jinvalid 28 end 29 if eq unit 0 30 d = 3 31 n = 31 32 end 33 if eq unit 2 34 d = 3 35 n = 83 36 end 37 if eq unit 3 38 d = 1 39 n = 0 40 end 41 else 42 if or gt unit 2 ne get JC 7 0 43 jinvalid 44 end 45 end 46 if or ne get JC 4 d ne get JC 5 n 47 jinvalid 48 end 49 mode = get JC 7 50 if or gt mode 5 eq mode 4 51 jinvalid 52 end 53 if and eq mode 1 ne unit 1 54 jinvalid 55 end 56 if and or eq mode 2 eq mode 3 ne unit 2 57 jinvalid 58 end 59 count = ulong 0 60 for id ulong 16 61 count = add count and shr get JC 3 id 1 62 end 63 updates = mul count 2000 64 if or ne mode 0 and eq schema 1 eq unit 3 65 updates = 0 66 end 67 if eq mode 5 68 if gt get JC 6 32000 69 jinvalid 70 end 71 else 72 if ne get JC 6 updates 73 jinvalid 74 end 75 end 76 for i ulong n 77 jexpect 80 78 jexpect 44 79 if ne jvalue 44 i 80 jinvalid 81 end 82 v = bitcast f64 jvalue 10 83 if not le fabs v `1000000`.0f64 84 jinvalid 85 end 86 put JP i v 87 end 88 end 89 fn jparse_row to ulong 90 jexpect 82 91 jexpect 44 92 put JR 0 jvalue 44 93 if eq get JC 0 2 94 put JR 49 jvalue 44 95 end 96 for i ulong 46 97 ix = add i 1 98 delim = long 44 99 if and eq ix 46 eq get JC 0 1 100 delim = 10 101 end 102 put JR ix jvalue delim 103 end 104 if eq get JC 0 2 105 put JR 47 jvalue 44 106 put JR 48 jvalue 10 107 end 108 id = get JR 0 109 if gt id 15 110 jinvalid 111 end 112 group = get JR 1 113 if eq get JC 0 1 114 if gt group 5 115 jinvalid 116 end 117 else 118 if or gt group 2 gt get JR 49 4 119 jinvalid 120 end 121 group = add mul get JR 49 3 group 122 context = ulong 0 123 if eq get JC 1 2 124 context = and id 3 125 end 126 if or ne get JR 47 context ne get JR 48 0 127 jinvalid 128 end 129 end 130 bit = shl ulong 1 id 131 if ne and get Seen group bit 0 132 jinvalid 133 end 134 put Seen group or get Seen group bit 135 for i ulong 32 136 if gt get JR add i 3 255 137 jinvalid 138 end 139 end 140 ret group 141 end 142 fn jwirecheck to void 143 n = mul get JC 4 8 144 if eq get JC 0 1 145 if eq get JC 1 3 146 n = 1 147 end 148 jcapacitywire 149 else 150 n = 1 151 if eq get JR 49 4 152 n = 4 153 end 154 if or eq get JR 1 2 eq get JR 49 3 155 n = 0 156 end 157 jtaskwire 158 end 159 if ne get JR 2 n 160 jinvalid 161 end 162 for b ulong 32 163 if ne get JR add b 3 ulong get JB b 164 jinvalid 165 end 166 end 167 end 168 fn jactive j ulong to bool 169 if eq get JC 0 1 170 ret true 171 end 172 if eq get JC 1 1 173 ret eq j 0 174 end 175 if eq get JC 1 2 176 ret ge j 2 177 end 178 ret true 179 end 180 fn jtarget to ulong 181 id = get JR 0 182 if and eq get JC 0 2 eq get JC 1 1 183 ret jparity id 184 end 185 ret id 186 end 187 fn jgrade group ulong to void 188 status = ulong 0 189 if and eq get JC 0 2 eq get JR 1 2 190 status = 2 191 end 192 if ne get JR 46 status 193 jinvalid 194 end 195 if eq get JC 0 1 196 jcapacitydecode 197 else 198 jtaskdecode 199 end 200 exact = ulong 1 201 abst = ulong 0 202 errors = ulong 0 203 if ne status 0 204 abst = 1 205 exact = 0 206 end 207 for j ulong 4 208 score = bitcast f64 get JR add j 35 209 if not le fabs sub score get JS j 0.`000000000001f64` 210 jinvalid 211 end 212 pred = ulong 0 213 if and eq status 0 ge get JS j 0.5f64 214 pred = 1 215 end 216 if ne get JR add j 39 pred 217 jinvalid 218 end 219 if jactive j 220 if eq status 0 221 if lt fabs sub get JS j 0.5f64 0.1f64 222 abst = 1 223 end 224 end 225 if ne pred and shr jtarget j 1 226 exact = 0 227 errors = add errors 1 228 end 229 end 230 end 231 if ne get JR 43 abst 232 jinvalid 233 end 234 for phase ulong 3 235 belongs = true 236 train = ne and shr get JC 3 get JR 0 1 0 237 if eq phase 1 238 belongs = train 239 end 240 if eq phase 2 241 belongs = not train 242 end 243 if belongs 244 jinc group phase 0 1 245 jinc group phase 1 exact 246 if eq abst 0 247 if eq exact 1 248 jinc group phase 2 1 249 else 250 jinc group phase 3 1 251 end 252 end 253 jinc group phase 4 abst 254 jinc group phase 5 errors 255 jinc group phase 6 get JR 44 256 jinc group phase 7 get JR 45 257 end 258 end 259 row = add mul group 16 get JR 0 260 put Sizes row get JR 2 261 for b ulong 32 262 put Logs add mul row 32 b uchar get JR add b 3 263 end 264 end 265 fn jmember id ulong phase ulong to bool 266 if eq phase 0 267 ret true 268 end 269 train = ne and shr get JC 3 id 1 0 270 if eq phase 1 271 ret train 272 end 273 ret not train 274 end 275 fn jpayseq ai ulong bi ulong to bool 276 if ne get Sizes ai get Sizes bi 277 ret false 278 end 279 for k ulong 32 280 if ne get Logs add mul ai 32 k get Logs add mul bi 32 k 281 ret false 282 end 283 end 284 ret true 285 end 286 fn jcollisions group ulong phase ulong to ulong 287 n = ulong 0 288 for a ulong 16 289 for b ulong 16 290 if and lt a b and jmember a phase jmember b phase 291 ai = add mul group 16 a 292 bi = add mul group 16 b 293 if jpayseq ai bi 294 n = add n 1 295 end 296 end 297 end 298 end 299 ret n 300 end 301 fn jreport groups ulong to void 302 jout JMAG 303 for group ulong groups 304 for phase ulong 3 305 jout JREC 306 for i ulong 4 307 jfield get JC i 308 end 309 jfield group 310 jfield phase 311 for i ulong 6 312 jfield get Stats jstat group phase i 313 end 314 jfield jcollisions group phase 315 jfield get Stats jstat group phase 6 316 jnumber get Stats jstat group phase 7 317 jout JLF 318 end 319 end 320 jout JEND 321 end 322 fn main to int 323 if ne argcnt 1 324 jinvalid 325 end 326 jheader 327 groups = ulong 6 328 if eq get JC 0 2 329 groups = 15 330 end 331 for i ulong mul groups 16 332 group = jparse_row 333 jwirecheck 334 jgrade group 335 end 336 for group ulong groups 337 if ne get Seen group 65535 338 jinvalid 339 end 340 end 341 jexpect 84 342 jexpect 44 343 start = jvalue 44 344 finish = jvalue 10 345 if or eq start 0 lt finish start 346 jinvalid 347 end 348 jexpect 69 349 jexpect 78 350 jexpect 68 351 jexpect 10 352 if ne jnext -1 353 jinvalid 354 end 355 jreport groups 356 ret 0 357 end