Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
vllm_test_tools
Commits
be3814d9
"CONTRIBUTING.md" did not exist on "2f0d89e765051fc9e26fb4c52e5ad91bbb0e7e0b"
Commit
be3814d9
authored
May 07, 2025
by
jerrrrry
Browse files
Update README.md
parent
3f591513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
README.md
README.md
+4
-1
No files found.
README.md
View file @
be3814d9
# 环境配置
1.
拉取镜像,创建容器,安装基础依赖包
vllm测试
vllm测试
0.
7.2
0.
7.2
Offline推理
Offline推理
...
@@ -5,7 +7,7 @@ benchmark_throughput_0.7.2.py
...
@@ -5,7 +7,7 @@ benchmark_throughput_0.7.2.py
使用如下脚本可以减少不同参数推理时反复load模型
使用如下脚本可以减少不同参数推理时反复load模型
batch prompt_tokens completion_tokens可以用空格分隔传成字符串
batch prompt_tokens completion_tokens可以用空格分隔传成字符串
其他参数与标准脚本一致
其他参数与标准脚本一致
bash
<pre>
export HIP_VISIBLE_DEVICES=1
export HIP_VISIBLE_DEVICES=1
tp=1
tp=1
model_path=/llm-models/qwen1.5/Qwen1.5-0.5B-Chat
model_path=/llm-models/qwen1.5/Qwen1.5-0.5B-Chat
...
@@ -15,6 +17,7 @@ prompt_tokens="16 64"
...
@@ -15,6 +17,7 @@ prompt_tokens="16 64"
completion_tokens="128 256"
completion_tokens="128 256"
python benchmark_throughput_0.7.2.py --model ${model_path} --tensor-parallel-size ${tp} --num-prompts ${batch} --input-len ${prompt_tokens} --output-len ${completion_tokens}
\
python benchmark_throughput_0.7.2.py --model ${model_path} --tensor-parallel-size ${tp} --num-prompts ${batch} --input-len ${prompt_tokens} --output-len ${completion_tokens}
\
--dtype float16 --trust-remote-code --max-model-len 32768 --output-json ./test_0.5B-0.7.2.txt
--dtype float16 --trust-remote-code --max-model-len 32768 --output-json ./test_0.5B-0.7.2.txt
</pre>
按照如上传参,则计算的场景如下:
按照如上传参,则计算的场景如下:
bs input output
bs input output
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment