Repository navigation
chatterbox: keep the component and its voices across languages that share a T3 - #1285
Merged
0xShug0 merged 1 commit intoNov 14, 2026
Conversation
Owner
|
@magnus-dev-melin Thanks! PR merged. |
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.
Chatterbox cloning rebuilt its whole component (T3, tokenizer, voice encoder, S3 tokenizer, CAMPPlus, S3Gen) and emptied
chatterbox.conditionals_cache_slotson every language change, though the component depends on the language only through the T3 it loads: English, or multilingual for every other language. A server voicing one speaker into several listener languages paid that on every switch, and more cache slots could not help. The session now remembers whether its component runs the multilingual T3 and rebuilds only when that changes; switches among the multilingual languages keep the component and its prepared voices (the cache key already includes the language). Model-local; no framework or option changes.docs/tts.mdnotes that the slots now hold a voice per language across such switches.Depends on #1284 for its outputs: a voice prepared on a kept component goes through the CAMPPlus runner again, which on
maingives a different embedding after the first; with #1284 every output below equalsmain's.Validation (macOS, M1 Max, Metal,
chatterbox_q8_0, legacy server,OMP_NUM_THREADS=4,seed7, one 14 s reference). Ten/v1/audio/speechcloning requests through de, da, de, sv, de, en, de, da, sv, de, against amainbuild (a91e36b) and this branch with #1284:mainmain's for the same language (SHA-256), in every position, with 1 and with 3 slots.main1461–1637 MB, this branch 1226–1599 MB): there is still one component at a time.model_spec_system_test,cli_request_options_testandtools/check_loader_catalog_sync.pypass.Not measured: CUDA/Vulkan (the change is backend-independent), and the parallel runtime beyond building. Keeping both T3 variants loaded, so English switches cost nothing either, would trade about a T3's memory for it; not done here.