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
63ced828
Unverified
Commit
63ced828
authored
Sep 11, 2023
by
liushz
Committed by
GitHub
Sep 11, 2023
Browse files
Update get_started.md (#377)
parent
acc75c3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
docs/en/get_started.md
docs/en/get_started.md
+2
-2
docs/zh_cn/get_started.md
docs/zh_cn/get_started.md
+2
-2
No files found.
docs/en/get_started.md
View file @
63ced828
...
...
@@ -127,7 +127,7 @@ For HuggingFace models, users can set model parameters directly through the comm
```bash
python run.py --datasets siqa_gen winograd_ppl \
--hf-
model
facebook/opt-125m \
--hf-
path
facebook/opt-125m \
--model-kwargs device_map='auto' \
--tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True \
--max-seq-len 2048 \
...
...
@@ -233,7 +233,7 @@ If the HuggingFace model you want to test is not among them, you can also direct
```
bash
python run.py
\
--hf-
model
facebook/opt-350m
\
# HuggingFace model path
--hf-
path
facebook/opt-350m
\
# HuggingFace model path
--tokenizer-path
facebook/opt-350m
\
# HuggingFace tokenizer path (if the same as the model path, can be omitted)
--tokenizer-kwargs
padding_side
=
'left'
truncation
=
'left'
trust_remote_code
=
True
\
# Arguments to construct the tokenizer
--model-kwargs
device_map
=
'auto'
\
# Arguments to construct the model
...
...
docs/zh_cn/get_started.md
View file @
63ced828
...
...
@@ -126,7 +126,7 @@ python tools/list_configs.py llama mmlu
```bash
python run.py --datasets siqa_gen winograd_ppl \
--hf-
model
facebook/opt-125m \
--hf-
path
facebook/opt-125m \
--model-kwargs device_map='auto' \
--tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True \
--max-seq-len 2048 \
...
...
@@ -233,7 +233,7 @@ opt350m = dict(
```
bash
python run.py
\
--hf-
model
facebook/opt-350m
\
# HuggingFace 模型地址
--hf-
path
facebook/opt-350m
\
# HuggingFace 模型地址
--tokenizer-path
facebook/opt-350m
\
# HuggingFace tokenizer 地址(如与模型地址相同,可省略)
--tokenizer-kwargs
padding_side
=
'left'
truncation
=
'left'
trust_remote_code
=
True
\
# 构造 tokenizer 的参数
--model-kwargs
device_map
=
'auto'
\
# 构造 model 的参数
...
...
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