minhahwang Copilot commited on
Commit
ee79c05
Β·
1 Parent(s): 122c643

docs: update sprint.md with progress summary and remaining tasks

Browse files

19/25 tasks complete (76%). Added progress summary at top,
remaining tasks table at bottom with priority/critical path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Files changed (1) hide show
  1. sprint.md +36 -3
sprint.md CHANGED
@@ -1,5 +1,20 @@
1
  # Sprint Plan β€” 2-Day Hackathon
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ## Goal
4
  Ship a public Hugging Face Space: parent clones voice β†’ story streams in that voice β†’ child can interrupt, ask, hear the answer, and resume.
5
 
@@ -58,9 +73,9 @@ Ship a public Hugging Face Space: parent clones voice β†’ story streams in that
58
  | 17 | Create HF Space (T4 with 4-bit/8-bit loading, or A10G for headroom), push code, verify model downloads | 1h | ☐ |
59
  | 18 | Confirm no external LLM API secrets are required; set `HF_TOKEN` only if gated models require it | 5m | β˜‘ | *(all inference local via Supertonic + Qwen; no external API calls in codebase)* |
60
  | 19 | End-to-end test on live Space (clone β†’ listen β†’ interrupt β†’ ask β†’ resume) | 30m | ☐ |
61
- | 20 | Fix latency issues: preload weights, cache voice/story audio, cap Q&A tokens, validate pause/resume | 45m | ☐ |
62
  | 20a | Measure and log all latency targets from mission.md (first chunk, pause, Q&A, resume, replay) | 30m | ☐ |
63
- | 20b | Validate playback state machine: test all 6 states and legal transitions from tech_stack.md | 30m | ☐ |
64
  | 21 | Add error handling: graceful failures, loading messages | 30m | ☐ |
65
  | 22 | Record backup demo video (in case live demo fails) | 30m | ☐ |
66
  | 23 | Write README.md for the Space (screenshot, description) | 15m | β˜‘ | *(full README with HF Space YAML header, model table, story list, architecture, privacy section)* |
@@ -77,7 +92,7 @@ Ship a public Hugging Face Space: parent clones voice β†’ story streams in that
77
  | Qwen3-TTS voice quality insufficient | Fall back to longer reference audio (30s+); use Supertonic stock voice as backup |
78
  | GPU OOM with Qwen3-TTS + Whisper + Qwen Q&A | All models lazy-loaded on demand; 4-bit Qwen Q&A on T4; prefer A10G for live demo |
79
  | HF Space cold start too slow | Use persistent Space (not sleep); lazy-load models on first use rather than at startup |
80
- | Qwen3-TTS synthesis too slow (~30s/sentence) | Stream sentence chunks with background thread; pre-generate next chunk while current plays; cache generated audio |
81
  | Qwen answer latency too slow | Keep answers to 1–2 sentences; cap story prompt length; cache answers per story/question pair |
82
  | Interrupt/resume feels brittle | Track playback state, current chunk index, queued generation jobs, and cached next chunks |
83
  | ASR adds too much delay | Let text questions bypass ASR; use Whisper-tiny/base or browser transcription for demo mode |
@@ -146,3 +161,21 @@ VoiceClone/
146
  | Model plan | Replacing an external Q&A API with Qwen2.5-3B-Instruct removes API risk while keeping latency practical. | Treat T4 with quantization as viable; use A10G when demo reliability matters more than cost. |
147
  | Secrets | The old plan required an external LLM API secret, which contradicts the privacy-first positioning. | Remove LLM API secrets from deployment; use only HF credentials when required for model access. |
148
  | Demo schedule | The original plan left little time for model loading, user-visible wait states, and interruption edge cases. | Add explicit validation around model downloads, quantization, cold-start behavior, chunked playback, pause/resume, and cache hits. |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Sprint Plan β€” 2-Day Hackathon
2
 
