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
ModelZoo
llama3_pytorch
Commits
bf0dbb2e
Commit
bf0dbb2e
authored
Apr 28, 2024
by
Rayyyyy
Browse files
update README
parent
2eba7620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
README.md
README.md
+5
-1
No files found.
README.md
View file @
bf0dbb2e
...
...
@@ -151,9 +151,12 @@ cd ./llama-recipes/recipes/evaluation/
from lm_eval.evaluator import make_table
# 修改eval.py第121行代码,num_fewshot参数的默认值改为0
default
=
0
# 修改eval.py第215行代码,use_cache=args.use_cache 修改为
no_cache
=
args.use_cache
# 返回根目录
cd
~
# lm-eval 下载
git clone http://developer.hpccube.com/codes/chenych/lm-evaluation-harness.git
cd
./lm-evaluation-harness/
...
...
@@ -163,7 +166,7 @@ cd ../
2.
修改待测模型
**pretrained**
参数地址,例如
`/home/Meta-Llama-3-8B-Instruct`
,特别地,当前仅支持
`hellaswag`
数据集进行测试验证。执行以下命令:
```
bash
cd
/path
/
of/llama-recipes/recipes/evaluation
cd
/path
_
of/llama-recipes/recipes/evaluation
python eval.py
--model
hf
--model_args
pretrained
=
/home/llama3/Meta-Llama-3-8B-Instruct,dtype
=
"float"
--tasks
hellaswag
--device
cuda
--batch_size
8
```
<div
align=
center
>
...
...
@@ -271,3 +274,4 @@ huggingface-cli download meta-llama/Meta-Llama-3-70B-Instruct --include "origina
-
https://github.com/meta-llama/llama3
-
https://github.com/InternLM/xtuner
-
https://github.com/SmartFlowAI/EmoLLM
-
https://github.com/meta-llama/llama-recipes
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