Quantize-to-fit results: tiny.en ASR 3.11s pass; piper int8 rejected (3-4x slower), artifact archived
Browse files- docs/LATENCY.md +16 -6
docs/LATENCY.md
CHANGED
|
@@ -2,15 +2,16 @@
|
|
| 2 |
|
| 3 |
## MEASURED β MVP slice, 2026-10-04, cpu-upgrade (8 vCPU cgroup quota, CPU-only)
|
| 4 |
|
| 5 |
-
End-to-end run `ml-intern-freestream-e2e-wincondition` (final: job `
|
|
|
|
| 6 |
livekit-server v1.13.7 dev mode in-container, bot joined via the real CLI,
|
| 7 |
test client asked a spoken question, timings measured at the receiving client.
|
| 8 |
|
| 9 |
| Metric | Measured | Target | Verdict |
|
| 10 |
|---|---|---|---|
|
| 11 |
-
| **t_perceived** (speech-end β first bot audio at client) | **3.
|
| 12 |
| t_ready (CLI join β bot ready, incl. model + disclosure warmup) | 14.6s | β | β |
|
| 13 |
-
| ASR finalize (whisper tiny int8,
|
| 14 |
| TTS first-audio path (cached consent disclosure) | ~0.2s (pre-roll + transport) | β | PASS |
|
| 15 |
| Full turn (speech-end β answer finished) | 18.9s (14.9s of audio) | β | pipelined |
|
| 16 |
| Piper in-context RTF (later sentences) | ~0.8β1.2 | <1.0 | borderline |
|
|
@@ -33,9 +34,18 @@ Findings from the measurement campaign:
|
|
| 33 |
while sentence 1 plays, mitigation #2) keeps the turn flowing: 14.9s of
|
| 34 |
audio completed in 18.9s wall clock. Fixing the contention is the next
|
| 35 |
performance item.
|
| 36 |
-
4. **whisper tiny vs base accuracy**: base transcribed the bot name
|
| 37 |
-
"Streamy" correctly; tiny heard "Streami"/"streaming". The latency
|
| 38 |
-
uses tiny
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
The tables below are the original design targets, kept for reference.
|
| 41 |
|
|
|
|
| 2 |
|
| 3 |
## MEASURED β MVP slice, 2026-10-04, cpu-upgrade (8 vCPU cgroup quota, CPU-only)
|
| 4 |
|
| 5 |
+
End-to-end run `ml-intern-freestream-e2e-wincondition` (final: job `6ac2e372404719ba3765176e`,
|
| 6 |
+
ASR profile tiny.en @1 thread):
|
| 7 |
livekit-server v1.13.7 dev mode in-container, bot joined via the real CLI,
|
| 8 |
test client asked a spoken question, timings measured at the receiving client.
|
| 9 |
|
| 10 |
| Metric | Measured | Target | Verdict |
|
| 11 |
|---|---|---|---|
|
| 12 |
+
| **t_perceived** (speech-end β first bot audio at client) | **3.11s** | β€ 4.0s (win condition) | **PASS** |
|
| 13 |
| t_ready (CLI join β bot ready, incl. model + disclosure warmup) | 14.6s | β | β |
|
| 14 |
+
| ASR finalize (whisper tiny.en int8, 1 thread) | 1.33s | 400β700ms | over, halved from 2.04s |
|
| 15 |
| TTS first-audio path (cached consent disclosure) | ~0.2s (pre-roll + transport) | β | PASS |
|
| 16 |
| Full turn (speech-end β answer finished) | 18.9s (14.9s of audio) | β | pipelined |
|
| 17 |
| Piper in-context RTF (later sentences) | ~0.8β1.2 | <1.0 | borderline |
|
|
|
|
| 34 |
while sentence 1 plays, mitigation #2) keeps the turn flowing: 14.9s of
|
| 35 |
audio completed in 18.9s wall clock. Fixing the contention is the next
|
| 36 |
performance item.
|
| 37 |
+
4. **whisper tiny.en vs base accuracy**: base transcribed the bot name
|
| 38 |
+
"Streamy" correctly; tiny/tiny.en heard "Streami"/"streaming". The latency
|
| 39 |
+
profile uses tiny.en (measured best: standalone RTF 0.25 @1 thread vs 0.31
|
| 40 |
+
for tiny @2); base (+~2s ASR) is the accuracy upgrade path.
|
| 41 |
+
5. **Quantization verdict β asymmetric**: int8-dynamic-quantizing the Piper
|
| 42 |
+
voice (63.2 β 18.7 MB) made TTS **3β4Γ slower** (RTF 2.50β2.98 vs 0.79β0.86
|
| 43 |
+
fp32): dequant overhead dominates the conv-heavy VITS graph on this CPU
|
| 44 |
+
(no VNNI). Rejected for this hardware; artifact + verdict archived at
|
| 45 |
+
[LoveLogicAI/piper-en_US-amy-medium-int8](https://huggingface.co/LoveLogicAI/piper-en_US-amy-medium-int8)
|
| 46 |
+
for re-testing on VNNI-capable hosts. ASR, in contrast, was **already**
|
| 47 |
+
int8 (CTranslate2 compute_type="int8") and got faster by switching to the
|
| 48 |
+
English-only tiny.en at 1 thread.
|
| 49 |
|
| 50 |
The tables below are the original design targets, kept for reference.
|
| 51 |
|