Skip to content

(WIP) Add Ming 3.0 TTS 0.5B with voice cloning and voice design - #1015

Merged
0xShug0 merged 2 commits into
mainfrom
feature/ming-3.0-tts-0.5b
Oct 21, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
feature/ming-3.0-tts-0.5b

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add offline Ming 3.0 TTS 0.5B synthesis, voice cloning, voice design and structured speaking controls for seven languages.
  • Use the shared causal decoder, transformer modules, CAMPPlus speaker encoder and text chunker. Graphs and backend weights remain session-owned.
  • Add BF16/Q8 GGUF conversion, a v1 model spec, standalone packages, usage documentation and model test fixtures.
  • Asset loading prepares typed configs and shared tensor sources; sessions coordinate requests, while components own backend execution.

Framework Scope

  • Optional normalization and RoPE intermediate-rounding controls preserve existing defaults. No GGML/kernel changes.
  • Extend the restricted Torch reader to accept a single root tensor for optional precomputed speaker embeddings; existing dictionary loading is unchanged.

Performance

RTX 5090, eight CPU threads, Debug C++17. Matched no-reference text, voice-design instruction and seed. Warm RTF covers medium, repeated medium and short requests; peak memory covers the complete session including warmup and a longer request. Long-request RTF is excluded because Python and native chunkers differ.

Implementation Warm RTF Speed vs Python Peak VRAM MiB Peak CPU RSS MiB
Official Python BF16 0.651-0.675 1x 3,660 2,104
audio.cpp BF16 0.173-0.179 3.8x 2,768 1,036
audio.cpp Q8 0.167-0.175 3.9x 1,924 978

Python implementation revision: e999c39fa676722aaa9ea29b5aa19a90525b271f. Speed ratios use mean warm RTF.

Validation

  • Debug C++17 CLI, server and component targets build.
  • CUDA BF16/Q8 lifecycle sequences covered repeats, long-short-long inputs and changed reference voices. The 491-character clone sequence recovered every requested word in all 16 outputs; warmed long outputs matched byte-for-byte within each format.
  • CPU/Vulkan BF16 and Q8 plain/cloning checks produced valid audio with all requested words recovered after explicit numeral normalization.
  • Final typed-asset refactor: one fixed-seed CUDA Q8 case is byte-identical to the pre-refactor WAV.
  • Reemitted package integrity: all 1,799 tensors and embedded sidecars per GGUF remain exact.

Limitations

  • Teacher-forced final-waveform cosine is 0.999820 (RMSE 0.001154), below the original strict 0.99999 target. Documented BF16 drift was accepted after investigation; strict waveform parity is not claimed.
  • A separate 571-character BF16 case omitted/garbled its final clause (WER 5.15%); Q8 recovered the text. Perfect long-form transcription is not claimed.
  • The native codepoint chunker differs from the official semantic chunker; the optional official FST normalizer is not run. Streaming is not included.

Packages: https://huggingface.co/audio-cpp/Ming-3.0-TTS-0.5B-GGUF

@0xShug0 0xShug0 added the new model Request for new model support label Oct 21, 2026
@0xShug0
0xShug0 merged commit 87bcc48 into main Oct 21, 2026
7 checks passed
@0xShug0 0xShug0 changed the title Add Ming 3.0 TTS 0.5B with voice cloning and voice design (WIP) Add Ming 3.0 TTS 0.5B with voice cloning and voice design Oct 21, 2026
@0xShug0
0xShug0 deleted the feature/ming-3.0-tts-0.5b branch October 21, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new model Request for new model support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant