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/evidence/ECOSYSTEM6/independent-review/mutant1.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 / evidence / ECOSYSTEM6 / independent-review / mutant1.om` 155 lines ยท 2739 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note Bounded host FP32 consumer. Uses external pinned L720 add32/mul32 and M20 emcheck. 3 note Eight independent tensors X,W,b,T,Y,dX,dW,db in 16-cell slots. 4 note Values are IEEE binary32 bits in ulong carriers, not integer fixed-point values. 5 note AD/AS are trusted local descriptor and allocator snapshots, not wire records. 6 global AD ulong 192 7 global AS ulong 64 8 global AP ulong 128 9 global AQ ulong 128 10 global AL ulong 1 11 12 fn afcount t ulong to ulong 13 if or eq t 2 eq t 7 14 ret 2 15 end 16 if or eq t 3 eq t 4 17 ret 4 18 end 19 ret 6 20 end 21 22 fn afget t ulong i ulong to ulong 23 ret get AP add mul t 16 i 24 end 25 26 fn afq t ulong i ulong to ulong 27 ret get AQ add mul t 16 i 28 end 29 30 fn afput t ulong i ulong v ulong to void 31 put AQ add mul t 16 i v 32 end 33 34 fn affinite x ulong to bool 35 if gt x `4294967295` 36 ret false 37 end 38 ret lt and x `2147483647` `2139095040` 39 end 40 41 fn afvalidate to int 42 for t ulong 8 43 for i ulong 24 44 put ED i get AD add mul t 24 i 45 end 46 for i ulong 8 47 put ES i get AS add mul t 8 i 48 end 49 status = emcheck 50 if ne status 0 51 ret status 52 end 53 note Contiguous owned local carriers only. This does not claim strided numeric kernels. 54 if or ne get ED 1 1 ne get ED 4 0 55 ret -20 56 end 57 if or ne get ED 5 add t 1 ne get ES 5 afcount t 58 ret -20 59 end 60 rank = ulong 2 61 rows = ulong 2 62 cols = ulong 3 63 if or eq t 1 eq t 6 64 rows = 3 65 cols = 2 66 end 67 if or eq t 3 eq t 4 68 cols = 2 69 end 70 if or eq t 2 eq t 7 71 rank = 1 72 cols = 1 73 end 74 note MUTANT omits the dimension admission checks 75 end 76 ret 0 77 end 78 79 fn afstep lr ulong to int 80 status = afvalidate 81 if ne status 0 82 ret status 83 end 84 if not affinite lr 85 ret -22 86 end 87 if ne and lr `2147483648` 0 88 ret -22 89 end 90 for t ulong 4 91 for i ulong afcount t 92 if not affinite afget t i 93 ret -22 94 end 95 end 96 end 97 for i ulong 128 98 put AQ i 0 99 end 100 loss = ulong 0 101 for row ulong 2 102 for col ulong 2 103 v = afget 2 col 104 for k ulong 3 105 x = afget 0 add mul row 3 k 106 w = afget 1 add mul k 2 col 107 v = add32 v mul32 x w 108 end 109 pos = add mul row 2 col 110 afput 4 pos v 111 r = add32 v xor afget 3 pos `2147483648` 112 loss = add32 loss mul32 r r 113 g = mul32 `1073741824` r 114 afput 7 col add32 afq 7 col g 115 for k ulong 3 116 xp = add mul row 3 k 117 wp = add mul k 2 col 118 gx = mul32 g afget 1 wp 119 gw = mul32 g afget 0 xp 120 afput 5 xp add32 afq 5 xp gx 121 afput 6 wp add32 afq 6 wp gw 122 end 123 end 124 end 125 note Commit only after all finite-result checks; rejected steps preserve AP and AL. 126 for i ulong 6 127 delta = mul32 lr afq 6 i 128 afput 1 i add32 afget 1 i xor delta `2147483648` 129 end 130 for i ulong 2 131 delta = mul32 lr afq 7 i 132 afput 2 i add32 afget 2 i xor delta `2147483648` 133 end 134 if not affinite loss 135 ret -23 136 end 137 for t ulong 8 138 if and ne t 0 ne t 3 139 for i ulong afcount t 140 if not affinite afq t i 141 ret -23 142 end 143 end 144 end 145 end 146 for t ulong 8 147 if and ne t 0 ne t 3 148 for i ulong afcount t 149 put AP add mul t 16 i afq t i 150 end 151 end 152 end 153 put AL 0 loss 154 ret 0 155 end