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
aien-train / tests / omegallm / build-weight-edit.sh
| 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" |