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/tests/omegallm/build-weight-edit.sh # 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 / tests / omegallm / build-weight-edit.sh` 14 lines ยท 705 bytes Raw Blame History 1 #!/bin/sh 2 # Build the bounded experimental checkpoint editor; no GPU code is added. 3 set -eu 4 here=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd) 5 : "${OUT:?set OUT to a private build directory}" 6 : "${OMC:?set OMC to the compiler pinned by build.sh}" 7 TARGET=aarch64 sh "$here/tests/omegallm/build.sh" 8 test "$(grep -c '^fn main to int$' "$OUT/ollm.om")" = 1 9 sed 's/^fn main to int$/fn oldmain to int/' "$OUT/ollm.om" > "$OUT/weight-edit-all.om" 10 cat "$here/tests/omegallm/weight-edit.om" >> "$OUT/weight-edit-all.om" 11 "$OMC" < "$OUT/weight-edit-all.om" > "$OUT/weight-edit.new" 12 chmod +x "$OUT/weight-edit.new" 13 mv "$OUT/weight-edit.new" "$OUT/weight-edit" 14 sha256sum "$OUT/weight-edit" "$OUT/weight-edit-all.om"