2023-07-04 21:34:55 +08:00
|
|
|
|
<div align="center">
|
2023-07-06 12:14:23 +08:00
|
|
|
|
<img src="docs/zh_cn/_static/image/logo.svg" width="500px"/>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-07 17:08:33 +08:00
|
|
|
|
[](https://opencompass.readthedocs.io/zh_CN)
|
2023-07-07 11:43:14 +08:00
|
|
|
|
[](https://github.com/InternLM/opencompass/blob/main/LICENSE)
|
2023-07-08 10:42:30 +08:00
|
|
|
|
|
2023-07-07 17:08:33 +08:00
|
|
|
|
<!-- [](https://pypi.org/project/opencompass/) -->
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
[🌐Website](https://opencompass.org.cn/) |
|
2023-07-08 16:40:24 +08:00
|
|
|
|
[📘Documentation](https://opencompass.readthedocs.io/zh_CN/latest/index.html) |
|
2023-07-27 17:15:25 +08:00
|
|
|
|
[🛠️Installation](https://opencompass.readthedocs.io/zh_CN/latest/get_started.html#id1) |
|
2023-07-04 21:34:55 +08:00
|
|
|
|
[🤔Reporting Issues](https://github.com/InternLM/opencompass/issues/new/choose)
|
|
|
|
|
|
|
|
|
|
[English](/README.md) | 简体中文
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-07-14 15:33:43 +08:00
|
|
|
|
<p align="center">
|
2023-07-27 17:19:35 +08:00
|
|
|
|
👋 加入我们的<a href="https://twitter.com/intern_lm" target="_blank">推特</a>、<a href="https://discord.gg/xa29JuW87d" target="_blank">Discord</a> 和 <a href="https://r.vansin.top/?r=internwx" target="_blank">微信社区</a>
|
2023-07-14 15:33:43 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 🧭 欢迎
|
|
|
|
|
|
|
|
|
|
来到**OpenCompass**!
|
2023-07-06 12:14:23 +08:00
|
|
|
|
|
|
|
|
|
就像指南针在我们的旅程中为我们导航一样,我们希望OpenCompass能够帮助你穿越评估大型语言模型的重重迷雾。OpenCompass提供丰富的算法和功能支持,期待OpenCompass能够帮助社区更便捷地对NLP模型的性能进行公平全面的评估。
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 🚀 最新进展 <a><img width="35" height="20" src="https://user-images.githubusercontent.com/12782558/212848161-5e783dd6-11e8-4fe0-bbba-39ffb77730be.png"></a>
|
2023-07-19 19:51:29 +08:00
|
|
|
|
|
2023-08-10 18:52:09 +08:00
|
|
|
|
- **\[2023.08.10\]** OpenCompass 现已适配 [LMDeploy](https://github.com/InternLM/lmdeploy). 请参考 [评测指南](https://opencompass.readthedocs.io/zh_CN/latest/advanced_guides/evaluation_turbomind.html) 对 **Turbomind** 加速后的模型进行评估. 🔥🔥🔥.
|
|
|
|
|
- **\[2023.08.10\]** [Qwen-7B](https://github.com/QwenLM/Qwen-7B) 和 [XVERSE-13B](https://github.com/xverse-ai/XVERSE-13B)的评测结果已更新在 OpenCompass [大语言模型评测榜单](https://opencompass.org.cn/leaderboard-llm)! 🔥🔥🔥.
|
|
|
|
|
- **\[2023.08.09\]** 更新更多评测数据集(**CMMLU, TydiQA, SQuAD2.0, DROP**) ,请登录 [大语言模型评测榜单](https://opencompass.org.cn/leaderboard-llm) 查看更多结果! 欢迎添加你的评测数据集到OpenCompass.
|
|
|
|
|
- **\[2023.08.07\]** 新增了 [MMBench 评测脚本](tools/eval_mmbench.py) 以支持用户自行获取 [MMBench](https://opencompass.org.cn/MMBench)-dev 的测试结果.
|
|
|
|
|
- **\[2023.08.05\]** [GPT-4](https://openai.com/gpt-4) 的评测结果已更新在 OpenCompass [大语言模型评测榜单](https://opencompass.org.cn/leaderboard-llm)!
|
|
|
|
|
- **\[2023.07.27\]** 新增了 [CMMLU](https://github.com/haonan-li/CMMLU)! 欢迎更多的数据集加入 OpenCompass.
|
|
|
|
|
- **\[2023.07.21\]** Llama-2 的评测结果已更新在 OpenCompass [大语言模型评测榜单](https://opencompass.org.cn/leaderboard-llm)!
|
|
|
|
|
- **\[2023.07.19\]** 新增了 [Llama-2](https://ai.meta.com/llama/)!我们近期将会公布其评测结果。\[[文档](./docs/zh_cn/get_started.md#安装)\]。
|
|
|
|
|
- **\[2023.07.13\]** 发布了 [MMBench](https://opencompass.org.cn/MMBench),该数据集经过细致整理,用于评测多模态模型全方位能力。
|
2023-07-19 19:51:29 +08:00
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## ✨ 介绍
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
OpenCompass 是面向大模型评测的一站式平台。其主要特点如下:
|
|
|
|
|
|
|
|
|
|
- **开源可复现**:提供公平、公开、可复现的大模型评测方案
|
|
|
|
|
|
|
|
|
|
- **全面的能力维度**:五大维度设计,提供 50+ 个数据集约 30 万题的的模型评测方案,全面评估模型能力
|
|
|
|
|
|
|
|
|
|
- **丰富的模型支持**:已支持 20+ HuggingFace 及 API 模型
|
|
|
|
|
|
|
|
|
|
- **分布式高效评测**:一行命令实现任务分割和分布式评测,数小时即可完成千亿模型全量评测
|
|
|
|
|
|
|
|
|
|
- **多样化评测范式**:支持零样本、小样本及思维链评测,结合标准型或对话型提示词模板,轻松激发各种模型最大性能
|
|
|
|
|
|
|
|
|
|
- **灵活化拓展**:想增加新模型或数据集?想要自定义更高级的任务分割策略,甚至接入新的集群管理系统?OpenCompass 的一切均可轻松扩展!
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 📊 性能榜单
|
2023-07-06 12:14:23 +08:00
|
|
|
|
|
|
|
|
|
我们将陆续提供开源模型和API模型的具体性能榜单,请见 [OpenCompass Leaderbaord](https://opencompass.org.cn/rank) 。如需加入评测,请提供模型仓库地址或标准的 API 接口至邮箱 `opencompass@pjlab.org.cn`.
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
<p align="right"><a href="#top">🔝返回顶部</a></p>
|
2023-07-06 12:14:23 +08:00
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 📖 数据集支持
|
2023-07-06 12:14:23 +08:00
|
|
|
|
|
|
|
|
|
<table align="center">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr align="center" valign="bottom">
|
|
|
|
|
<td>
|
|
|
|
|
<b>语言</b>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<b>知识</b>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<b>推理</b>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2023-07-06 12:54:25 +08:00
|
|
|
|
<b>学科</b>
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<b>理解</b>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr valign="top">
|
|
|
|
|
<td>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>字词释义</b></summary>
|
|
|
|
|
|
|
|
|
|
- WiC
|
|
|
|
|
- SummEdits
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>成语习语</b></summary>
|
|
|
|
|
|
|
|
|
|
- CHID
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>语义相似度</b></summary>
|
|
|
|
|
|
|
|
|
|
- AFQMC
|
|
|
|
|
- BUSTM
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>指代消解</b></summary>
|
|
|
|
|
|
|
|
|
|
- CLUEWSC
|
|
|
|
|
- WSC
|
|
|
|
|
- WinoGrande
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>翻译</b></summary>
|
|
|
|
|
|
|
|
|
|
- Flores
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>知识问答</b></summary>
|
|
|
|
|
|
|
|
|
|
- BoolQ
|
|
|
|
|
- CommonSenseQA
|
|
|
|
|
- NaturalQuestion
|
|
|
|
|
- TrivialQA
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>多语种问答</b></summary>
|
|
|
|
|
|
|
|
|
|
- TyDi-QA
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>文本蕴含</b></summary>
|
|
|
|
|
|
|
|
|
|
- CMNLI
|
|
|
|
|
- OCNLI
|
|
|
|
|
- OCNLI_FC
|
|
|
|
|
- AX-b
|
|
|
|
|
- AX-g
|
|
|
|
|
- CB
|
|
|
|
|
- RTE
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>常识推理</b></summary>
|
|
|
|
|
|
|
|
|
|
- StoryCloze
|
|
|
|
|
- StoryCloze-CN(即将上线)
|
|
|
|
|
- COPA
|
|
|
|
|
- ReCoRD
|
|
|
|
|
- HellaSwag
|
|
|
|
|
- PIQA
|
|
|
|
|
- SIQA
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>数学推理</b></summary>
|
|
|
|
|
|
|
|
|
|
- MATH
|
|
|
|
|
- GSM8K
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>定理应用</b></summary>
|
|
|
|
|
|
|
|
|
|
- TheoremQA
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>代码</b></summary>
|
|
|
|
|
|
|
|
|
|
- HumanEval
|
|
|
|
|
- MBPP
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>综合推理</b></summary>
|
|
|
|
|
|
|
|
|
|
- BBH
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>初中/高中/大学/职业考试</b></summary>
|
|
|
|
|
|
|
|
|
|
- GAOKAO-2023
|
|
|
|
|
- CEval
|
|
|
|
|
- AGIEval
|
|
|
|
|
- MMLU
|
|
|
|
|
- GAOKAO-Bench
|
2023-07-31 18:26:46 +08:00
|
|
|
|
- CMMLU
|
2023-07-06 12:14:23 +08:00
|
|
|
|
- ARC
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>阅读理解</b></summary>
|
|
|
|
|
|
|
|
|
|
- C3
|
|
|
|
|
- CMRC
|
|
|
|
|
- DRCD
|
|
|
|
|
- MultiRC
|
|
|
|
|
- RACE
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>内容总结</b></summary>
|
|
|
|
|
|
|
|
|
|
- CSL
|
|
|
|
|
- LCSTS
|
|
|
|
|
- XSum
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
|
<summary><b>内容分析</b></summary>
|
|
|
|
|
|
|
|
|
|
- EPRSTMT
|
|
|
|
|
- LAMBADA
|
|
|
|
|
- TNEWS
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
<p align="right"><a href="#top">🔝返回顶部</a></p>
|
|
|
|
|
|
|
|
|
|
## 📖 模型支持
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
<table align="center">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr align="center" valign="bottom">
|
|
|
|
|
<td>
|
2023-07-06 12:54:25 +08:00
|
|
|
|
<b>开源模型</b>
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<b>API 模型</b>
|
|
|
|
|
</td>
|
2023-07-06 12:54:25 +08:00
|
|
|
|
<!-- <td>
|
2023-07-06 12:14:23 +08:00
|
|
|
|
<b>自定义模型</b>
|
2023-07-06 12:54:25 +08:00
|
|
|
|
</td> -->
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr valign="top">
|
|
|
|
|
<td>
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
- LLaMA
|
|
|
|
|
- Vicuna
|
|
|
|
|
- Alpaca
|
|
|
|
|
- Baichuan
|
|
|
|
|
- WizardLM
|
|
|
|
|
- ChatGLM-6B
|
|
|
|
|
- ChatGLM2-6B
|
|
|
|
|
- MPT
|
|
|
|
|
- Falcon
|
|
|
|
|
- TigerBot
|
|
|
|
|
- MOSS
|
|
|
|
|
- ……
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 13:21:00 +08:00
|
|
|
|
- OpenAI
|
2023-07-06 12:14:23 +08:00
|
|
|
|
- Claude (即将推出)
|
|
|
|
|
- PaLM (即将推出)
|
|
|
|
|
- ……
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</td>
|
2023-07-06 12:54:25 +08:00
|
|
|
|
<!-- <td>
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:14:23 +08:00
|
|
|
|
- GLM
|
|
|
|
|
- ……
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-06 12:54:25 +08:00
|
|
|
|
</td> -->
|
2023-07-06 12:14:23 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 🛠️ 安装
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-27 17:15:25 +08:00
|
|
|
|
下面展示了快速安装以及准备数据集的步骤。
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
|
|
|
|
```Python
|
2023-07-08 10:42:30 +08:00
|
|
|
|
conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
|
2023-07-04 21:34:55 +08:00
|
|
|
|
conda activate opencompass
|
|
|
|
|
git clone https://github.com/InternLM/opencompass opencompass
|
|
|
|
|
cd opencompass
|
|
|
|
|
pip install -e .
|
|
|
|
|
# 下载数据集到 data/ 处
|
2023-07-31 18:26:46 +08:00
|
|
|
|
wget https://github.com/InternLM/opencompass/releases/download/0.1.1/OpenCompassData.zip
|
2023-07-06 15:47:09 +08:00
|
|
|
|
unzip OpenCompassData.zip
|
2023-07-04 21:34:55 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-07-27 17:15:25 +08:00
|
|
|
|
有部分第三方功能,如 Humaneval 以及 Llama,可能需要额外步骤才能正常运行,详细步骤请参考[安装指南](https://opencompass.readthedocs.io/zh_CN/latest/get_started.html)。
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
<p align="right"><a href="#top">🔝返回顶部</a></p>
|
|
|
|
|
|
|
|
|
|
## 🏗️ ️评测
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-07-27 17:15:25 +08:00
|
|
|
|
确保按照上述步骤正确安装 OpenCompass 并准备好数据集后,请阅读[快速上手](https://opencompass.readthedocs.io/zh_CN/latest/get_started.html#id3)了解如何运行一个评测任务。
|
|
|
|
|
|
|
|
|
|
更多教程请查看我们的[文档](https://opencompass.readthedocs.io/zh_CN/latest/index.html)。
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 🤝 致谢
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
|
|
|
|
该项目部分的代码引用并修改自 [OpenICL](https://github.com/Shark-NLP/OpenICL)。
|
|
|
|
|
|
2023-08-02 10:16:53 +08:00
|
|
|
|
该项目部分的数据集和提示词实现修改自 [chain-of-thought-hub](https://github.com/FranxYao/chain-of-thought-hub), [instruct-eval](https://github.com/declare-lab/instruct-eval)
|
|
|
|
|
|
2023-08-08 12:49:04 +08:00
|
|
|
|
## 🖊️ 引用
|
2023-07-04 21:34:55 +08:00
|
|
|
|
|
|
|
|
|
```bibtex
|
|
|
|
|
@misc{2023opencompass,
|
|
|
|
|
title={OpenCompass: A Universal Evaluation Platform for Foundation Models},
|
|
|
|
|
author={OpenCompass Contributors},
|
|
|
|
|
howpublished = {\url{https://github.com/InternLM/OpenCompass}},
|
|
|
|
|
year={2023}
|
|
|
|
|
}
|
|
|
|
|
```
|
2023-08-08 12:49:04 +08:00
|
|
|
|
|
|
|
|
|
<p align="right"><a href="#top">🔝返回顶部</a></p>
|