00000481
1)、普通curl请求
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
-d '{
"model": "/data/models/Qwen3-30B-A3B-Instruct-2507",
"messages": [
{"role": "user", "content": "详细介绍一下人工智能"}
],
"temperature": 0.0,
"max_tokens": 512
}'
2、使用jq格式化curl输出
1)、安装jq
apt-get update
apt-get install jq
2)、curl请求测试
curl -s -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
-d '{
"model": "/data/models/Qwen3-30B-A3B-Instruct-2507",
"prompt": "请详细介绍一下人工智能\n",
"temperature": 0.0,
"max_tokens": 512
}' | jq -r '.choices[0].text'
Benchmark下载:
sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn 访问密码请联系天数售后
get /client_tmp/support//client_tmp/support/Benchmark/vllm_benchmark.tar.gz
Benchmark测试:
python3 benchmark_serving.py --model /data/models/Qwen3-30B-A3B-Instruct-2507 --dataset-name random --random-input-len 4096 --random-output-len 1024 --num-prompts 1 --host "0.0.0.0" --port 8000