mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
Update get_started.md (#377)
This commit is contained in:
parent
acc75c3d27
commit
63ced828d8
@ -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
|
||||
|
@ -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 的参数
|
||||
|
Loading…
Reference in New Issue
Block a user