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/neuralese/nl1r/main.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 / neuralese / nl1r / main.om` 141 lines ยท 1863 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 fn chead to void 3 z = write 1 CT 0 len CT 4 if ne z long len CT 5 exit 80 6 end 7 field get NSH 0 8 field get CFG 0 9 field get CFG 1 10 field get NSH 1 11 field get NSH 2 12 field get NSH 3 13 outnum get CFG 2 14 newline 15 for i ulong get NSH 2 16 z = write 1 PT 0 len PT 17 if ne z long len PT 18 exit 80 19 end 20 field i 21 outnum bitcast ulong get NP i 22 newline 23 end 24 end 25 fn row id ulong q ulong enc long dec long rc int to void 26 z = write 1 RT 0 len RT 27 if ne z long len RT 28 exit 80 29 end 30 field id 31 field q 32 field wirelen 33 for i ulong 32 34 field ulong get WB i 35 end 36 for j ulong 4 37 field bitcast ulong get NO j 38 end 39 abst = ulong 0 40 for j ulong 4 41 p = ulong 0 42 if ge get NO j 0.5f64 43 p = 1 44 end 45 field p 46 if lt fabs sub get NO j 0.5f64 0.1f64 47 abst = 1 48 end 49 end 50 field abst 51 field ulong enc 52 field ulong dec 53 outnum ulong rc 54 newline 55 end 56 fn cases to int 57 for id ulong 16 58 for q ulong 6 59 start = monons 60 put CFG 3 id 61 ninput id id 62 if ne get NSH 0 3 63 if eq get CFG 2 2 64 codeenc 65 else 66 nsend 67 end 68 end 69 npack 70 npert q 71 mid = monons 72 rc = ndecode 1 get NSH 1 wirelen get CFG 2 73 finish = monons 74 if ne rc 0 75 ret rc 76 end 77 row id q sub mid start sub finish mid rc 78 end 79 end 80 ret 0 81 end 82 fn main to int 83 if not or eq argcnt 4 eq argcnt 5 84 ret 90 85 end 86 arm = argnum 1 87 seed = argnum 2 88 mask = argnum 3 89 mode = ulong 0 90 if eq argcnt 5 91 mode = argnum 4 92 end 93 if or or gt seed `4294967295` eq seed 0 or eq mask 0 gt mask 65535 94 ret 90 95 end 96 if gt mode 5 97 ret 90 98 end 99 rc = nshape arm 100 if ne rc 0 101 ret 90 102 end 103 put CFG 0 seed 104 put CFG 1 mask 105 put CFG 2 mode 106 start = monons 107 if eq mode 4 108 ret controls 109 end 110 if eq mode 5 111 rc = nload 112 else 113 if eq mode 0 114 ninit seed 115 rc = ntrain mask 116 else 117 rc = nconstruct mode 118 end 119 end 120 if ne rc 0 121 ret rc 122 end 123 chead 124 rc = cases 125 if ne rc 0 126 ret rc 127 end 128 finish = monons 129 z = write 1 TT 0 len TT 130 if ne z long len TT 131 ret 80 132 end 133 field ulong start 134 outnum ulong finish 135 newline 136 z = write 1 DONE 0 len DONE 137 if ne z long len DONE 138 ret 80 139 end 140 ret 0 141 end