LoveLogicAI commited on
Commit
e8f4780
Β·
verified Β·
1 Parent(s): f599de2

Final measured run: t_perceived 3.75s PASS, full stage table + findings

Browse files
Files changed (1) hide show
  1. docs/LATENCY.md +16 -13
docs/LATENCY.md CHANGED
@@ -2,19 +2,20 @@
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` (job `6ac2dfb8404719ba3765168f`):
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.73s** | ≀ 4.0s (win condition) | **PASS** |
12
- | t_ready (CLI join β†’ bot ready, incl. model warmup) | 10.6s | β€” | β€” |
13
- | ASR finalize (whisper tiny int8, 2 threads) | 1.93s | 400–700ms | over budget |
14
  | TTS first-audio path (cached consent disclosure) | ~0.2s (pre-roll + transport) | β€” | PASS |
15
- | Piper in-context RTF (later sentences) | ~1.2–1.9 | <1.0 | over budget |
16
- | Piper standalone RTF (no co-tenants) | 0.33–0.65 | <1.0 | PASS |
17
- | Mouth movement during speech | 230 video frames, median luma diff 0.66 | >0 | PASS |
 
18
  | Replay logs | both hash chains verify | valid | PASS |
19
 
20
  Findings from the measurement campaign:
@@ -26,13 +27,15 @@ Findings from the measurement campaign:
26
  2. **The fixed consent disclosure is pre-synthesizable** (CONSENT.md #2): it
27
  is static text, so caching it at session start removes Piper entirely from
28
  the first-audio critical path (mitigation #4 extended).
29
- 3. **Piper runs 2–3Γ— slower in the bot process than standalone** (RTF 1.2–1.9
30
- vs 0.33–0.65) β€” suspected contention with the co-resident whisper model
31
- and render loop. Sentence-streaming hides most of it behind playback;
32
- fixing the root cause is the next performance item.
 
 
33
  4. **whisper tiny vs base accuracy**: base transcribed the bot name
34
- "Streamy" correctly; tiny heard "streaming". Latency profile uses tiny;
35
- base (+~2s) is the accuracy upgrade path.
36
 
37
  The tables below are the original design targets, kept for reference.
38
 
 
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 `6ac2e0f3404719ba376516e5`):
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.75s** | ≀ 4.0s (win condition) | **PASS** |
12
+ | t_ready (CLI join β†’ bot ready, incl. model + disclosure warmup) | 14.6s | β€” | β€” |
13
+ | ASR finalize (whisper tiny int8, 2 threads) | 2.04s | 400–700ms | over budget |
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 |
17
+ | Piper standalone RTF (no co-tenants) | 0.55–0.87 | <1.0 | PASS |
18
+ | Mouth movement during speech | 234 video frames, median luma diff 0.70 | >0 | PASS |
19
  | Replay logs | both hash chains verify | valid | PASS |
20
 
21
  Findings from the measurement campaign:
 
27
  2. **The fixed consent disclosure is pre-synthesizable** (CONSENT.md #2): it
28
  is static text, so caching it at session start removes Piper entirely from
29
  the first-audio critical path (mitigation #4 extended).
30
+ 3. **Piper runs ~2Γ— slower in the bot process than standalone** (RTF ~0.8–1.2
31
+ vs 0.55–0.87) β€” suspected contention with the co-resident whisper model
32
+ and render loop. Pipelined sentence synthesis (rest-of-reply synthesizes
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 profile
38
+ uses tiny; base (+~2s ASR) is the accuracy upgrade path.
39
 
40
  The tables below are the original design targets, kept for reference.
41