interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / om / gpu / q36 / install-spark.sh

76 lines · 2493 bytes Raw Blame History
1#!/bin/sh
2# Install the pure seeded-Omega Zero-CUDA Qwen 3.6 35B-A3B + Arboris package on DGX Spark.
3# Installs binaries into ~/.local/opt/q36/, launchers into ~/.local/bin/{q36-35b,q36-serve},
4# writes ~/.local/opt/q36/manifest.json, and wires ~/.config/systemd/user/motor-revival.service.
5set -eu
6
7repo_dir=${1:-.}
8opt_dir="$HOME/.local/opt/q36"
9bin_dir="$HOME/.local/bin"
10model_dir="${Q36_MODEL_DIR:-$HOME/models/qwen3.6-35b-a3b-fp8-95a723d0}"
11svc_dir="$HOME/.config/systemd/user"
12svc_file="$svc_dir/motor-revival.service"
13
14mkdir -p "$opt_dir" "$bin_dir"
15(cd "$repo_dir" && sh om/gpu/q36/build.sh "$opt_dir")
16
17sha_serve=$(sha256sum "$opt_dir/q36-serve" | awk '{print $1}')
18sha_decode=$(sha256sum "$opt_dir/q36-decode" | awk '{print $1}')
19sha_head=$(sha256sum "$opt_dir/q36-head" | awk '{print $1}')
20sha_native=$(sha256sum "$opt_dir/q36-native" | awk '{print $1}')
21commit_sha=$(git -C "$repo_dir" rev-parse HEAD 2>/dev/null || echo "unknown")
22
23cat > "$opt_dir/manifest.json" <<EOF
24{
25 "package": "q36-35b-omega-arboris",
26 "model": "qwen3.6-35b-a3b-fp8",
27 "context_window": 131072,
28 "default_precision": "w4",
29 "arboris_enabled": true,
30 "zero_cuda": true,
31 "commit": "$commit_sha",
32 "model_dir": "$model_dir",
33 "binaries": {
34 "q36-serve": "$sha_serve",
35 "q36-decode": "$sha_decode",
36 "q36-head": "$sha_head",
37 "q36-native": "$sha_native"
38 }
39}
40EOF
41
42cat > "$bin_dir/q36-35b" <<EOF
43#!/bin/sh
44# Pure seeded-Omega Zero-CUDA Qwen 3.6 35B-A3B + Live Arboris launcher (Full-W4 default, --fp8 optional).
45exec "$opt_dir/q36-serve" --model-dir "\${Q36_MODEL_DIR:-$model_dir}" "\$@"
46EOF
47chmod +x "$bin_dir/q36-35b"
48ln -sf "$opt_dir/q36-serve" "$bin_dir/q36-serve"
49ln -sf "$opt_dir/q36-decode" "$bin_dir/q36-decode"
50
51if [ -d "$svc_dir" ]; then
52 if [ -f "$svc_file" ] && [ ! -f "$svc_file.bak-pre-q36-omega" ]; then
53 cp "$svc_file" "$svc_file.bak-pre-q36-omega"
54 fi
55 cat > "$svc_file" <<EOF
56[Unit]
57Description=Qwen 3.6 35B-A3B Pure Seeded-Omega Zero-CUDA Server + Live Arboris (Full-W4 default)
58After=network.target
59
60[Service]
61Type=simple
62ExecStart=$opt_dir/q36-serve --model-dir $model_dir --port 18091
63Restart=on-failure
64RestartSec=3
65
66[Install]
67WantedBy=default.target
68EOF
69 systemctl --user daemon-reload 2>/dev/null || true
70fi
71
72echo "INSTALLED q36-35b-omega-arboris -> $opt_dir"
73echo " q36-serve : $sha_serve"
74echo " q36-decode: $sha_decode"
75echo " launcher : $bin_dir/q36-35b (Full-W4 default + Live Arboris, --fp8 optional)"
76echo " service : $svc_file (port 18091)"