Repository navigation
Studio: size the popular audio.cpp TTS and music models from measured peaks on each runtime backend - #16984
Merged
Conversation
… peaks on each runtime backend
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Nov 7, 2026
…t is 26.04 (#16987) ## Summary `Chat UI Tests (chat)` and `Loaded-models indicator (cross-browser)` are red on main (run 42338613438) and on #16986, #16984 and #16973, all in the same step: ``` Image: ubuntu-26.04 Version: 20261101.186.1 ... engines that will not start: webkit: TargetClosedError system libraries are missing, installing them ... engines that will not start: webkit: TargetClosedError ##[error]Process completed with exit code 1. ``` `ubuntu-latest` is being moved to the ubuntu-26.04 image. Playwright 1.64.1's WebKit build exits at launch there, and `playwright install-deps` does not fix it, so the browser probe in "Install Playwright browsers" fails before any test runs. Chromium and Firefox start fine. The last green runs of the same jobs ran on ubuntu-24.04 (for example 42319231838, 42313662909, 42311916438, all today), so the image is the only thing that changed. As the rollout reaches more jobs, every Linux job that drives WebKit will hit this. ## Change - `studio-ui-smoke.yml`: `ui-smoke` (Chat UI Tests) and `ui-indicator` (Loaded-models indicator) run on `ubuntu-24.04`. - `studio-composer-compatibility.yml` and `studio-inline-images.yml`: the `ubuntu-latest` matrix leg runs on `ubuntu-24.04` through `runs-on: ${{ matrix.os == 'ubuntu-latest' && 'ubuntu-24.04' || matrix.os }}`. The matrix value is unchanged, so the check names (`Composer (ubuntu-latest, browsers)`, `Inline images (ubuntu-latest)`) stay the same; macOS and Windows legs are untouched. - Each pin carries a comment to move back once WebKit starts on 26.04. - `tests/studio/test_webkit_jobs_skip_ubuntu_latest.py`: finds every workflow job whose steps or matrix mention WebKit, resolves the images it lands on (a plain `runs-on`, `matrix.os`, or the mapped form above), and fails if any of them is `ubuntu-latest`. A job counts when its steps or matrix mention Playwright and `webkit` as a whole word, so a file name like this test's does not. It also checks it still sees the four jobs above, so it cannot pass by finding nothing. - `workflow-trigger-lint.yml`: the new guard runs in that job too, since it is the one job without a paths filter (`test_workflow_guards_run_unfiltered.py` requires this of every workflow-reading guard), so a PR that only edits workflows still meets it. ## Testing | | guard test | |---|---| | this branch | passes | | main's three workflow files with this test | fails, naming `studio-composer-compatibility.yml::composer`, `studio-inline-images.yml::images`, `studio-ui-smoke.yml::ui-smoke`, `studio-ui-smoke.yml::ui-indicator` | The new test plus `tests/studio/test_workflow_guards_run_unfiltered.py`, `test_ui_shard_engines.py`, `test_indicator_browsers_run_in_parallel.py`, `test_playwright_suites_run_in_ci.py`, `test_chat_ui_shards_cover_everything.py` and `tests/security/test_lint_workflow_triggers.py`: 240 passed. End to end, the same probe on the two images: | | probe before install-deps | probe after install-deps | job | |---|---|---|---| | main, `ubuntu-26.04` (run 42338613438) | webkit: TargetClosedError | webkit: TargetClosedError | failed | | this PR, `ubuntu-24.04` | webkit: TargetClosedError | all three engines launch | `Loaded-models indicator (cross-browser)` passed |
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.
Most audio.cpp models in the catalog had no measured profile, so Studio sized them with the generic
weights × 2.5 + 1.5formula. On NVIDIA that refuses models that fit (#16627). On AMD, which runs audio.cpp's Vulkan build, several popular models peak above it, so Studio lets them load and they run out of memory partway through generation.This came from a Reddit report. After v0.1.915-beta (#16514) fixed Voxtral and Higgs Audio v3 for that user, BreezeTTS 2 Q4_0 (3.8 GB) was still refused on their 8 GB card. Its estimate was 10.3 GB; on CUDA it is now 7.1 GB.
Changes
estimate_resident_gbreads the installed runtime's backend and uses the CUDA profile on NVIDIA and the Vulkan one on AMD. With no runtime installed yet, or another build, it takes the larger. This also applies to the music families from Studio: state the audio memory estimate in placement refusals #16628 and Studio: size more audio.cpp music models from measured peaks and show the load estimate in the picker #16726, so YuE2 Q8_0 (9.23 GB) and Stable Audio 3 Medium F16 (9.32 GB) fit the 10 GB card from [Bug] Create Music Incorrect Reporting #16627 on NVIDIA.weights × 2.5 + 1.5, and Vulkan getsweights × 1.85 + 4.5. VibeVoice, whose peak keeps growing with the input, keeps the former everywhere.Measurements
Peak memory of the audio.cpp v0.9.3 server process, with Studio's default options. CUDA was measured on an RTX 3090 and an RTX 6000 Ada. Vulkan was measured on the 3090 and on a Radeon 8060S through AMD DevLab. TTS runs used 30 s references and text past several chunks, or to the default generation cap (Qwen3-TTS, OmniVoice, Higgs); music ran each workflow at its cap. A raised token cap can grow caches past these figures.
Every measured variant, with its package size, values in GiB. "(low)" marks where main was below the peak plus the 0.9 GiB margin every profile keeps.
Two profiles sit above the tightest fit on purpose:
Not changed here
Tests