Update get_started.md (#377)

This commit is contained in:
liushz 2023-09-11 10:58:17 +08:00 committed by GitHub
parent acc75c3d27
commit 63ced828d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 的参数