Skip to content

fix(server): stop a file job without speaker labels from downloading 1.1 GB it never runs - #364

Merged
GeiserX merged 4 commits into
mainfrom
fix/file-job-pulls-only-its-models
Oct 9, 2026
Merged

GeiserX merged 4 commits into
mainfrom
fix/file-job-pulls-only-its-models

Conversation

@GeiserX

@GeiserX GeiserX commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

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 transcribe on 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 only live.

Now needs() takes the job as an optional second argument. Given a job, it leaves out any model that serves only live, 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 call needs() without a job, so they still keep the whole default set.

The akou skill now says the first best job 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_download off, and with a server.models_max_gb too small for them. Both routes now pass the job's diarize to admit(). The test admission counts only what the job runs: without diarize a missing speaker or live model refuses nothing covers 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

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.
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: GeiserX/akou/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bfe2391a-fefb-4882-81b3-1d02a08cf8f7

📥 Commits

Reviewing files that changed from the base of the PR and between 9d1ee54 and 2854ea1.


📒 Files selected for processing (6)
  • skills/akou/SKILL.md
  • src/main/api/routes/jobs.ts
  • src/main/api/routes/openai.ts
  • src/main/server/jobs.ts
  • src/main/server/model-store.ts
  • tests/models-on-demand.e2e.test.ts


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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
GeiserX merged commit 397b32a into main Oct 9, 2026
29 checks passed
@GeiserX
GeiserX deleted the fix/file-job-pulls-only-its-models branch October 9, 2026 20:59
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.
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