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-sovereign-core-mv/blob/main/om/qwen-native/tokenizer/check-table-origin.sh # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / om / qwen-native / tokenizer / check-table-origin.sh` 31 lines ยท 1803 bytes Raw Blame History 1 #!/usr/bin/env bash 2 set -eu -o pipefail 3 cd "$(dirname "$0")" 4 omc=${OMC:-../../../../../evaluator/pins/omc} 5 registry=${CARGO_REGISTRY_SRC:-$HOME/.cargo/registry/src/index.crates.io-`1949cf8c6b5b557f`} 6 props=$registry/onig_sys-69.9.3/oniguruma/src/unicode_property_data.c 7 norm=$registry/unicode-normalization-alignments-0.1.12/src/tables.rs 8 check() { printf '%s %s\n' "$1" "$2" | sha256sum -c >&2; } 9 check `34d611ca0415eab1728d3234911d90e74af17ba9ab0c581d559f48274d7ca6d3` "$omc" 10 build=$(mktemp -d .build.XXXXXXXX) 11 trap 'rm -rf "$build"' EXIT 12 cp "$props" "$build/property-data" 13 cp "$norm" "$build/normalization-data" 14 check `6f69e9852bf746acfc3847c9789225d4ba1f085f1852ca00fcab7fa912982f52` "$build/property-data" 15 check `83736e2488e7f5e513317e035dfd476611248227efe0a456fddb8a641fe9ade6` "$build/normalization-data" 16 tokdir=${OMEGA_TOK_UNITS:-../../../../../teacher/src/native/omegallm/tok} 17 check `a9475e559d9ddb1468e26aa3e8553d140cddd646b670fcc045c675949db6b04b` "$tokdir/tkio.om" 18 check `247d175c3ccf746cd82797f165e17cd3d524649519ecc054b4ebc4a0c329438d` "$tokdir/tkcli.om" 19 # Extract the unchanged stdout and decimal routines, excluding the OLLMTOK1 CLI. 20 { 21 head -1 "$tokdir/tkio.om" 22 sed -n '/^global tkso /p; /^global tksn /p; /^fn tkpfl /,/^note size in bytes/{ /^note size in bytes/!p; }' "$tokdir/tkio.om" 23 sed -n '/^global tcdg /p; /^fn tcpu /,/^note a space/{ /^note a space/!p; }' "$tokdir/tkcli.om" 24 } > "$build/tokio.om" 25 { echo om2; cat "$build/tokio.om" tables.om; } > "$build/transcribe.om" 26 "$omc" < "$build/transcribe.om" > "$build/transcribe" 27 chmod +x "$build/transcribe" 28 cat "$build/property-data" "$build/normalization-data" | "$build/transcribe" > "$build/unicode-data.om" 29 (cd "$build"; sha256sum unicode-data.om) >&2 30 cmp "$build/unicode-data.om" unicode-data.om 31 cmp "$build/tokio.om" tokio.om