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/omegese45/translate/goal2en.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 / omegese45 / translate / goal2en.om` 60 lines ยท 1326 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note goal2en: R45 goal line G -> one fixed-template English review sentence 3 note that states every operand. G is validated by the contract lane's 4 note ocsetgl (msg.om); an invalid G prints `G2E_INVALID goal ` and 5 note returns 31. Needs otio.om, vocab.om, msg.om, otmsg.om before it and 6 note otfrag.om after it. Templates are documented in TRANSLATOR.md. 7 text otfr "Goal for review: one matmul_u32 job multiplying a | by | matrix by a | matrix with seed |.\n|Goal for review: two matmul_u32 jobs, each multiplying a | matrix, with seeds | and | in that order.\n|G2E_INVALID goal |usage: goal2en < goal\n" 8 9 note "a {m} by {k} matrix by a {k} by {n}" after fragment 0 or 5. 10 fn otgdims m ulong k ulong n ulong to void 11 otpdec m 12 otpfr 1 13 otpdec k 14 otpfr 2 15 otpdec k 16 otpfr 1 17 otpdec n 18 end 19 20 note goal2en on otin[0..n): fills otob, returns 0 or 31. 21 fn otgoalen n ulong to int 22 if gt n 0 23 if eq get otin sub n 1 10 24 n = sub n 1 25 end 26 end 27 ok = otcopy 0 n 28 if not ok 29 otpfr 9 30 otprs neg long 10 31 otpb 10 32 ret 31 33 end 34 v = ocsetgl n 35 if lt v 0 36 otpfr 9 37 otprs v 38 otpb 10 39 ret 31 40 end 41 m = get ocgv 1 42 k = get ocgv 2 43 nn = get ocgv 3 44 if eq get ocgv 0 7 45 otpfr 5 46 otgdims m k nn 47 otpfr 6 48 otpdec get ocgv 4 49 otpfr 7 50 otpdec get ocgv 5 51 otpfr 8 52 ret 0 53 end 54 otpfr 0 55 otgdims m k nn 56 otpfr 3 57 otpdec get ocgv 4 58 otpfr 4 59 ret 0 60 end