notforu777's picture
TTS -> ASR round trip: results, per-clip rows, MP3 clips, tensor types, logs, scripts (part 6)
ba8139c verified
Raw History Blame Contribute Delete
914 Bytes
#!/bin/bash
# Single-stream speed of llama-tts on the box (nothing else running): one ~15 s English paragraph, 3 runs per
# rung x mmproj, the timings line of each. Ends with "BENCH DONE" in /root/bench.log.
exec >> /root/bench.log 2>&1
OUT=/root/out; T=/root/llama.cpp/build/bin/llama-tts
TXT="The old lighthouse keeper climbed the spiral stairs every evening. He lit the great lamp, wiped the salt from the windows, and wrote a short note in his logbook about the wind, the waves and the ships that passed in the night."
for mm in F32 F16; do
for r in BF16 Q8_0 AD-Q6_K AD-Q5_K_M AD-Q4_K_M AD-Q3_K_M; do
for s in 1 2 3; do
echo "== $r mm$mm s$s"
$T -m $OUT/ZONOS3-Mini-$r.gguf -mm $OUT/mmproj-ZONOS3-Mini-$mm.gguf -ngl 99 -p "$TXT" \
--tts-voice Imogen_en-British_F_1 -s $s --output /tmp/bench.wav 2>&1 | grep -E "timings|output audio|generated"
done
done
done
echo "BENCH DONE"