Repository navigation
fix(stt): load quantized Qwen3-ASR audio layers - #4382
Merged
Merged
Conversation
jundot
approved these changes
Oct 9, 2026
jundot
left a comment
Owner
There was a problem hiding this comment.
Checked the stock Qwen3-ASR 8-bit checkpoint and it quantizes the exact same layers as before, since the audio tower still falls through to the scales check. So this only changes checkpoints that actually ship quantized audio weights. Merging.
jundot
added a commit
that referenced
this pull request
Oct 9, 2026
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
Qwen3-ASR skips all audio layers when loading quantized weights. This makes
Alkd/TEA-ASR-1.1-MLX-4bitfail with a matmul shape error.Let the shared mlx-audio loader check audio scales and per-layer settings. Add tests for mixed 4-bit text / 8-bit audio weights and floating-point audio layers.
Fixes #3573
Validation
Apple M5 Pro, 64 GB, macOS 27.0.1, Python 3.12.13.
python -m pytest tests/test_qwen3_asr_quantization.py tests/test_audio_stt.py tests/test_audio_discovery.py tests/test_audio_realtime.py -q— 156 passed.python -m pytest -n 3 --dist loadgroup— 17,282 passed, 628 skipped.Real-model check with
Alkd/TEA-ASR-1.1-MLX-4bit: used macOSsayto make a 16 kHz WAV of “The meeting starts at nine in the morning.” Before the fix,STTEngine.transcribe()fails with the reported(3,13,7680)vs(1920,1024)shape error. After the fix, the audio projection loads at 8 bits and returns “The meeting starts at 9 in the morning.” Usedlanguage="en",max_tokens=64.Checklist