Skip to content

[Docs] new_dataset.md update#1827

Merged
MaiziXiao merged 3 commits intoopen-compass:mainfrom
Myhs-phz:readme1_zh
Jan 17, 2025
Merged

[Docs] new_dataset.md update#1827
MaiziXiao merged 3 commits intoopen-compass:mainfrom
Myhs-phz:readme1_zh

Conversation

@Myhs-phz
Copy link
Copy Markdown
Collaborator

No description provided.

dict(
abbr=f'lukaemon_mmlu_{_name}',
type=MMLUDataset,
path='opencompass/mmlu',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

强调一下这里是个 mapping 的映射

Comment on lines +71 to +80
- 接着,需要在`opencompass/utils/datasets_info.py`中创建对应名称的字典字段。如果用户已将数据集托管到huggingface或modelscope,那么请在`DATASETS_MAPPING`字典中添加对应名称的字段,并将对应的huggingface或modelscope数据集地址填入`ms_id`和`hf_id`;另外,还允许指定一个默认的`local`地址。具体示例如下:

```python
"opencompass/mmlu": {
"ms_id": "opencompass/mmlu",
"hf_id": "opencompass/mmlu",
"local": "./data/mmlu/",
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用户需要在 load 函数中实现根据不同的环境变量切换数据源的操作,具体可以参考 cmmlu 中的实现
https://github.com/open-compass/opencompass/blob/main/opencompass/datasets/cmmlu.py。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已添加

Copy link
Copy Markdown
Contributor

@MaiziXiao MaiziXiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaiziXiao MaiziXiao merged commit 70da9b7 into open-compass:main Jan 17, 2025
@Myhs-phz Myhs-phz changed the title [Update] Update method to add dataset in docs [Doc] new_dataset.md update Jan 17, 2025
@Myhs-phz Myhs-phz changed the title [Doc] new_dataset.md update [Docs] new_dataset.md update Jan 17, 2025
stephen-nju pushed a commit to stephen-nju/opencompass that referenced this pull request May 14, 2025
* create new branch

* docs new_dataset.md zh

* docs new_dataset.md zh and en
zyc140345 pushed a commit to zyc140345/opencompass that referenced this pull request Oct 23, 2025
* create new branch

* docs new_dataset.md zh

* docs new_dataset.md zh and en
iamkaia pushed a commit to iamkaia/opencompass that referenced this pull request Feb 4, 2026
* create new branch

* docs new_dataset.md zh

* docs new_dataset.md zh and en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants