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/evidence/native-qualification-2/28.src # 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 / evidence / native-qualification-2 / 28.src` 302 lines ยท 4457 bytes Raw Blame History 1 om2 2 note NL6 continuation: independent strict parser, never reads producer summaries. 3 const JCAP ulong 16384 4 global JBuf uchar JCAP 5 global JIo ulong 2 6 global JC ulong 8 7 global JR ulong 50 8 global JP f64 83 9 global JH f64 4 10 global JU f64 8 11 global JS f64 4 12 global JB uchar 32 13 global Seen ulong 15 14 global Logs uchar 7680 15 global Sizes ulong 240 16 global Stats ulong 360 17 text JBAD "NL1RJ INVALID\n" 18 text JMAG "NL1RJ1,schema,unit,seed,trainmask,group,partition,total,exact,accepted_correct,wrong_accepted,abstained,feature_errors,collision_pairs,encode_ns,decode_ns\n" 19 text JREC "M," 20 text JSEP "," 21 text JLF "\n" 22 text JEND "NL1RJ END\n" 23 fn jout a view uchar * to void 24 p = ulong 0 25 while lt p len a 26 n = write 1 a p sub len a p 27 if le n 0 28 exit 93 29 end 30 p = add p ulong n 31 end 32 end 33 fn jinvalid to void 34 n = write 2 JBAD 0 len JBAD 35 exit 90 36 end 37 fn jnext to long 38 if eq get JIo 0 get JIo 1 39 n = read 0 JBuf 0 JCAP 40 if lt n 0 41 jinvalid 42 end 43 if eq n 0 44 ret -1 45 end 46 put JIo 0 0 47 put JIo 1 ulong n 48 end 49 p = get JIo 0 50 put JIo 0 add p 1 51 ret long get JBuf p 52 end 53 fn jexpect c long to void 54 if ne jnext c 55 jinvalid 56 end 57 end 58 fn jvalue delim long to ulong 59 v = ulong 0 60 n = ulong 0 61 first = long -1 62 while true bound 21 63 c = jnext 64 if eq c delim 65 if eq n 0 66 jinvalid 67 end 68 if and gt n 1 eq first 48 69 jinvalid 70 end 71 ret v 72 end 73 if or lt c 48 gt c 57 74 jinvalid 75 end 76 if eq n 0 77 first = c 78 end 79 if or gt v `1844674407370955161` and eq v `1844674407370955161` gt c 53 80 jinvalid 81 end 82 v = add mul v 10 ulong sub c 48 83 n = add n 1 84 end 85 ret 0 86 end 87 fn jnumber v ulong to void 88 b = new uchar 20 0 89 p = ulong 20 90 while true bound 20 91 p = sub p 1 92 put b p uchar add rem v 10 48 93 v = div v 10 94 if eq v 0 95 break 96 end 97 end 98 while lt p 20 bound 20 99 n = write 1 b p sub ulong 20 p 100 if le n 0 101 exit 93 102 end 103 p = add p ulong n 104 end 105 end 106 fn jfield v ulong to void 107 jnumber v 108 jout JSEP 109 end 110 fn jparity id ulong to ulong 111 ret and xor xor xor id shr id 1 shr id 2 shr id 3 1 112 end 113 fn jsoft x f64 to f64 114 ret div x add 1.0f64 fabs x 115 end 116 fn jrelu x f64 to f64 117 if gt x 0.0f64 118 ret x 119 end 120 ret 0.0f64 121 end 122 fn jstore k ulong v ulong to void 123 for b ulong 8 124 put JB add mul k 8 b uchar and shr v mul b 8 255 125 end 126 end 127 fn jload k ulong to ulong 128 v = ulong 0 129 for b ulong 8 130 v = or v shl get JR add 3 add mul k 8 b mul b 8 131 end 132 ret v 133 end 134 fn jstat group ulong phase ulong col ulong to ulong 135 ret add mul add mul group 3 phase 8 col 136 end 137 fn jinc group ulong phase ulong col ulong val ulong to void 138 ix = jstat group phase col 139 put Stats ix add get Stats ix val 140 end 141 note Standalone with io.om. Mode 0 packs C/P carrier; mode 1 checks actual binary then emits B/P. 142 note Full C/P/R/T campaign validation remains judge.om, not this conversion tool. 143 global BH ulong 8 144 global BV ulong 83 145 text BC "B," 146 text BP "P," 147 fn bread to ulong 148 v = ulong 0 149 for k ulong 8 150 c = jnext 151 if lt c 0 152 jinvalid 153 end 154 v = or v shl ulong c mul k 8 155 end 156 ret v 157 end 158 fn bwrite v ulong to void 159 for k ulong 8 160 put JB k uchar and shr v mul k 8 255 161 end 162 p = ulong 0 163 while lt p 8 164 n = write 1 JB p sub ulong 8 p 165 if le n 0 166 exit 93 167 end 168 p = add p ulong n 169 end 170 end 171 fn bvalid to void 172 if false 173 jinvalid 174 end 175 if ne get BH 7 0 176 jinvalid 177 end 178 arm = get BH 1 179 d = ulong 3 180 n = ulong 31 181 if eq arm 1 182 d = 4 183 n = 40 184 end 185 if eq arm 2 186 n = 83 187 end 188 if eq arm 3 189 d = 1 190 n = 0 191 end 192 if gt arm 3 193 jinvalid 194 end 195 if eq get BH 0 2 196 if gt arm 2 197 jinvalid 198 end 199 d = 4 200 n = 40 201 end 202 if or ne get BH 2 d ne get BH 3 n 203 jinvalid 204 end 205 if or eq get BH 4 0 gt get BH 4 `4294967295` 206 jinvalid 207 end 208 if or eq get BH 5 0 gt get BH 5 65535 209 jinvalid 210 end 211 if gt get BH 6 32000 212 jinvalid 213 end 214 end 215 fn bparams to void 216 for i ulong get BH 3 217 if not le fabs bitcast f64 get BV i `1000000`.0f64 218 jinvalid 219 end 220 end 221 end 222 fn bpack to void 223 jexpect 67 224 jexpect 44 225 for k ulong 8 226 delim = long 44 227 if eq k 7 228 delim = 10 229 end 230 put JC k jvalue delim 231 end 232 put BH 0 get JC 0 233 put BH 1 get JC 1 234 put BH 2 get JC 4 235 put BH 3 get JC 5 236 put BH 4 get JC 2 237 put BH 5 get JC 3 238 put BH 6 get JC 6 239 put BH 7 0 240 bvalid 241 for i ulong get BH 3 242 jexpect 80 243 jexpect 44 244 if ne jvalue 44 i 245 jinvalid 246 end 247 put BV i jvalue 10 248 end 249 bparams 250 for i ulong 8 251 bwrite get BH i 252 end 253 for i ulong get BH 3 254 bwrite get BV i 255 end 256 end 257 fn bunpack to void 258 for i ulong 8 259 put BH i bread 260 end 261 bvalid 262 for i ulong get BH 3 263 put BV i bread 264 end 265 if ne jnext -1 266 jinvalid 267 end 268 bparams 269 jout BC 270 for i ulong 8 271 jnumber get BH i 272 if lt i 7 273 jout JSEP 274 end 275 end 276 jout JLF 277 for i ulong get BH 3 278 jout BP 279 jfield i 280 jnumber get BV i 281 jout JLF 282 end 283 end 284 fn main to int 285 if ne argcnt 2 286 jinvalid 287 end 288 ab = new uchar 1 0 289 n = argread 1 ab 0 1 290 if ne n 1 291 jinvalid 292 end 293 if eq get ab 0 48 294 bpack 295 else 296 if ne get ab 0 49 297 jinvalid 298 end 299 bunpack 300 end 301 ret 0 302 end