Update README.md
Browse files
README.md
CHANGED
@@ -84,17 +84,42 @@ MiMo-Audio couples a patch encoder, an LLM, and a patch decoder to improve model
|
|
84 |
| MiMo-Audio-7B-Instruct | [XiaomiMiMo/MiMo-Audio-7B-Instruct](https://huggingface.co/XiaomiMiMo/MiMo-Audio-7B-Instruct) |
|
85 |
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
## Getting Started
|
89 |
|
90 |
Spin up the MiMo-Audio demo in minutes with the built-in Gradio app.
|
91 |
|
|
|
|
|
|
|
|
|
|
|
92 |
### Installation
|
93 |
-
|
|
|
94 |
git clone https://github.com/XiaomiMiMo/MiMo-Audio.git
|
95 |
cd MiMo-Audio
|
96 |
-
pip install -
|
|
|
97 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
### Run the demo
|
99 |
``` sh
|
100 |
python run_mimo_audio.py
|
|
|
84 |
| MiMo-Audio-7B-Instruct | [XiaomiMiMo/MiMo-Audio-7B-Instruct](https://huggingface.co/XiaomiMiMo/MiMo-Audio-7B-Instruct) |
|
85 |
|
86 |
|
87 |
+
```bash
|
88 |
+
pip install huggingface-hub
|
89 |
+
|
90 |
+
hf download XiaomiMiMo/MiMo-Audio-Tokenizer --local-dir ./models/MiMo-Audio-Tokenizer
|
91 |
+
hf download XiaomiMiMo/MiMo-Audio-7B-Base --local-dir ./models/MiMo-Audio-7B-Base
|
92 |
+
hf download XiaomiMiMo/MiMo-Audio-7B-Instruct --local-dir ./models/MiMo-Audio-7B-Instruct
|
93 |
+
```
|
94 |
|
95 |
## Getting Started
|
96 |
|
97 |
Spin up the MiMo-Audio demo in minutes with the built-in Gradio app.
|
98 |
|
99 |
+
### Prerequisites (Linux)
|
100 |
+
|
101 |
+
* Python 3.12
|
102 |
+
* CUDA >= 12.0
|
103 |
+
|
104 |
### Installation
|
105 |
+
|
106 |
+
```bash
|
107 |
git clone https://github.com/XiaomiMiMo/MiMo-Audio.git
|
108 |
cd MiMo-Audio
|
109 |
+
pip install -r requirements.txt
|
110 |
+
pip install flash-attn==2.7.4.post1
|
111 |
```
|
112 |
+
|
113 |
+
> \[!Note]
|
114 |
+
> If the compilation of flash-attn takes too long, you can download the precompiled wheel and install it manually:
|
115 |
+
>
|
116 |
+
> * [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)
|
117 |
+
>
|
118 |
+
> ```sh
|
119 |
+
> pip install /path/to/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp312-cp312-linux_x86_64.whl
|
120 |
+
> ```
|
121 |
+
|
122 |
+
|
123 |
### Run the demo
|
124 |
``` sh
|
125 |
python run_mimo_audio.py
|