Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/source/tutorials/single_npu_qwen2_audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Run the following script to execute offline inference on a single NPU:
```python
from vllm import LLM, SamplingParams
from vllm.assets.audio import AudioAsset
from vllm.utils import FlexibleArgumentParser
from vllm.utils.argparse_utils import FlexibleArgumentParser

# If network issues prevent AudioAsset from fetching remote audio files, retry or check your network.
audio_assets = [AudioAsset("mary_had_lamb"), AudioAsset("winning_call")]
Expand Down Expand Up @@ -177,8 +177,8 @@ docker run --rm \
-e PYTORCH_NPU_ALLOC_CONF=max_split_size_mb:256 \
-it $IMAGE \
vllm serve Qwen/Qwen2-Audio-7B-Instruct \
--max_model_len 16384 \
--max-num-batched-tokens 16384 \
--max_model_len 8192 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The command-line argument for setting the maximum model length should use a hyphen instead of an underscore. The correct argument is --max-model-len, not --max_model_len. Using an underscore will likely cause the argument to be unrecognized and the command to fail.

Suggested change
--max_model_len 8192 \
--max-model-len 8192 \

--max-num-batched-tokens 8192 \
--limit-mm-per-prompt '{"audio":2}' \
--chat-template /path/to/your/vllm-ascend/examples/chat_templates/template_qwen2_audio.jinja
```
Expand All @@ -201,7 +201,7 @@ Once your server is started, you can query the model with input prompts:
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "/root/.cache/modelscope/models/Qwen/Qwen2-Audio-7B-Instruct",
"model": "Qwen/Qwen2-Audio-7B-Instruct",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": [
Expand Down
Loading