Skip to content

Add Ming3 Audio Tiny with expert offload and shared Ming speech runtimes - #1023

Merged
0xShug0 merged 2 commits into
mainfrom
feature/ming3-audio-tiny
Oct 21, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
feature/ming3-audio-tiny

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add ming3_audio for Ming 3.0 Audio Tiny: offline transcription/audio understanding, spoken responses, TTS, built-in voices, and reference voice cloning.
  • Add a schema-v1 spec, standalone BF16/Q8_0/Q4_K GGUF packages, conversion tooling, documentation, and component/lifecycle fixtures.
  • Support CPU-weight expert offload while keeping neural computation on the selected backend. Grow the offloaded Thinker's KV state on demand instead of reserving the full output allowance upfront.
  • Share the existing Ming3 TTS audio VAE and flow implementations between the two families, with configurable layouts/dimensions. Reuse existing framework modules and cache utilities; no GGML/kernel changes.
  • Use the existing BF16-rounding operation in the explicitly configured normalization/RoPE paths instead of materializing BF16 cast intermediates.
  • Default Talker text chunks to 100 Unicode codepoints to reduce long-clone omissions. Any positive text_chunk_size remains user-configurable, including the previous budget of 300.

Q8_0 quantizes Thinker experts. Q4_K quantizes those experts and stores the Thinker text head in Q8_0; sensitive/protected tensors and the speech components retain their original precision.

Measured Performance

CUDA RTX 5090, Debug build. RTF includes the complete model request through final audio/text output, excluding model loading and file writing. The clone rows compare chunk budgets with the same input, reference audio/transcript, and seed 42; the meeting exercises different components and is not a quantization A/B comparison.

Workload Configuration Input / output RTF Peak process VRAM
Long reference-conditioned TTS Q8_0, chunk 300 (previous budget) 1,518 characters / 54.5 s audio 0.1584 3,116 MiB
Same long reference-conditioned TTS Q8_0, chunk 100 (default) 1,518 characters / 63.9 s audio 0.1616 3,100 MiB
Full meeting transcription Q4_K, expert offload 1,244.64 s input audio 0.0383 5,062 MiB

The same complete music/meeting/thinking suite previously peaked at 9,666 MiB with offload; adaptive KV allocation reduces it to 5,062 MiB without lowering the input length or the 32,768-token generation allowance. Context can still grow with actual usage: this is not a hard VRAM cap for arbitrary inputs.

Validation

  • C++17 Debug builds and model-spec validation pass.
  • With the existing GGUF's embedded contract selected, unset text_chunk_size and explicit 100 produce byte-identical English and Chinese outputs. Explicit 300 remains byte-identical to its saved pre-change English baseline. The long-clone fixture now leaves the option unset to exercise the default.
  • A 278-character Chinese reference clone also improves with chunk 100: punctuation/whitespace-normalized CER is 1.6% versus 52.4% at 300 with Whisper turbo, and 1.2% versus 68.0% with Whisper medium. This checks a second language; it is not a universal quality guarantee.
  • Full official music/meeting/thinking inputs complete naturally without OOM or token-limit hits in the selected configurations.
  • Long-short-long meeting requests produce identical repeated text. Long TTS repeats produce byte-identical WAVs after an intervening short request.
  • Existing Ming3 TTS shared-runtime/BF16-rounding A/B: all eight CUDA output WAVs are byte-identical to the saved pre-change baseline.
  • Vulkan Audio Tiny transcription, reference-conditioned synthesis, and actual cache-growth execution pass. A separate one-case Ming3 TTS Vulkan A/B on the final branch produces byte-identical 2.9-second WAVs, with all requested words recovered by ASR (0% WER). Both runs select the existing GGUF's embedded spec without an override. The eight-output Ming3 TTS A/B above is CUDA-only.
  • Existing GGUFs are tested standalone with embedded contracts, without external-spec replacement.

Known Quality Limits

  • This is offline support; streaming is not advertised.
  • The teacher-forced waveform cosine is 0.999894, below the strict 0.99999 gate. This is documented BF16 drift, not a strict parity pass.
  • With the previous chunk budget of 300, the tested long clone has 4.35% Whisper turbo WER, including a clause omission; the new default of 100 reduces it to 0.40%. This is not Q8 damage: BF16 and Q8_0 produce byte-identical WAVs across the four-request clone sequence. Cross-language reference-conditioned spoken answers can still have pronunciation errors; perfect transcript/voice parity is not claimed.
  • CUDA performance is measured; Vulkan checks establish functional output, not strict cross-backend parity. CPU inference performance has not been validated.

Long-Clone Quality Follow-Up

Controlled replay shows sensitivity to chunking and numerical execution, not dropped input text or retained session state. Python uses 22 fragments for this text; native chunk 300 produces seven. Giving Python those same seven fragments also causes an omission (1.98% WER). Changing only Python's SDPA kernel, while retaining BF16 weights and the seed, changes generated lengths and subsequent RNG offsets. In fresh Python processes with identical captured AR inputs, changing the failing fragment's RNG offset from 1075 to 1093 changes WER from 0% to 12.24%. The native decoder retains all words when teacher-forced with Python's final latents; its strict waveform gate remains subject to the documented BF16 drift above.

Validated new default: text_chunk_size=100. Same complete 1,518-character text, voice reference/transcript, guidance 2, sigma 0.25, temperature 0, and Q8_0 CUDA package. Each chunk configuration uses one session with a warmup and two long requests per seed, separated by a short request. All four long repeat pairs are byte-identical.

ASR Seed WER, chunk 300 WER, chunk 100
Whisper turbo 42 4.35% 0.40%
Whisper turbo 43 3.95% 0%
Whisper medium 42 5.93% 0.79%
Whisper medium 43 3.56% 0.40%

Both recognizers recover the omitted battery-warning clause at chunk 100. Warm RTF is 0.157-0.158 at chunk 300 versus 0.161-0.162 at chunk 100 (about 2.0-2.4% worse RTF); peak process VRAM is 3,116 versus 3,100 MiB. This is a quality improvement, not a throughput optimization or universal fix. Runtime, spec/help, and documentation now default to 100. Explicit user values remain unchanged; no inference math, precision, RNG policy, or cache-lifecycle logic was changed.

@0xShug0 0xShug0 added the new model Request for new model support label Oct 21, 2026
@0xShug0
0xShug0 merged commit 3de1d9c into main Oct 21, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/ming3-audio-tiny branch October 21, 2026 18:10
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