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/aien-train/blob/main/native/si19/omexpfix.om # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. 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 `aien-train / native / si19 / omexpfix.om` 217 lines ยท 4344 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note aien-train#24 ORIG-1 FIXTURE: a seeded, resettable SYNTHETIC omexp-v1 record file for 3 note tests and fixture runs. Costs come from a planted rule (which arm wins depends on core 4 note class and N together) plus bounded noise; no model, teacher or measurement produces 5 note them. Fixture evidence is never mixed with real-record evidence. 6 note SG is not used here; the generator state is SXR. Families: 0 TRAIN grid, 1 DEV grid, 7 note 2 H1 (prime shapes absent from both grids), 3 H2 (prime M, thin N), 4 H3 = H1 shapes 8 note with pressure 1. Cores alternate 0 and 1. 9 global SXR ulong 2 10 global SXM ulong 13 11 global SXN ulong 13 12 global SXV ulong 7 13 global SXW ulong 7 14 global SXP ulong 22 15 16 fn sxrand to ulong 17 x = get SXR 0 18 x = rem add mul x `1664525` `1013904223` `4294967296` 19 put SXR 0 x 20 ret shr x 8 21 end 22 23 fn sxput pos ulong v ulong to void 24 for i ulong 8 25 put RB add pos i uchar and shr v mul i 8 255 26 end 27 end 28 29 fn sxtable to void 30 note The consumer's grids and the primes used for the held-out families. 31 put SXM 0 1 32 put SXM 1 4 33 put SXM 2 16 34 put SXM 3 64 35 put SXM 4 256 36 put SXM 5 1024 37 put SXN 0 1 38 put SXN 1 2 39 put SXN 2 3 40 put SXN 3 5 41 put SXN 4 8 42 put SXN 5 12 43 put SXN 6 16 44 put SXN 7 33 45 put SXN 8 64 46 put SXN 9 100 47 put SXN 10 256 48 put SXN 11 512 49 put SXN 12 1024 50 put SXV 0 2 51 put SXV 1 8 52 put SXV 2 32 53 put SXV 3 128 54 put SXV 4 512 55 put SXW 0 4 56 put SXW 1 6 57 put SXW 2 10 58 put SXW 3 24 59 put SXW 4 48 60 put SXW 5 200 61 put SXW 6 700 62 put SXP 0 7 63 put SXP 1 11 64 put SXP 2 13 65 put SXP 3 17 66 put SXP 4 19 67 put SXP 5 23 68 put SXP 6 29 69 put SXP 7 31 70 put SXP 8 37 71 put SXP 9 41 72 put SXP 10 43 73 put SXP 11 47 74 put SXP 12 53 75 put SXP 13 59 76 put SXP 14 61 77 put SXP 15 67 78 put SXP 16 71 79 put SXP 17 73 80 put SXP 18 79 81 put SXP 19 83 82 put SXP 20 89 83 put SXP 21 97 84 end 85 86 fn sxpct base ulong pct ulong to ulong 87 ret div mul base pct 100 88 end 89 90 fn sxcost core ulong n ulong a ulong base ulong to ulong 91 note Planted cost of arm a: the winner depends on core and N together. 92 if eq a 1 93 ret sxpct base 150 94 end 95 if eq a 2 96 if le n 8 97 ret sxpct base 70 98 end 99 ret sxpct base 130 100 end 101 if eq a 3 102 if eq core 1 103 ret sxpct base 160 104 end 105 if ge n 64 106 ret sxpct base 90 107 end 108 ret sxpct base 120 109 end 110 if eq a 4 111 if and eq core 0 ge n 4 112 ret sxpct base 60 113 end 114 if le n 3 115 ret sxpct base 140 116 end 117 ret sxpct base 105 118 end 119 ret base 120 end 121 122 fn sxshape fam ulong k ulong to void 123 note Shape of the k-th record of a family into SXR[1] (M) and the return path via SXV[5], SXV[6]. 124 if eq fam 0 125 put SXV 5 get SXM rem k 6 126 put SXV 6 get SXN rem div k 6 13 127 end 128 if eq fam 1 129 put SXV 5 get SXV rem k 5 130 put SXV 6 get SXW rem div k 5 7 131 end 132 if or eq fam 2 eq fam 4 133 put SXV 5 get SXP rem k 22 134 put SXV 6 get SXP rem add mul k 7 3 22 135 end 136 if eq fam 3 137 put SXV 5 get SXP rem mul k 5 22 138 put SXV 6 add 1 rem k 7 139 end 140 end 141 142 fn sxnoise c ulong to ulong 143 ret add c div mul c rem sxrand 11 100 144 end 145 146 fn sxarms p ulong core ulong n ulong base ulong to void 147 for a ulong 5 148 c = sxnoise sxcost core n a base 149 sxput add p mul 8 add 16 a c 150 sxput add p mul 8 add 24 a 1 151 end 152 end 153 154 fn sxbase m ulong n ulong pr ulong core ulong to ulong 155 base = add 1000 mul 37 add add mul m n m n 156 if eq pr 1 157 if gt mul add add mul m n m n 8 oxcache core 158 base = mul base 2 159 end 160 end 161 ret base 162 end 163 164 fn sxhead r ulong fam ulong core ulong to void 165 p = mul r 256 166 sxput p `3553143591248351811` 167 sxput add p 8 1 168 sxput add p 16 fam 169 sxput add p 24 core 170 pr = ulong 0 171 if eq fam 4 172 pr = 1 173 end 174 sxput add p 32 pr 175 sxput add p 80 oxcache core 176 sxput add p 88 40 177 sxput add p 96 31 178 sxput add p 104 6 179 sxput add p 112 r 180 sxput add p 120 mul r `1000003` 181 sxput add p 240 add `11630680811171433263` r 182 sxput add p 248 0 183 sxput add p 168 0 184 sxput add p 176 0 185 sxput add p 184 0 186 sxput add p 232 0 187 end 188 189 fn sxrecord r ulong fam ulong core ulong to void 190 note Writes record r of the given family and core class into RB. 191 sxshape fam div r 10 192 m = get SXV 5 193 n = get SXV 6 194 p = mul r 256 195 sxhead r fam core 196 sxput add p 40 m 197 sxput add p 48 n 198 sxput add p 56 add 3 div 600000 add mul m n 64 199 sxput add p 64 add 77 r 200 sxput add p 72 mul add add mul m n m n 8 201 pr = ulong 0 202 if eq fam 4 203 pr = 1 204 end 205 sxarms p core n sxbase m n pr core 206 end 207 208 fn sxgen seed ulong nrec ulong to ulong 209 note nrec SYNTHETIC records into RB; returns the byte count. Record r: family r rem 5 cycles 210 note through the families, core alternates with r/5, shape index r/10. 211 sxtable 212 put SXR 0 seed 213 for r ulong nrec 214 sxrecord r rem r 5 rem div r 5 2 215 end 216 ret mul nrec 256 217 end