Skip to content

Studio: size the popular audio.cpp TTS and music models from measured peaks on each runtime backend - #16984

Merged
danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:audio-cpp-popular-vram
Nov 7, 2026
Merged

danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:audio-cpp-popular-vram

Conversation

@oobabooga

@oobabooga oobabooga commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Most audio.cpp models in the catalog had no measured profile, so Studio sized them with the generic weights × 2.5 + 1.5 formula. 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

  • Profiles from measured peaks for BreezeTTS 2, Qwen3-TTS, MiniMax Music 3 GGUF, OmniVoice, CosyVoice3 and MOSS-TTS v1.5. Chatterbox, Higgs Audio v3, Kokoro, VoxCPM2 and Voxtral TTS are remeasured with every variant and longer inputs.
  • A profile per runtime backend. The same input peaks 0.5 to 4 GiB higher on audio.cpp's Vulkan build than on CUDA. estimate_resident_gb reads 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.
  • A fallback per backend for families not measured yet. CUDA keeps weights × 2.5 + 1.5, and Vulkan gets weights × 1.85 + 4.5. VibeVoice, whose peak keeps growing with the input, keeps the former everywhere.
    • I chose each line to minimize expected user frustration across common card sizes, counting a load that runs out of memory as ten refusals. I checked them by fitting on all the measured families but one and scoring the held-out one, for each family in turn.
    • On Vulkan the new line has fewer crashes and a lower total cost (held-out cost 0.29 against 0.33).
    • On CUDA a lower line would save some refusals but makes one held-out family run out of memory, so CUDA keeps its fallback.
  • Transcription models are untouched: their loads never use this estimate.

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.

Model Package CUDA peak Vulkan peak main CUDA now Vulkan now
ACE-Step 1.5 5.76 11.19 11.22 12.18 12.11 12.18
ACE-Step 1.5 9.40 14.74 15.31 16.36 15.67 16.36
BreezeTTS 2 3.53 5.50 6.83 10.33 7.12 12.10
BreezeTTS 2 4.15 6.12 8.39 11.88 7.46 12.10
BreezeTTS 2 4.73 6.87 11.18 13.33 7.78 12.10
BreezeTTS 2 6.84 8.00 9.79 18.60 8.94 12.10
Chatterbox 1.95 5.16 4.82 5.45 (low) 6.08 5.74
Chatterbox 3.49 5.23 5.19 6.99 6.15 6.12
CosyVoice3 2.10 3.08 4.73 6.76 4.08 5.64
CosyVoice3 6.51 5.81 7.36 17.79 6.73 8.29
HeartMuLa 7.13 18.40 19.58 20.54 19.31 20.53
Higgs Audio v3 4.75 6.19 6.47 6.75 (low) 7.14 7.45
Higgs Audio v3 7.92 9.40 9.55 21.30 10.32 10.46
Kokoro 0.18 2.41 2.99 3.68 (low) 3.65 3.91
Kokoro 0.20 2.39 2.12 3.70 3.65 3.91
Kokoro 0.87 2.41 3.05 4.37 3.65 3.98
MiDashengLM-Gen 3.15 3.93 4.42 5.40 4.84 5.40
MiniMax Music 3 7.87 13.08 14.00 21.16 14.00 14.92
MiniMax Music 3 12.61 16.35 17.26 33.02 17.32 18.24
MOSS-TTS v1.5 8.62 7.79 10.34 23.05 8.93 11.25
MOSS-TTS v1.5 12.28 11.25 12.60 32.20 12.41 14.91
MOSS-TTS v1.5 19.13 18.00 20.58 49.34 18.92 21.76
OmniVoice 1.26 4.44 6.82 4.64 (low) 5.35 7.73
OmniVoice 1.53 3.96 4.92 5.32 (low) 5.37 7.75
Qwen3-TTS 1.85 5.88 9.18 6.13 (low) 7.22 10.91
Qwen3-TTS 2.34 6.36 9.66 7.36 (low) 7.95 11.45
Qwen3-TTS 2.51 6.73 9.50 7.77 (low) 8.20 11.63
Qwen3-TTS 2.62 7.47 10.84 8.06 (low) 8.38 11.76
Qwen3-TTS 3.89 8.85 12.20 11.23 (low) 10.28 13.15
Qwen3-TTS 3.92 8.11 12.06 11.29 (low) 10.31 13.18
Qwen3-TTS 4.23 8.20 11.49 12.08 (low) 10.79 13.53
Stable Audio 3 1.57 2.24 2.01 3.47 3.52 3.47
Stable Audio 3 2.20 2.80 2.54 4.60 4.46 4.60
Stable Audio 3 3.34 5.27 5.34 6.66 6.18 6.66
Stable Audio 3 5.43 7.30 9.48 10.43 9.32 10.43
VoxCPM2 2.75 8.62 8.94 10.75 10.75 10.75
VoxCPM2 4.45 11.09 11.15 14.48 14.48 14.48
VoxCPM2 4.62 11.09 13.11 14.86 14.86 14.86
VoxCPM2 8.89 19.06 22.36 24.26 24.26 24.26
Voxtral TTS 4.40 5.31 5.92 6.40 (low) 6.40 6.84
Voxtral TTS 7.48 8.38 11.15 20.20 9.48 12.07
YuE2 2.73 6.78 6.52 7.73 7.69 7.73
YuE2 4.22 8.27 8.58 9.52 9.23 9.52
YuE2 7.01 11.19 11.87 12.86 12.10 12.86

Two profiles sit above the tightest fit on purpose:

Not changed here

  • Chatterbox convert grows with the source: 12.7 GiB at 60 s, out of memory at 120 s, yet Studio allows 300 s. The profile covers sources up to 30 s.
  • VoxCPM2 clone fails with references of 15 s or more; Studio allows 30 s.
  • Higgs Audio v3 stops at its 2,048-token chunk cap on long text.
  • Kokoro multilingual stops resolving when it is the only Kokoro file in the cache.
  • MiniMax Music 3 BF16 was not measured and keeps the generic formula.

Tests

  • New tests check every measured variant against its CUDA and Vulkan peak with the margin, the profile and fallback for each backend (CUDA, Vulkan, none, other) and YuE2's placement on the [Bug] Create Music Incorrect Reporting #16627 card under each backend. The estimate tests pin the backend, so the installed runtime doesn't affect them.
  • The audio, music, TTS and variant-listing suites pass.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T03:20:57.355104Z f0abeb3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@oobabooga

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: f0abeb3489

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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 |
@danielhanchen danielhanchen self-assigned this Nov 7, 2026
@danielhanchen
danielhanchen merged commit 115fbb2 into unslothai:main Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants