Automatic Speech Recognition
Transformers
Safetensors
Chinese
English
Yue Chinese
qwen2
text-generation
text-generation-inference
Instructions to use fengjay01/MiMo-V2.5-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fengjay01/MiMo-V2.5-ASR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="fengjay01/MiMo-V2.5-ASR")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fengjay01/MiMo-V2.5-ASR") model = AutoModelForCausalLM.from_pretrained("fengjay01/MiMo-V2.5-ASR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from fengjay01/MiMo-V2.5-ASR: direct link, hf CLI and curl.
- Browser
- Download file 9.95 kB
-
https://huggingface.co/fengjay01/MiMo-V2.5-ASR/resolve/main/README.md
- Command line
-
hf download hf://fengjay01/MiMo-V2.5-ASR/README.md
-
curl -L -o README.md https://huggingface.co/fengjay01/MiMo-V2.5-ASR/resolve/main/README.md
9.95 kB
| license: mit | |
| library_name: transformers | |
| language: | |
| - zh | |
| - en | |
| - yue | |
| pipeline_tag: automatic-speech-recognition | |
| tags: | |
| - safetensors | |
| - text-generation-inference | |
| <div align="center"> | |
| <picture> | |
| <source srcset="https://huggingface.co/XiaomiMiMo/MiMo-V2.5-ASR/resolve/main/assets/XiaomiMIMO.png" media="(prefers-color-scheme: dark)"> | |
| <img src="https://huggingface.co/XiaomiMiMo/MiMo-V2.5-ASR/resolve/main/assets/XiaomiMIMO.png" width="60%" alt="Xiaomi-MiMo" /> | |
| </picture> | |
| </div> | |
| <div align="center"> | |
| <h3> | |
| <b> | |
| <span>βββββββββββββββββββββββββββ</span><br/> | |
| MiMo-V2.5-ASR: Robust Speech Recognition Across<br/> | |
| Languages, Dialects, and Complex Acoustic Scenarios<br/> | |
| <span>βββββββββββββββββββββββββββ</span> | |
| </b> | |
| </h3> | |
| </div> | |
| <br/> | |
| <div align="center" style="line-height: 1;"> | |
| | | |
| <a href="https://github.com/XiaomiMiMo/MiMo-V2.5-ASR" target="_blank">π» GitHub</a> | |
| | | |
| <a href="https://huggingface.co/spaces/XiaomiMiMo/MiMo-V2.5-ASR" target="_blank">π Online Demo</a> | |
| | | |
| <a href="https://mimo.xiaomi.com/mimo-v2-5-asr" target="_blank">π° Blog</a> | |
| | | |
| <br/> | |
| </div> | |
| <br/> | |
| ## Introduction | |
| **MiMo-V2.5-ASR** is a state-of-the-art end-to-end automatic speech recognition (ASR) model developed by the Xiaomi MiMo team. It is built to deliver accurate and robust transcription across Mandarin Chinese and English, multiple Chinese dialects, code-switched speech, song lyrics, knowledge-intensive content, noisy acoustic environments, and multi-speaker conversations. MiMo-V2.5-ASR achieves state-of-the-art results on a wide range of public benchmarks. | |
| ## Abstract | |
| Automatic speech recognition systems are expected to faithfully transcribe speech signals that originate from diverse languages, dialects, accents, and domains, and that are captured under a wide variety of acoustic conditions. While conventional end-to-end models perform well on in-domain data, they still fall short of real-world requirements in challenging scenarios such as dialect mixing, code-switching, knowledge-intensive content, noisy environments, and multi-speaker conversations. We present **MiMo-V2.5-ASR**, a large-scale end-to-end speech recognition model developed by the Xiaomi MiMo team. Through large-scale mid-training, high-quality supervised fine-tuning, and a novel reinforcement-learning algorithm, MiMo-V2.5-ASR achieves systematic improvements along the following dimensions: | |
| - π£οΈ **Chinese Dialects**: Native support for Wu, Cantonese, Hokkien, Sichuanese, and more. | |
| - π **Code-Switch**: Seamless ChineseβEnglish code-switching transcription with no language tags required. | |
| - π΅ **Song Recognition**: High-precision lyrics transcription for Chinese and English songs, even with mixed accompaniment and vocals. | |
| - π **Noisy Environments**: Robust recognition under heavy noise, far-field capture, and other adverse acoustic conditions. | |
| - π₯ **Multi-Speaker**: Accurate transcription of overlapping, multi-party conversations such as meetings. | |
| - π¬π§ **Complex English Scenarios**: Leading performance on the [Open ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard) for challenging English benchmarks such as AMI. | |
| - π **Knowledge-Intensive Recognition**: Precise recognition of classical poetry, technical terminology, personal names, place names, and other knowledge-dense material. | |
| - π **Native Punctuation**: Punctuation generated natively from prosody and semantics, delivering ready-to-use transcripts with no post-processing needed. | |
| ## Results | |
| MiMo-V2.5-ASR has been evaluated across a broad set of benchmarks spanning standard Mandarin and English, Chinese dialects, lyric recognition, and internal business scenarios. The chart below summarizes the average performance of MiMo-V2.5-ASR across these scenarios. | |
|  | |
| For per-benchmark numbers and specific qualitative cases, please refer to our [blog](https://mimo.xiaomi.com/mimo-v2-5-asr). | |
| ## Model Download | |
| | Models | π€ Hugging Face | π€οΈ ModelScope | | |
| |-------|-------|-------| | |
| | MiMo-Audio-Tokenizer | [XiaomiMiMo/MiMo-Audio-Tokenizer](https://huggingface.co/XiaomiMiMo/MiMo-Audio-Tokenizer) | [XiaomiMiMo/MiMo-Audio-Tokenizer](https://modelscope.cn/models/XiaomiMiMo/MiMo-Audio-Tokenizer)| | |
| | MiMo-V2.5-ASR | [XiaomiMiMo/MiMo-V2.5-ASR](https://huggingface.co/XiaomiMiMo/MiMo-V2.5-ASR) | [XiaomiMiMo/MiMo-V2.5-ASR](https://modelscope.cn/models/XiaomiMiMo/MiMo-V2.5-ASR) | | |
| ```bash | |
| pip install huggingface-hub | |
| hf download XiaomiMiMo/MiMo-Audio-Tokenizer --local-dir ./models/MiMo-Audio-Tokenizer | |
| hf download XiaomiMiMo/MiMo-V2.5-ASR --local-dir ./models/MiMo-V2.5-ASR | |
| ``` | |
| ## Getting Started | |
| Spin up the MiMo-V2.5-ASR demo in minutes with the built-in Gradio app. | |
| ### Prerequisites (Linux) | |
| * Python 3.12 | |
| * CUDA >= 12.0 | |
| ### Installation | |
| ```bash | |
| git clone https://github.com/XiaomiMiMo/MiMo-V2.5-ASR.git | |
| cd MiMo-V2.5-ASR | |
| pip install -r requirements.txt | |
| pip install flash-attn==2.7.4.post1 | |
| ``` | |
| > \[!Note] | |
| > If the compilation of flash-attn takes too long, you can download the precompiled wheel and install it manually: | |
| > | |
| > * [Download Precompiled Wheel](https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp312-cp312-linux_x86_64.whl) | |
| > | |
| > ```sh | |
| > pip install /path/to/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp312-cp312-linux_x86_64.whl | |
| > ``` | |
| ### Run the Demo | |
| ```bash | |
| python run_mimo_asr.py | |
| ``` | |
| This launches a local Gradio interface for MiMo-V2.5-ASR. You can: | |
| * Upload an audio file **or** record directly from your microphone. | |
| * Optionally specify a **language tag** (Chinese / English / Auto) to bias the model for a specific language, or leave it to **Auto** for automatic language detection (recommended for code-switched speech). | |
| * The demo calls the `asr_sft()` interface under the hood. | |
| The interface provides a **Model Configuration** tab for setting local model and tokenizer paths, and a **Speech Recognition** tab where you drop in audio, pick a language tag, and hit *Transcribe* β the decoded text and processing status stream into the panels on the right. | |
| <p align="center"> | |
| <img src="https://huggingface.co/XiaomiMiMo/MiMo-V2.5-ASR/resolve/main/assets/MiMo_ASR_Demo.png" alt="MiMo-V2.5-ASR Gradio Demo" width="90%" /> | |
| <br/> | |
| <em>Figure: Gradio demo for MiMo-V2.5-ASR β upload an audio clip or record from your microphone, choose a language tag, and get the transcription on the right.</em> | |
| </p> | |
| To load the model and tokenizer automatically at startup, pass their paths on the command line: | |
| ```bash | |
| python run_mimo_asr.py \ | |
| --model-path ./models/MiMo-V2.5-ASR \ | |
| --tokenizer-path ./models/MiMo-Audio-Tokenizer | |
| ``` | |
| Otherwise, enter the local paths for `MiMo-Audio-Tokenizer` and `MiMo-V2.5-ASR` in the **Model Configuration** tab, then start transcribing! | |
| ## Python API | |
| Basic usage with the `asr_sft` interface: | |
| ```python | |
| from src.mimo_audio.mimo_audio import MimoAudio | |
| model = MimoAudio( | |
| model_path="./models/MiMo-V2.5-ASR", | |
| tokenizer_path="./models/MiMo-Audio-Tokenizer", | |
| ) | |
| # Automatic language detection (recommended for code-switching) | |
| text = model.asr_sft("path/to/audio.wav") | |
| print(text) | |
| # With explicit language tag | |
| text_zh = model.asr_sft("path/to/audio.wav", audio_tag="<chinese>") | |
| text_en = model.asr_sft("path/to/audio.wav", audio_tag="<english>") | |
| ``` | |
| ## Citation | |
| ```bibtex | |
| @misc{coreteam2026mimov25asr, | |
| title={MiMo-V2.5-ASR: Robust Speech Recognition Across Languages, Dialects, and Complex Acoustic Scenarios}, | |
| author={LLM-Core-Team Xiaomi}, | |
| year={2026}, | |
| url={https://github.com/XiaomiMiMo/MiMo-V2.5-ASR}, | |
| } | |
| ``` | |
| ## Contact | |
| Please contact us at [mimo@xiaomi.com](mailto:mimo@xiaomi.com) or open an issue if you have any questions. | |
| ## Use Restrictions | |
| You are solely responsible for your use of XiaomiMiMo/MiMo-V2.5-ASR and any outputs, actions, or consequences arising therefrom, and you agree not to use the XiaomiMiMo/MiMo-V2.5-ASR or any derivatives thereof: | |
| - For any unlawful, fraudulent, or malicious purpose, or in any manner that violates any applicable laws or regulationsοΌ | |
| - To infringe upon the intellectual property rights, privacy rights, publicity rights, or other lawful rights or interests of any third party; | |
| - To exploit, harm, harass, defame, unlawfully discriminate against, or otherwise adversely affect any individual or group, including minors or vulnerable persons; | |
| - For any military purpose or application; | |
| - To engage in or facilitate malicious cyber activities, including but not limited to malware, ransomware, phishing, credential theft, or unauthorized access, or any activity intended to compromise or unlawfully control computer systems, networks, or encryption systems; | |
| - To access, collect, process, disclose, or disseminate personal data or other protected information without appropriate authorization or lawful basis; or to access, interact with, scrape, or automate any third-party platform or service in violation of any applicable laws, policies, or authorization requirements; | |
| - To use the XiaomiMiMo/MiMo-V2.5-ASR in a manner that autonomously executes high-risk actions without appropriate human oversight or authorization. | |
| This notice is an informational reminder only and does not amend the applicable model licence or impose additional licence conditions. The permissions granted under that licence remain unaffected. Nothing in this notice restricts uses permitted by applicable law, including applicable exceptions and limitations. | |
| ### Usage enquiries and complaints | |
| [mimo-legal@xiaomi.com](mailto:mimo-legal@xiaomi.com). For information on submitting a complaint, please visit the https://mimo.xiaomi.com. | |