Skip to content

feat(chatterbox): support Turbo and Nano - #12664

Draft
localai-org-maint-bot wants to merge 4 commits into
masterfrom
feat/chatterbox-turbo-nano-12475
Draft

localai-org-maint-bot wants to merge 4 commits into
masterfrom
feat/chatterbox-turbo-nano-12475

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

Add turbo:true and nano:true model options to the Chatterbox backend. The original model remains the default. Reject conflicting selectors and keep load-time selectors out of speech parameters. Turbo and Nano ignore unsupported CFG, exaggeration, and min-p controls; integer sampler options such as top_k retain their type.

Fixes #12475.

Notes for Reviewers

Depends on mudler/chatterbox#1. The installer pins its commit b38c317b03834ef35828ae96c72ac8929b002a05, which adds isolated Turbo/Nano inference while preserving the fork's existing optimized models. All hardware profiles use the dependency's Transformers version; the shared requirements add pyloudnorm.

This is a draft pending dependency review and real model loading/audio validation. The environment lacks Torch and model weights. No backend image build or CPU/GPU audio synthesis was run. Configuration examples are included; this change does not add model-gallery entries.

Validation:

  • python3 -m unittest discover -s backend/python/chatterbox -p test_variants.py -v: 11 tests pass. Tests demonstrated failures before each fix, including integer and floating-point sampler regressions.
  • python3 -m unittest discover -s backend/python/common -p temp_utils_test.py -v: 3 tests pass.
  • Dependency PR: 2 mocked checkpoint/architecture tests and Python compilation pass.
  • bash -n backend/python/chatterbox/install.sh and git diff --check pass.
  • The new make -C backend/python/chatterbox test-unit target runs the variant tests in lint CI. Local tests used a cached Python runtime directly because this environment has no make.

Signed commits

  • Yes, I signed my commits. Human DCO sign-off remains for the maintainer; commits include Assisted-by attribution.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

Select the model at load time and filter incompatible generation controls.
Keep the original model as the default and load Turbo lazily.

Add CPU-only contract tests for selection, errors, and speech requests.

Assisted-by: Codex:gpt-6
Parse integers before floats for static options and request parameters.
Turbo and Nano require an integer top_k value during generation.

Assisted-by: Codex:gpt-6
Pin the dependency fork with isolated Turbo and Nano inference. Match its
Transformers requirement across build profiles and add pyloudnorm.

Run variant tests in CI and document configuration and sampler limits.

Assisted-by: Codex:gpt-6
Keep float controls as floats when values omit the decimal point.
Only top_k uses integer conversion for its strict sampler contract.

Assisted-by: Codex:gpt-6

This branch has not been deployed

No deployments
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.

Chatterbox : support Chatterbox-Turbo and Chatterbox-Nano

1 participant