Update vLLM-Omni serving usage in README

#2
Files changed (1) hide show
  1. README.md +32 -10
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
- export MODEL_PATH=inclusionAI/Ming-3.0-audio-flash
172
- MING_OUTPUT_MODE=text ./scripts/serve_vllm_omni.sh "$MODEL_PATH"
173
  ```
174
 
175
- The reference 128K serving profile uses tensor parallelism across eight 80 GB H800 GPUs. Select the deployment YAML that matches text-only or Talker output. See the [deployment guide](https://github.com/inclusionAI/Ming-3.0-audio-flash/blob/main/README.md#vllm-omni) for details.
 
 
 
 
 
 
 
 
 
 
176
 
177
- For speech output, start the audio profile and select an IP or registered voice with the vLLM-Omni client's `--voice` option:
 
 
 
 
178
 
179
  ```bash
180
- MING_OUTPUT_MODE=audio ./scripts/serve_vllm_omni.sh "$MODEL_PATH"
181
- python examples/vllm_omni_audio_chat.py examples/audio/introduce_ant_group.wav \
182
- --audio-response \
183
- --voice US_Stella \
184
- --output-audio outputs/answer.wav
 
 
 
 
 
185
  ```
186
 
187
- The client sends this selection as Chat Completions `audio.voice: {"id": "..."}`. vLLM-Omni uses the built-in IP voice `灵小柔` when no voice is specified. The model directory also provides `灵楷` and `US_James` as preset reference voices under `voice_presets/voice_audio/`, with their matching transcripts in `voice_presets/voice_prompts.json`. Both names are also available as built-in IP voices.
 
 
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