aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / om / qwen-native / linear / build.sh
| 1 | #!/bin/sh |
| 2 | # Build tool only. OUT receives the linkable concatenated Omega unit and executable. |
| 3 | set -eu |
| 4 | cd "$(dirname "$0")" |
| 5 | : "${OUT:?set OUT to a build directory}" |
| 6 | mkdir -p "$OUT" |
| 7 | store=${IPL_STORE:-$HOME/interplane-store-owner}/projects |
| 8 | omega=c4bf9d002f7dc4aec66b2b719804d71316177ee4 |
| 9 | train=1739217e7c91f8d512a00d3eddb6f3f6e4f154c3 |
| 10 | git --git-dir="$store/omega-mv/repo.git" show "$omega:seed/out/omc" > "$OUT/omc" |
| 11 | chmod 700 "$OUT/omc" |
| 12 | echo "34d611ca0415eab1728d3234911d90e74af17ba9ab0c581d559f48274d7ca6d3 $OUT/omc" | sha256sum -c - |
| 13 | unit() { git --git-dir="$store/aien-train/repo.git" show "$train:native/omegallm/gpu/$1.om"; } |
| 14 | for f in context vector launch gk gr; do unit "$f" > "$OUT/$f.om"; done |
| 15 | { |
| 16 | echo om2 |
| 17 | cat "$OUT/context.om" "$OUT/vector.om" "$OUT/launch.om" |
| 18 | sed -n '1,/^fn gkopnd /{ /^fn gkopnd /!p; }; /^fn gkqq /,/^global gkbat /{ /^global gkbat /!p; }' "$OUT/gk.om" |
| 19 | sed -n '/^fn grshfl /,/^end$/p; /^fn grfadd /,/^end$/p' "$OUT/gr.om" |
| 20 | cat linear.om |
| 21 | } > "$OUT/library.om" |
| 22 | cat "$OUT/library.om" standalone.om > "$OUT/standalone.om" |
| 23 | "$OUT/omc" < "$OUT/standalone.om" > "$OUT/linear" |
| 24 | chmod 700 "$OUT/linear" |