Dawn9705's picture
Add files using upload-large-folder tool
b7bd2da verified
Raw History Blame Contribute Delete
910 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SESSION="${TMUX_SESSION:-work}"
tmux has-session -t "${SESSION}" 2>/dev/null || {
echo "tmux session 不存在:${SESSION}" >&2
exit 1
}
launch() {
local window="$1" model="$2"
if tmux list-windows -t "${SESSION}" -F '#{window_name}' | grep -Fxq "${window}"; then
echo "tmux window 已存在:${SESSION}:${window}" >&2
return 1
fi
tmux new-window -d -t "${SESSION}" -n "${window}" \
"bash -lc 'cd \"${ROOT_DIR}\" && exec bash common/run_lane.sh \"${model}\"'"
echo "已启动:${SESSION}:${window} -> ${model}"
}
# 大权重先启动;相邻 lane 错开,降低共享存储瞬时读取压力。
launch npu_ref_q35 qwen35_n128_188b_i119210
sleep 30
launch npu_ref_q8 qwen3_8b_base
sleep 30
launch npu_ref_q06 qwen3_0p6b_base
echo "三条 lane 已全部交给 tmux ${SESSION}。"