-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_closed.sh
More file actions
executable file
·42 lines (33 loc) · 949 Bytes
/
launch_closed.sh
File metadata and controls
executable file
·42 lines (33 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# Launch local services required for the Gemini 3 Pro (closed) configuration.
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
LOG_DIR="$ROOT_DIR/logs/closed_config_$(date +%Y%m%d_%H%M%S)"
mkdir -p "$LOG_DIR"
export VLLM_DISABLE_USAGE_STATS=1
export VLLM_DO_NOT_TRACK=1
pids=()
start_service() {
local name="$1"
shift
echo "[closed-config] starting $name"
"$@" >>"$LOG_DIR/${name}.log" 2>&1 &
local pid=$!
pids+=("$pid")
echo "[closed-config] $name PID=$pid"
}
cd "$ROOT_DIR"
start_service qwen2_5omni python vllm_models/qwen2_5omni_server.py
sleep 5
start_service audioflamingo uvicorn af3.app:app --host 0.0.0.0 --port 4010
cleanup() {
echo "[closed-config] shutting down services"
for pid in "${pids[@]}"; do
if kill -0 "$pid" 2>/dev/null; then
kill "$pid" || true
fi
done
}
trap cleanup EXIT
echo "[closed-config] services running. Logs: $LOG_DIR"
wait