fix(parakeet): clamp multilingual v3 chunk windows for non-English input#589
Open
nachoal wants to merge 1 commit intoBlaizzy:mainfrom
Open
fix(parakeet): clamp multilingual v3 chunk windows for non-English input#589nachoal wants to merge 1 commit intoBlaizzy:mainfrom
nachoal wants to merge 1 commit intoBlaizzy:mainfrom
Conversation
b5c152c to
a50107a
Compare
Author
|
Follow-up validation summary. Targeted repo tests: python3 -m pytest -q mlx_audio/stt/tests/test_models.py -k 'multilingual_chunking or multilingual_v3_detection'Result:
End-to-end benchmark on the original sample set:
Reference-backed Spanish validation (subtitle/text reference WER):
Interpretation:
|
Collaborator
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.
Context
Parakeet v3 multilingual decoding becomes unstable on oversized windows. In practice, non-English audio can drift into English/Spanglish when
chunk_durationis large.This PR keeps decoder behavior unchanged and fixes the issue at the chunk scheduler level.
Description
This change adds a small scheduling guard for multilingual Parakeet v3:
languagehint in the Parakeet generate/decode path.chunk_duration = 5.0overlap_duration = 1.0autobehavior unchanged.The goal is to preserve language consistency on non-English input without introducing unsupported decoder prompting hacks.
Changes in the codebase
_resolve_multilingual_chunking(...)in the Parakeet base model.languagehint through the Parakeet model methods so it can be used strictly for scheduling.autoChanges outside the codebase
No infrastructure or service changes.
Additional information
Targeted repo tests:
python3 -m pytest -q mlx_audio/stt/tests/test_models.py -k 'multilingual_chunking or multilingual_v3_detection'Result:
3 passedEnd-to-end benchmark summary on a local
sttwrapper using this branch:1123words)1241words)583 -> 1123words vs prior bad MLX behavior)Subtitle-backed Spanish validation (WER):
es_short:0.0758es_long:0.1119es_long_motivar_humor:0.0768es_long_liderazgo_inspira:0.0708es_long_productividad:0.0528es_long_atencion_inteligencia:0.0612es_long_cerebro_atento:0.0847The tradeoff is that non-English Parakeet v3 gets slower than the large-window path, but the prior behavior could silently return the wrong language.
Checklist