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/DISTRIBUTED7/independent/invalid-offset-fixture.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 / DISTRIBUTED7 / independent / invalid-offset-fixture.om` 98 lines ยท 1837 bytes Raw Blame History 1 note Independent bounded-sequence model for distributed admission source `ab17ed3`. 2 global RFail ulong 1 3 global RCount ulong 1 4 global RSeen ulong 3 5 text RGood "D7 independent sequence model PASS\n" 6 text RBad "D7 independent sequence model FAIL\n" 7 fn rcheck okay bool to void 8 put RCount 0 add get RCount 0 1 9 if not okay 10 put RFail 0 add get RFail 0 1 11 end 12 end 13 fn rsetup to void 14 for i ulong 8 15 put d7_state i 0 16 put ES i 0 17 end 18 for i ulong 24 19 put ED i 0 20 end 21 for i ulong 512 22 put d7_ids i 0 23 end 24 for i ulong 32 25 put d7_tens i uchar add i 1 26 end 27 for r ulong 3 28 put d7_ids add mul r 32 5 uchar add r 1 29 put d7_gens r add r 7 30 put RSeen r 0 31 end 32 put ED 0 1 33 put ED 1 1 34 put ED 2 0 35 put ED 3 1 36 put ED 4 1 37 put ED 6 99 38 put ES 0 1 39 put ES 3 99 40 put ES 4 1 41 put ES 5 1 42 rcheck eq d7_group 99 3 0 43 rcheck eq d7_begin 99 1 100 200 1 0 44 end 45 fn roffer rank ulong now ulong to int 46 for i ulong 32 47 put d7_peer i get d7_ids add mul rank 32 i 48 end 49 ret d7_offer rank 99 1 add rank 7 now 1 50 end 51 fn rtrial encoding ulong to void 52 rsetup 53 unique = ulong 0 54 for step ulong 4 55 rank = rem encoding 3 56 encoding = div encoding 3 57 want = int 0 58 if ne get RSeen rank 0 59 want = 8 60 else 61 unique = add unique 1 62 put RSeen rank 1 63 end 64 rcheck eq roffer rank add 101 step want 65 rcheck eq get d7_state 6 unique 66 end 67 if eq unique 3 68 rcheck eq d7_next 99 1 110 0 69 rcheck eq get d7_state 2 2 70 else 71 rcheck eq d7_next 99 1 110 12 72 rcheck eq get d7_state 2 1 73 end 74 end 75 fn main to int 76 for trial ulong 81 77 rtrial trial 78 end 79 rsetup 80 rcheck eq roffer 0 101 0 81 rcheck eq d7_next 99 1 100 11 82 rcheck eq get d7_state 6 1 83 rcheck eq d7_next 99 1 200 10 84 rcheck eq get d7_state 3 5 85 rcheck eq roffer 1 201 10 86 rcheck eq get d7_state 6 1 87 rsetup 88 rcheck eq roffer 0 101 0 89 rcheck eq d7_stop 99 1 0 90 rcheck eq roffer 1 102 13 91 rcheck eq get d7_state 6 1 92 if ne get RFail 0 0 93 w = write 1 RBad 0 len RBad 94 ret 1 95 end 96 w = write 1 RGood 0 len RGood 97 ret 0 98 end