File size: 914 Bytes
f730521 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env bash
# Track A, second run: the same load test with a smaller first audio chunk.
# The released recipe waits for 25 audio tokens (plus look-ahead) before it decodes anything.
cd /data/train/duplex && . /data/train/venv/bin/activate
export OMP_NUM_THREADS=8
for fc in ${FCS:-25 12 6}; do
tmux kill-session -t server 2>/dev/null; sleep 2
tmux new-session -d -s server "FIRST_CHUNK=$fc bash tools/server_run.sh > /data/train/logs/server_fc$fc.log 2>&1"
for i in $(seq 1 60); do ss -ltn 2>/dev/null | grep -q ":8765 " && break; sleep 2; done
python -u -m serving.loadtest --url http://127.0.0.1:8765/ws --wav-dir eval/data/bba --out eval/results/loadtest_fc$fc \
--levels "${LEVELS:-1,2,4,8}" --turns 3 --save-audio eval/results/loadtest_fc$fc/audio > /data/train/logs/loadtest_fc$fc.log 2>&1
done
tmux kill-session -t server 2>/dev/null
date -u +%FT%TZ > runs/track_a_sweep_end
|