Repository navigation
fix(server): stop a file job without speaker labels from downloading 1.1 GB it never runs - #364
Merged
Merged
Conversation
A file job with diarize off still downloaded the speaker models and the live model before it ran, because needs() returned every non-recognizer entry of the machine set. Given the job, needs() now leaves out a live-only model always and the speaker models when the job asks for no speaker labels (SV-M1). The sweep, the pull card and doctor keep the whole set: they call needs() without a job. The skill says a first best-preset job may download Qwen, about 2.5 GB. Bead akou-yl9.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 38 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Admission still counted the whole machine set, so a job without speaker labels was refused 409 for a speaker or live model it would never fetch: with server.auto_download off, and with server.models_max_gb too small for them. The routes now pass the job's diarize to admit(), which asks needs() for that job's models (SV-M1). obtainable() stays wide. Bead akou-yl9.
GeiserX
added a commit
that referenced
this pull request
Oct 9, 2026
…aker and akou start and akou quit finish (#374) ## Problem On 0.6.4, with the Nemotron diarizer on, every call line waited about 2 s for its speaker before it reached the transcript. The first `akou start` after an install gave up at 3 s while the app was still coming up. `akou quit` on Linux could hang after a call. All three are fixed on main and no release carries them yet. ## What 0.6.5 ships - A call line is written when its segment closes, and its speaker follows as a correction to the same line (#359). - `akou start` waits up to 20 s for a slow first launch and stops the idle launcher afterwards (#360). - `akou quit` always finishes on Linux (#367). - A search hit names the speaker who said the matched word (#365). - A file job without speaker labels fetches, and is admitted for, only the models it runs (#364). - Three messages no longer point at a command that cannot help (#366). - Behind the scenes: G1 and G3 pass, G4, G6 and G7 stay Partial (#354, #357, #358, #362, #363, #371, #372), the dictation audio tests wait for the write (#361), and `glama.json` (#373). The Known limitations list in CHANGELOG.md names what the reviews left open: late first lines after a cold start, the four-core x64 line latency, a launcher left by an earlier failed launch, the silent wait in `akou quit`, and two search citation cases. ## The bump - `scripts/stamp-version.ts --set 0.6.5` wrote the 11 stamped places. - By hand: the install line in README.md, the image tags and the `--branch` line in docs/server.md and docs/server-hardware.md, and the "Known in" line in docs/troubleshooting.md. The menu bar item still moves, since nothing touched it after 0.6.4. - docs/gates and docs/ROADMAP.md keep the versions their evidence ran on. - `stamp-version.ts --check --tag v0.6.5` passes, and `--tag v0.6.6` fails as the control. The tag is pushed after the merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A file job with speaker labels off still downloaded the speaker models and the live model before it ran. On a Mac with no models, a 5 s
akou transcribeon the best preset started six downloads, about 3.6 GB. About 1.1 GB of that was never used: the live Nemotron model, the Nemotron diarizer and TitaNet. SV-M1 in docs/ux/SERVER.md says a job fetches its own model, and the speaker models only when it asks for diarize.The cause was
ModelStore.needs(). It returned the recognizer plus every entry of the machine's default set that is not a recognizer. The live model counts as "not a recognizer" because it serves onlylive.Now
needs()takes the job as an optional second argument. Given a job, it leaves out any model that serves onlylive, and it leaves out the speaker models unless the job asks for diarize. The job service passes the job when it works out what a queued job waits on and what a running job touches. The sweep, the pull card and doctor callneeds()without a job, so they still keep the whole default set.The akou skill now says the first
bestjob on a machine may download Qwen first, about 2.5 GB.Tests, red on main and green here, in
tests/models-on-demand.e2e.test.ts:[SV-M1] a file job fetches the models it runs and no other > server mode: ...... > app mode: ...Each test submits a job with diarize off and checks that the registry never served TitaNet or the live model. Then, as the positive control, it submits the same job with diarize on and checks that TitaNet is fetched once and the live model still never is. On main, the diarize-off job fetched both.
Admission follows the same rule. Before, the submit route still counted the whole default set, so a job without speaker labels was refused 409 for a speaker or live model it would never fetch. That happened with
server.auto_downloadoff, and with aserver.models_max_gbtoo small for them. Both routes now pass the job's diarize toadmit(). The testadmission counts only what the job runs: without diarize a missing speaker or live model refuses nothingcovers both cases, and its control checks that the same job with diarize on is still refused.The CLI still waits silently during a download (CLI-13). This PR does not change that.
Bead: akou-yl9