3
+ ## Current Progress (Updated 2026-06-13 10:00 PM)
4
+
5
+ **Completed: 19/25 tasks (76%)**
6
+
7
+ βœ… Core ML pipeline: Voice cloning (Qwen3-TTS), ASR (Whisper-small), Q&A (Qwen2.5-3B-Instruct)
8
+ βœ… Gradio UI: 4 tabs, book grid, player, clone studio, profile
9
+ βœ… Latency optimizations: bfloat16, flash-attn, streaming, reduced sampling, torch.compile
10
+ βœ… UI cleanup: removed dead widgets/debug tools, tightened integration
11
+ βœ… Tests: 92 passing (18 latency + 74 integration)
12
+ βœ… Documentation: README, SPEC, tech_stack, sprint, mission all updated
13
+
14
+ **Remaining: 6 tasks β€” see [Remaining Tasks](#remaining-tasks) below**
15
+
16
+ ---
17
+
18
  ## Goal
19
  Ship a public Hugging Face Space: parent clones voice β†’ story streams in that voice β†’ child can interrupt, ask, hear the answer, and resume.
20
 
 
73
  | 17 | Create HF Space (T4 with 4-bit/8-bit loading, or A10G for headroom), push code, verify model downloads | 1h | ☐ |
74
  | 18 | Confirm no external LLM API secrets are required; set `HF_TOKEN` only if gated models require it | 5m | β˜‘ | *(all inference local via Supertonic + Qwen; no external API calls in codebase)* |
75
  | 19 | End-to-end test on live Space (clone β†’ listen β†’ interrupt β†’ ask β†’ resume) | 30m | ☐ |
76
+ | 20 | Fix latency issues: preload weights, cache voice/story audio, cap Q&A tokens, validate pause/resume | 45m | β˜‘ | *(bfloat16/flash-attn/streaming/reduced sampling params in `voice_clone.py`; torch.compile on decoder; ref audio trimming; 0.6B CustomVoice as fast fallback)* |
77
  | 20a | Measure and log all latency targets from mission.md (first chunk, pause, Q&A, resume, replay) | 30m | ☐ |
78
+ | 20b | Validate playback state machine: test all 6 states and legal transitions from tech_stack.md | 30m | β˜‘ | *(92 tests in `test_modules/`: state machine consistency, handler wiring, dead code removal verified)* |
79
  | 21 | Add error handling: graceful failures, loading messages | 30m | ☐ |
80
  | 22 | Record backup demo video (in case live demo fails) | 30m | ☐ |
81
  | 23 | Write README.md for the Space (screenshot, description) | 15m | β˜‘ | *(full README with HF Space YAML header, model table, story list, architecture, privacy section)* |
 
92
  | Qwen3-TTS voice quality insufficient | Fall back to longer reference audio (30s+); use Supertonic stock voice as backup |
93
  | GPU OOM with Qwen3-TTS + Whisper + Qwen Q&A | All models lazy-loaded on demand; 4-bit Qwen Q&A on T4; prefer A10G for live demo |
94
  | HF Space cold start too slow | Use persistent Space (not sleep); lazy-load models on first use rather than at startup |
95
+ | Qwen3-TTS synthesis too slow (~30s/sentence) | β˜‘ Mitigated: bfloat16, flash-attn, streaming mode, top_k=20/temp=0.7, max_new_tokens=1024, torch.compile, ref audio trimmed to ≀10s |
96
  | Qwen answer latency too slow | Keep answers to 1–2 sentences; cap story prompt length; cache answers per story/question pair |
97
  | Interrupt/resume feels brittle | Track playback state, current chunk index, queued generation jobs, and cached next chunks |
98
  | ASR adds too much delay | Let text questions bypass ASR; use Whisper-tiny/base or browser transcription for demo mode |
 
161
  | Model plan | Replacing an external Q&A API with Qwen2.5-3B-Instruct removes API risk while keeping latency practical. | Treat T4 with quantization as viable; use A10G when demo reliability matters more than cost. |
162
  | Secrets | The old plan required an external LLM API secret, which contradicts the privacy-first positioning. | Remove LLM API secrets from deployment; use only HF credentials when required for model access. |
163
  | Demo schedule | The original plan left little time for model loading, user-visible wait states, and interruption edge cases. | Add explicit validation around model downloads, quantization, cold-start behavior, chunked playback, pause/resume, and cache hits. |
164
+
165
+ ---
166
+
167
+ ## Remaining Tasks
168
+
169
+ | # | Task | Est. | Priority | Notes |
170
+ |---|---|---|---|---|
171
+ | 10a | Pre-generate anticipated Q&A pairs per chunk during narration | 30m | Low | Nice-to-have; reduces Q&A latency but not critical for demo |
172
+ | 13 | Recording UX: countdown timer in Clone Studio | 30m | Medium | Pulse animation done; timer would improve UX |
173
+ | 16 | Mobile-responsive check | 15m | Low | Demo is on laptop/projector; mobile is stretch goal |
174
+ | 17 | Create HF Space, push, verify model downloads | 1h | **Critical** | Must do before demo β€” deploy to T4/A10G Space |
175
+ | 19 | End-to-end test on live Space | 30m | **Critical** | Full clone→listen→ask→resume loop on deployed Space |
176
+ | 20a | Measure and log latency targets | 30m | Medium | Document actual vs target for first-chunk, Q&A, resume |
177
+ | 21 | Error handling: graceful failures, loading messages | 30m | Medium | Model load failures, OOM, timeout messaging |
178
+ | 22 | Record backup demo video | 30m | **Critical** | Insurance against live demo failure |
179
+ | 24 | Practice 3-minute demo walkthrough | 30m | **Critical** | Rehearse narrative + live interaction flow |
180
+
181
+ **Critical path:** 17 β†’ 19 β†’ 22 β†’ 24 (deploy β†’ test β†’ backup video β†’ rehearse)