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
OpenDAS
opencompass
Commits
aeb9899d
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "4d79fee396e789b1c2fb53d391ea792907c59c95"
Commit
aeb9899d
authored
May 29, 2024
by
gaoqiong
Browse files
增加完善lmdeploy测评步骤
parent
8b3db123
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
README.md
README.md
+18
-0
No files found.
README.md
View file @
aeb9899d
...
...
@@ -75,6 +75,24 @@ python run.py configs/eval_llama2_vllm.py
2、使用lmdeploy推理验证
```
shell
#安装gpufusion 相关工具
#https://forum.hpccube.com/thread/483 进入网页下载gpufusion工具
#解压至dtk-24.04
unzip gpufusion.zip
-d
/opt/dtk-24.04/
#激活相关环境变量
source
/opt/dtk-24.04/env.sh
source
/opt/dtk/cuda/env.sh
#进入opencompass进行评测
cd
opencompass
#fp16精度评测方法
python run.py configs/eval_llama2_lmdeploy.py
#awq int4 评测方法
#首先需要转换awqInt4模型
#model_name:模型名字如 llama2 qwen-7b
#awq_modelpath:awq 模型路径,例如:/dataset/llm-models/qwen/qwen-chat-7b-AWQ-4bit
#awq_lmdeploymodel_path:生成的lmdeploy格式 awq模型路径
lmdeploy convert
${
model_name
}
${
awq_modelpath
}
--model-format
awq
--group-size
128
--dst-path
${
awq_lmdeploymodel_path
}
#将eval_llama2_lmdeploy.py中的Llama-2-7b-hf 替换为转换好的awq_lmdeploymodel_path
python run.py configs/eval_llama2_lmdeploy.py
```
...
...
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