Skip to content

Spike S2: go with conditions — local 4B notes drafted during recording - #21

Merged
billlyzhaoyh merged 4 commits into
mainfrom
spike/s2-finish
Nov 24, 2026
Merged

billlyzhaoyh merged 4 commits into
mainfrom
spike/s2-finish

Conversation

@billlyzhaoyh

@billlyzhaoyh billlyzhaoyh commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes spike S2 (local LLM notes on long transcripts). Write-up: docs/spikes/s2-local-llm-notes.md.

Verdict: go, with conditions (Mac proxy; reference Windows laptop still to run).

Pass criterion Result
60-min → note ≤ 5 min after stop 14 s – 2.7 min (sectioned, during recording)
90-min → ≤ 8 min 83 s – 2.7 min
Peak RAM ≤ 6 GB (ASR unloaded) 4.4 GB (Qwen3.5-4B), 4.7 GB (Qwen3-4B) at 8k context
No omission rise 15 → 60 min Not measured (facts judged at 46 and 61 min only); now a condition

What ran

  • Screen: 6 models × 3 strategies × 2 synthetic transcripts, judged blind (36 packets, 4 Claude judges, shuffled; model key hidden while judging).
  • Timed run: the two finalists on AMI 15/45/60/90 + both synthetic transcripts, one model at a time.
  • Memory: macOS footprint peak, weights loaded without mmap (memory.py); ps RSS was unreliable.

Findings that change the PRD

  • Notes must be drafted section by section during recording; starting at stop takes 7–47 min.
  • A single reduce/compose call drops about half the facts; the note is the section facts by template heading for now.
  • LLM and ASR are loaded together while recording (~6 GB total) — replaces "never resident together".
  • Finalists: Qwen3-4B-Instruct-2507 and Qwen3.5-4B (Apache-2.0, Q4_0); S3 and S4 decide.

Caveats

  • Qwen3-4B's timed run started under load 17, Qwen3.5-4B's under ~5, so their speeds aren't directly comparable.
  • Judges differed on borderline partial/absent calls; ranking holds either way. No human spot-check of the verdicts (skipped); S3's blind human review is the first human check.

Also

  • run.py: transcript lookup accepts note ids (synthetic-care-assessment) as well as file stems.
  • AMI-derived notes committed with CC-BY-4.0 attribution in the harness README.

🤖 Generated with Claude Code

billlyzhaoyh and others added 2 commits November 13, 2026 06:50
Screened six local models (Qwen3-4B, Qwen3.5-4B, SmolLM3-3B, Phi-4-mini,
Ministral-3-3B, Gemma-4-E4B; Q4_0, CPU, 4 threads) on the synthetic care and
legal transcripts with three strategies, judged blind (36 packets, 4 judges).
Timed the two finalists on AMI 15/45/60/90 and both synthetic transcripts,
and measured peak memory with macOS footprint.

- Sectioned notes drafted during recording meet the bar: 14 s to 2.7 min
  after stop for 60-90 min recordings. Single pass or map-reduce at stop
  take 7-47 min.
- The reduce step loses about half the facts; the note is the section
  facts grouped by template heading for now.
- Peak memory 4.4-4.7 GB at 8k context; with live ASR about 6 GB, so the
  PRD's "never resident together" changes.
- Finalists: Qwen3-4B-Instruct-2507 and Qwen3.5-4B (Apache-2.0); S3/S4
  choose.

Harness: transcript lookup accepts note ids; memory.py measures footprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… measured

- memory.py exits when footprint fails or gives no reading, instead of
  recording 0 GB, which would pass the memory budget. Reproduced with a
  failing footprint stub first; a real reading still records (4.41 GB).
- The write-up marks "no rise in omissions from 15 to 60 min" as not
  measured: weak support only checks sentences the model wrote, and facts
  were judged only at 46 and 61 min. Measuring it is now condition 6.

From the Codex review of PR #21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billlyzhaoyh added a commit that referenced this pull request Nov 13, 2026
… measured

- memory.py exits when footprint fails or gives no reading, instead of
  recording 0 GB, which would pass the memory budget. Reproduced with a
  failing footprint stub first; a real reading still records (4.41 GB).
- The write-up marks "no rise in omissions from 15 to 60 min" as not
  measured: weak support only checks sentences the model wrote, and facts
  were judged only at 46 and 61 min. Measuring it is now condition 6.

From the Codex review of PR #21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quality scores rest on the Claude judges alone; S3's blind human
review is the first human check of note quality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@billlyzhaoyh
billlyzhaoyh merged commit 3db670a into main Nov 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant