Repository navigation
Add Ming3 Audio Tiny with expert offload and shared Ming speech runtimes - #1023
Merged
Merged
Conversation
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.
Summary
ming3_audiofor Ming 3.0 Audio Tiny: offline transcription/audio understanding, spoken responses, TTS, built-in voices, and reference voice cloning.text_chunk_sizeremains 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.
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
text_chunk_sizeand 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.Known Quality Limits
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.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.