Download tools/track_a_sweep.sh from RightNowAI/duplex-v0: direct link, hf CLI and curl.
- Browser
- Download file 914 Bytes
-
https://huggingface.co/RightNowAI/duplex-v0/resolve/main/tools/track_a_sweep.sh
- Command line
-
hf download hf://RightNowAI/duplex-v0/tools/track_a_sweep.sh
-
curl -L -o track_a_sweep.sh https://huggingface.co/RightNowAI/duplex-v0/resolve/main/tools/track_a_sweep.sh
914 Bytes
| # 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 | |