Repository navigation
add fireredasr2-aed stt model - #559
Merged
Merged
Conversation
Collaborator
|
@mm65x Can you just upload the converted model to huggingface? Then we don't need the kaldiio dependency. |
Contributor
Author
|
@lucasnewman uploaded the converted model here: https://huggingface.co/mlx-community/FireRedASR2-AED-mlx i've also removed |
lucasnewman
approved these changes
Mar 12, 2026
Collaborator
|
Awesome, thanks! |
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
FireRedASR2-AED (https://github.com/FireRedTeam/FireRedASR2S) from Xiaohongshu/AntGroup. conformer encoder + transformer decoder model for Chinese and English ASR. ~1.18B params, strong on Mandarin (including 20+ dialects/accents), English, and code-switching.
Description
adds FireRedASR2-AED to the stt pipeline. the model uses a 16 layer conformer encoder with relative positional attention (Transformer-XL style with pos_bias_u/v) and a 16 layer transformer decoder with beam search decoding.
the upstream repo distributes weights as a single
model.pth.tarwith an argparse namespace for config, so this includes a conversion script that extracts weights to safetensors, converts the kaldi CMVN stats to json, and copies the tokenizer files.the tokenizer is a hybrid system - Chinese characters are treated as individual tokens while English text goes through SentencePiece BPE (~1000 merges).
Changes in the codebase
mlx_audio/stt/models/fireredasr2/fireredasr2.py- model implementation (fbank frontend, CMVN, Conv2d subsampling, conformer encoder, transformer decoder, beam search, generate)mlx_audio/stt/models/fireredasr2/config.py- config dataclassesmlx_audio/stt/models/fireredasr2/convert.py- pth.tar → safetensors convertermlx_audio/stt/models/fireredasr2/README.md- setup + usagemlx_audio/stt/models/__init__.py,mlx_audio/stt/utils.py- registrationChanges outside the codebase
none.
Additional information
Checklist