开源AI评估 是 AI Skill Hub 本期精选AI工具之一。已获得 7.1k 颗 GitHub Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
开源AI评估 是一款基于 Python 开发的开源工具,专注于 LLM、benchmark、chatgpt 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
开源AI评估 是一款基于 Python 开发的开源工具,专注于 LLM、benchmark、chatgpt 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install opencompass
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install opencompass
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/open-compass/opencompass
cd opencompass
pip install -e .
# 验证安装
python -c "import opencompass; print('安装成功')"
# 命令行使用
opencompass --help
# 基本用法
opencompass input_file -o output_file
# Python 代码中调用
import opencompass
# 示例
result = opencompass.process("input")
print(result)
# opencompass 配置文件示例(config.yml) app: name: "opencompass" debug: false log_level: "INFO" # 运行时指定配置文件 opencompass --config config.yml # 或通过环境变量配置 export OPENCOMPASS_API_KEY="your-key" export OPENCOMPASS_OUTPUT_DIR="./output"
[![][github-release-shield]][github-release-link] [![][github-releasedate-shield]][github-releasedate-link] [![][github-contributors-shield]][github-contributors-link]<br> [![][github-forks-shield]][github-forks-link] [![][github-stars-shield]][github-stars-link] [![][github-issues-shield]][github-issues-link] [![][github-license-shield]][github-license-link]
🌐Website | 📖CompassHub | 📊CompassRank | 📘Documentation | 🛠️Installation | 🤔Reporting Issues
English | 简体中文
[![][github-trending-shield]][github-trending-url]
</div>
<p align="center"> 👋 join us on <a href="https://discord.gg/KKwfEbFj7U" target="_blank">Discord</a> and <a href="https://r.vansin.top/?r=opencompass" target="_blank">WeChat</a> </p>
\[!IMPORTANT\] Star Us, You will receive all release notifications from GitHub without any delay ~ ⭐️
<details> <summary><kbd>Star History</kbd></summary> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=open-compass%2Fopencompass&theme=dark&type=Date"> <img width="100%" src="https://api.star-history.com/svg?repos=open-compass%2Fopencompass&type=Date"> </picture> </details>
OpenCompass is a one-stop platform for large model evaluation, aiming to provide a fair, open, and reproducible benchmark for large model evaluation. Its main features include:
CascadeEvaluator, a flexible evaluation mechanism that allows multiple evaluators to work in sequence. This enables creating customized evaluation pipelines for complex assessment scenarios. Check out the documentation for more details! 🔥🔥🔥SuperGPQA which is a great benchmark for measuring LLM knowledge ability 🔥🔥🔥DeepSeek-R1 series model, please check Evaluating Reasoning Model for more details! 🔥🔥🔥GenericLLMEvaluator for LLM-as-judge evaluations and MATHVerifyEvaluator for mathematical reasoning assessments. Check out the documentation for LLM Judge and Math Evaluation for more details! 🔥🔥🔥o1-mini-2024-09-12 and o1-preview-2024-09-12). Feel free to give them a try! 🔥🔥🔥More
Below are the steps for quick installation and datasets preparation.
We highly recommend using conda to manage your python environment.
conda create --name opencompass python=3.10 -y
conda activate opencompass
pip install -U opencompass
## Full installation (with support for more datasets)
# pip install "opencompass[full]"
## Environment with model acceleration frameworks
## Manage different acceleration frameworks using virtual environments
## since they usually have dependency conflicts with each other.
# pip install "opencompass[lmdeploy]"
# pip install "opencompass[vllm]"
## API evaluation (i.e. Openai, Qwen)
# pip install "opencompass[api]"
If you want to use opencompass's latest features, or develop new features, you can also build it from source
git clone https://github.com/open-compass/opencompass opencompass
cd opencompass
pip install -e .
# pip install -e ".[full]"
# pip install -e ".[vllm]"
python tools/list_configs.py
opencompass --datasets aime2024_gen --models hf_internlm2_5_1_8b_chat
opencompass --datasets aime2024_llmjudge_gen --models hf_internlm2_5_1_8b_chat
If you want to use multiple GPUs to evaluate the model in data parallel, you can use `--max-num-worker`.
bash CUDA_VISIBLE_DEVICES=0,1 opencompass --datasets demo_gsm8k_chat_gen --hf-type chat --hf-path internlm/internlm2_5-1_8b-chat --max-num-worker 2 ```
\[!TIP\]--hf-num-gpusis used for model parallel(huggingface format),--max-num-workeris used for data parallel.
\[!TIP\] configuration with_pplis designed for base model typically. configuration with_gencan be used for both base model and chat model.
Through the command line or configuration files, OpenCompass also supports evaluating APIs or custom models, as well as more diversified evaluation strategies. Please read the Quick Start to learn how to run an evaluation task.
<p align="right"><a href="#top">🔝Back to top</a></p>
OpenCompass, by its design, does not really discriminate between open-source models and API models. You can evaluate both model types in the same way or even in one settings.
```bash export OPENAI_API_KEY="YOUR_OPEN_API_KEY"
OpenCompass has predefined configurations for many models and datasets. You can list all available model and dataset configurations using the tools.
```bash
高质量的LLM评估平台,支持多种模型
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,开源AI评估 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | opencompass |
| Topics | LLMbenchmarkchatgptevaluation |
| GitHub | https://github.com/open-compass/opencompass |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-05 · 更新时间:2026-06-05 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。