interplane.Get Omega
Read in your language

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

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.
3set -eu
4here=$(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}"
7TARGET=aarch64 sh "$here/tests/omegallm/build.sh"
8test "$(grep -c '^fn main to int$' "$OUT/ollm.om")" = 1
9sed 's/^fn main to int$/fn oldmain to int/' "$OUT/ollm.om" > "$OUT/weight-edit-all.om"
10cat "$here/tests/omegallm/weight-edit.om" >> "$OUT/weight-edit-all.om"
11"$OMC" < "$OUT/weight-edit-all.om" > "$OUT/weight-edit.new"
12chmod +x "$OUT/weight-edit.new"
13mv "$OUT/weight-edit.new" "$OUT/weight-edit"
14sha256sum "$OUT/weight-edit" "$OUT/weight-edit-all.om"