docs: address recipe review feedback
Signed-off-by: hsliu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
13d074e5db
commit
67b50d99fc
3 files changed
+115
-6
No files matched your search
@@ -0,0 +1,90 @@
|
|||||||
|
# Qwen3-Omni for multimodal chat on 1x A100 80GB
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
- Vendor: Qwen
|
||||||
|
- Model: `Qwen/Qwen3-Omni-30B-A3B-Instruct`
|
||||||
|
- Task: Multimodal chat with text, image, audio, or video input
|
||||||
|
- Mode: Online serving with the OpenAI-compatible API
|
||||||
|
- Maintainer: Community
|
||||||
|
|
||||||
|
## When to use this recipe
|
||||||
|
|
||||||
|
Use this recipe when you want a known-good starting point for serving
|
||||||
|
`Qwen/Qwen3-Omni-30B-A3B-Instruct` with vLLM-Omni on a single 80 GB A100 and
|
||||||
|
validate the deployment with the existing multimodal client examples in this
|
||||||
|
repository.
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- Upstream or canonical docs:
|
||||||
|
[`docs/user_guide/examples/online_serving/qwen3_omni.md`](../../docs/user_guide/examples/online_serving/qwen3_omni.md)
|
||||||
|
- Related example under `examples/`:
|
||||||
|
[`examples/online_serving/qwen3_omni/README.md`](../../examples/online_serving/qwen3_omni/README.md)
|
||||||
|
- Related issue or discussion:
|
||||||
|
[RFC: add recipes folder](https://github.com/vllm-project/vllm-omni/issues/2645)
|
||||||
|
|
||||||
|
## Hardware Support
|
||||||
|
|
||||||
|
This recipe currently documents one tested-style reference configuration for
|
||||||
|
CUDA GPU serving. Add more sections for other hardware as community validation
|
||||||
|
lands.
|
||||||
|
|
||||||
|
## GPU
|
||||||
|
|
||||||
|
### 1x A100 80GB
|
||||||
|
|
||||||
|
#### Environment
|
||||||
|
|
||||||
|
- OS: Linux
|
||||||
|
- Python: 3.10+
|
||||||
|
- Driver / runtime: NVIDIA CUDA environment with an A100 80 GB GPU
|
||||||
|
- vLLM version: Match the repository requirements for your checkout
|
||||||
|
- vLLM-Omni version or commit: Use the commit you are deploying from
|
||||||
|
|
||||||
|
#### Command
|
||||||
|
|
||||||
|
Start the server from the repository root:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
vllm serve Qwen/Qwen3-Omni-30B-A3B-Instruct --omni --port 8091
|
||||||
|
```
|
||||||
|
|
||||||
|
To enable async chunking, use the bundled stage config:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
vllm serve Qwen/Qwen3-Omni-30B-A3B-Instruct \
|
||||||
|
--omni \
|
||||||
|
--port 8091 \
|
||||||
|
--stage-configs-path vllm_omni/model_executor/stage_configs/qwen3_omni_moe_async_chunk.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Verification
|
||||||
|
|
||||||
|
Run one of the existing example clients after the server is ready:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python examples/online_serving/openai_chat_completion_client_for_multimodal_generation.py \
|
||||||
|
--model Qwen/Qwen3-Omni-30B-A3B-Instruct \
|
||||||
|
--query-type use_image \
|
||||||
|
--port 8091 \
|
||||||
|
--host localhost
|
||||||
|
```
|
||||||
|
|
||||||
|
For a quick API smoke test, request text-only output:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl http://localhost:8091/v1/chat/completions \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{
|
||||||
|
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
|
||||||
|
"messages": [{"role": "user", "content": "Describe vLLM in brief."}],
|
||||||
|
"modalities": ["text"]
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Notes
|
||||||
|
|
||||||
|
- Memory usage: Size depends on runtime options and output modalities; leave headroom for multimodal workloads.
|
||||||
|
- Key flags: `--omni` is required; `--stage-configs-path` is optional for custom or async-chunk stage configs.
|
||||||
|
- Known limitations: This starter recipe is intentionally narrow and focuses on the single-GPU online-serving path already documented in the repo examples.
|
||||||
@@ -23,6 +23,11 @@ recipes/
|
|||||||
HunyuanVideo.md
|
HunyuanVideo.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Available Recipes
|
||||||
|
|
||||||
|
- [`Qwen/Qwen3-Omni.md`](./Qwen/Qwen3-Omni.md): online serving recipe for
|
||||||
|
multimodal chat on `1x A100 80GB`
|
||||||
|
|
||||||
Within a single recipe file, include different hardware support sections such
|
Within a single recipe file, include different hardware support sections such
|
||||||
as `GPU`, `ROCm`, and `NPU`, and add concrete tested configurations like
|
as `GPU`, `ROCm`, and `NPU`, and add concrete tested configurations like
|
||||||
`1x A100 80GB` or `2x L40S` inside those sections when applicable.
|
`1x A100 80GB` or `2x L40S` inside those sections when applicable.
|
||||||
|
|||||||
+20
-6
@@ -29,7 +29,7 @@ platform section, document one or more tested hardware configurations.
|
|||||||
|
|
||||||
### 1x A100 80GB
|
### 1x A100 80GB
|
||||||
|
|
||||||
### Environment
|
#### Environment
|
||||||
|
|
||||||
- OS:
|
- OS:
|
||||||
- Python:
|
- Python:
|
||||||
@@ -37,19 +37,19 @@ platform section, document one or more tested hardware configurations.
|
|||||||
- vLLM version:
|
- vLLM version:
|
||||||
- vLLM-Omni version or commit:
|
- vLLM-Omni version or commit:
|
||||||
|
|
||||||
### Command
|
#### Command
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Add the exact command(s) here
|
# Add the exact command(s) here
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verification
|
#### Verification
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Add a quick validation command or expected output here
|
# Add a quick validation command or expected output here
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes
|
#### Notes
|
||||||
|
|
||||||
- Memory usage:
|
- Memory usage:
|
||||||
- Key flags:
|
- Key flags:
|
||||||
@@ -61,8 +61,22 @@ Repeat the same structure for other hardware setups as needed.
|
|||||||
|
|
||||||
## ROCm
|
## ROCm
|
||||||
|
|
||||||
Repeat the same structure for ROCm setups as needed.
|
### Example hardware configuration
|
||||||
|
|
||||||
|
Repeat the same nested structure for ROCm setups as needed:
|
||||||
|
|
||||||
|
- `#### Environment`
|
||||||
|
- `#### Command`
|
||||||
|
- `#### Verification`
|
||||||
|
- `#### Notes`
|
||||||
|
|
||||||
## NPU
|
## NPU
|
||||||
|
|
||||||
Repeat the same structure for NPU setups as needed.
|
### Example hardware configuration
|
||||||
|
|
||||||
|
Repeat the same nested structure for NPU setups as needed:
|
||||||
|
|
||||||
|
- `#### Environment`
|
||||||
|
- `#### Command`
|
||||||
|
- `#### Verification`
|
||||||
|
- `#### Notes`
|
||||||
Reference in new issue
Block a user