-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_open.sh
More file actions
executable file
·43 lines (34 loc) · 976 Bytes
/
launch_open.sh
File metadata and controls
executable file
·43 lines (34 loc) · 976 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
43
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
LOG_DIR="$ROOT_DIR/logs/open_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 "[open-config] starting $name"
"$@" >>"$LOG_DIR/${name}.log" 2>&1 &
local pid=$!
pids+=("$pid")
echo "[open-config] $name PID=$pid"
}
cd "$ROOT_DIR"
start_service qwen2_5omni python vllm_models/qwen2_5omni_server.py
sleep 5
start_service qwen3_instruct uvicorn audiotoolagent.apis.qwen3_instruct_api:app --host 0.0.0.0 --port 4014
sleep 5
start_service audioflamingo uvicorn af3.app:app --host 0.0.0.0 --port 4010
cleanup() {
echo "[open-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 "[open-config] services running. Logs: $LOG_DIR"
wait