Audio-to-Audio
Transformers
ONNX
Safetensors
English
Chinese
bailing_moe_v3_audio
feature-extraction
audio
speech
automatic-speech-recognition
audio-understanding
audio-reasoning
speech-to-text
text-to-speech
conversational
mixture-of-experts
custom_code
Instructions to use inclusionAI/Ming-3.0-audio-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ming-3.0-audio-flash with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inclusionAI/Ming-3.0-audio-flash", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update vLLM-Omni serving usage in README
#2
by Jonathan1909 - opened
README.md
CHANGED
|
@@ -167,24 +167,46 @@ See the [voice guide](https://github.com/inclusionAI/Ming-3.0-audio-flash/blob/m
|
|
| 167 |
|
| 168 |
### vLLM-Omni
|
| 169 |
|
|
|
|
|
|
|
| 170 |
```bash
|
| 171 |
-
|
| 172 |
-
MING_OUTPUT_MODE=text ./scripts/serve_vllm_omni.sh "$MODEL_PATH"
|
| 173 |
```
|
| 174 |
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
|
| 177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
```bash
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
-
|
| 183 |
-
|
| 184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
```
|
| 186 |
|
| 187 |
-
|
|
|
|
|
|
|
| 188 |
|
| 189 |
### SGLang
|
| 190 |
|
|
|
|
| 167 |
|
| 168 |
### vLLM-Omni
|
| 169 |
|
| 170 |
+
Install [vLLM-Omni](https://github.com/vllm-project/vllm-omni) following its [official installation guide](https://docs.vllm.ai/projects/vllm-omni/en/latest/getting_started/installation/). Use a source revision or release containing Ming3 audio support; the current recipe targets vLLM 0.32.0. For speech output, also install the `ming-tn` optional dependencies in the serving environment. From the vLLM-Omni source checkout:
|
| 171 |
+
|
| 172 |
```bash
|
| 173 |
+
uv pip install -e '.[ming-tn]'
|
|
|
|
| 174 |
```
|
| 175 |
|
| 176 |
+
Start the full text-and-speech service using the deployment profile bundled with vLLM-Omni:
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
vllm serve inclusionAI/Ming-3.0-audio-flash \
|
| 180 |
+
--omni \
|
| 181 |
+
--deploy-config ming3_audio_flash.yaml \
|
| 182 |
+
--served-model-name ming3-audio-flash \
|
| 183 |
+
--init-timeout 1800 \
|
| 184 |
+
--stage-init-timeout 1800 \
|
| 185 |
+
--port 8091
|
| 186 |
+
```
|
| 187 |
|
| 188 |
+
The HF model ID downloads and loads the model and its Talker assets automatically; a complete local model directory can also be used. The default profile uses four 80 GB-class GPUs with Thinker TP=4 and the Talker colocated on GPU 3. Adjust the deployment configuration for your hardware and context requirements. Long audio can still exhaust memory (OOM) on that 4-GPU profile. A 128K context setting alone does not demonstrate capacity or quality at that length. Shorten the input or configure a larger deployment when needed. The model repository separately provides 8-GPU configurations under `deploy/` - See the [deployment guide](https://github.com/inclusionAI/Ming-3.0-audio-flash/blob/main/README.md#vllm-omni) for references.
|
| 189 |
+
|
| 190 |
+
For text-only audio understanding or speech recognition, use `--deploy-config ming3_audio_flash_thinker_only.yaml` to avoid loading the Talker. The `ming3_audio_flash_asr.yaml` profile additionally enables 10-gram repetition blocking for transcription.
|
| 191 |
+
|
| 192 |
+
Run requests in a separate terminal after the server is ready. For example, generate a spoken answer with a built-in voice (requires `curl`, `jq`, and `base64`):
|
| 193 |
|
| 194 |
```bash
|
| 195 |
+
curl --fail-with-body --silent --show-error http://localhost:8091/v1/chat/completions \
|
| 196 |
+
-H 'Content-Type: application/json' \
|
| 197 |
+
-d '{
|
| 198 |
+
"model": "ming3-audio-flash",
|
| 199 |
+
"messages": [{"role": "user", "content": "Say exactly: Hello world."}],
|
| 200 |
+
"modalities": ["text", "audio"],
|
| 201 |
+
"audio": {"format": "wav", "voice": {"id": "US_James"}},
|
| 202 |
+
"temperature": 0,
|
| 203 |
+
"max_tokens": 128
|
| 204 |
+
}' | jq -r '.choices[0].message.audio.data' | base64 --decode > answer.wav
|
| 205 |
```
|
| 206 |
|
| 207 |
+
Use `"modalities": ["text"]` for text output. Select a built-in IP voice through Chat Completions `audio.voice: {"id": "灵楷"}`, using names such as `灵楷` or `US_James`. If no voice is specified, vLLM-Omni defaults to `灵小柔`.
|
| 208 |
+
|
| 209 |
+
See the upstream [Ming-3.0-audio-flash recipe](https://github.com/vllm-project/vllm-omni/blob/main/recipes/inclusionAI/Ming-3.0-audio-flash.md) for audio-input ASR and question answering, streaming speech, voice cloning and registration, standalone TTS, manual-turn Realtime, and flash/tiny deployment profiles. Its [text normalization section](https://github.com/vllm-project/vllm-omni/blob/main/recipes/inclusionAI/Ming-3.0-audio-flash.md#text-normalization-resources) explains the TN/FST assets loaded from the selected model snapshot.
|
| 210 |
|
| 211 |
### SGLang
|
| 212 |
|