From b9b145c3350f5bbdfb8676f866a9c5a0459dd3ce Mon Sep 17 00:00:00 2001 From: Tong Gao Date: Mon, 11 Sep 2023 16:10:09 +0800 Subject: [PATCH] [Docs] Fix incorrect name in get_started (#380) --- configs/models/opt/hf_opt_125m.py | 2 ++ configs/models/opt/hf_opt_350m.py | 2 ++ docs/en/get_started.md | 2 +- docs/zh_cn/get_started.md | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/models/opt/hf_opt_125m.py b/configs/models/opt/hf_opt_125m.py index 66dbd75f..760e65b0 100644 --- a/configs/models/opt/hf_opt_125m.py +++ b/configs/models/opt/hf_opt_125m.py @@ -19,3 +19,5 @@ opt125m = dict( batch_size=128, run_cfg=dict(num_gpus=1), # Run configuration for specifying resource requirements ) + +models = [opt125m] diff --git a/configs/models/opt/hf_opt_350m.py b/configs/models/opt/hf_opt_350m.py index 78f25c50..33cbacc0 100644 --- a/configs/models/opt/hf_opt_350m.py +++ b/configs/models/opt/hf_opt_350m.py @@ -19,3 +19,5 @@ opt350m = dict( batch_size=64, run_cfg=dict(num_gpus=1), # Run configuration for specifying resource requirements ) + +models = [opt350m] diff --git a/docs/en/get_started.md b/docs/en/get_started.md index 74e57fee..b03359b5 100644 --- a/docs/en/get_started.md +++ b/docs/en/get_started.md @@ -90,7 +90,7 @@ In OpenCompass, each evaluation task consists of the model to be evaluated and t Users can combine the models and datasets they want to test using `--models` and `--datasets`. ```bash -python run.py --models opt_125m opt_350m --datasets siqa_gen winograd_ppl +python run.py --models hf_opt_125m hf_opt_350m --datasets siqa_gen winograd_ppl ``` The models and datasets are pre-stored in the form of configuration files in `configs/models` and `configs/datasets`. Users can view or filter the currently available model and dataset configurations using `tools/list_configs.py`. diff --git a/docs/zh_cn/get_started.md b/docs/zh_cn/get_started.md index 768871aa..a389d991 100644 --- a/docs/zh_cn/get_started.md +++ b/docs/zh_cn/get_started.md @@ -89,7 +89,7 @@ OpenCompass 中,每个评测任务都由待评测的模型和数据集组成 用户可以通过 `--models` 和 `--datasets` 组合待测试的模型和数据集。 ```bash -python run.py --models opt_125m opt_350m --datasets siqa_gen winograd_ppl +python run.py --models hf_opt_125m hf_opt_350m --datasets siqa_gen winograd_ppl ``` 模型和数据集以配置文件的形式预先存放在 `configs/models` 和 `configs/datasets` 下。用户可以通过 `tools/list_configs.py` 查看或筛选当前可用的模型和数据集配置。