A CLI and library for evaluating prompts and red-teaming LLM apps, with declarative configs and CI/CD integration.
open-compass/opencompass
An open-source one-stop platform for evaluating large language models across 100+ datasets and many model providers and inference backends.
- Stars
- 7,531
- Forks
- 888
- Open issues
- 376
- Last commit
- 4 hours ago
What is it?
OpenCompass is a platform for benchmarking large language models. It supports models from providers such as OpenAI, Anthropic, Gemini, Qwen, GLM and DeepSeek, along with local open-source models, and covers more than 100 datasets spanning knowledge, reasoning, coding, science, language, long context and safety.
The project provides an end-to-end workflow: dataset and model configuration, inference, evaluation and result summarization. Inference can run through HuggingFace, LMDeploy or vLLM backends, and evaluation supports zero-shot, few-shot, chain-of-thought, rule-based and LLM-as-judge methods. Task partitioning, concurrent and distributed execution let it scale to different workloads.
OpenCompass also integrates VLMEvalKit so text-only and vision-language datasets can be run in one workflow. New models, datasets, evaluators and inference backends can be added through its extension points.
Key features
- 01Supports API models such as OpenAI, Anthropic Claude and Google Gemini, and local open-source models.
- 02Covers over 100 datasets across knowledge, reasoning, coding, science, long context and safety.
- 03Runs inference through HuggingFace, LMDeploy or vLLM backends.
- 04Offers rule-based, LLM-as-judge and math verification evaluators.
- 05Supports task partitioning, concurrent and distributed execution.
- 06Integrates VLMEvalKit for vision-language dataset evaluation.
Use cases
- Comparing several open-source or API LLMs on a shared set of benchmarks.
- Running reproducible evaluations of a model during development or fine-tuning.
- Evaluating multimodal models on text and vision-language benchmarks in one workflow.
Quick start
- 1
Create a conda environment with Python 3.12
conda create --name opencompass python=3.12 -y - 2
Activate the environment
conda activate opencompass - 3
Install OpenCompass via pip
pip install -U opencompass - 4
Read the Quick Start guide in the documentation to run your first evaluation
Things to know
- Some datasets (APPS, TACO, LiveCodeBench code generation) require Python 3.10 because of the pyext dependency.
- Inference backends such as LMDeploy and vLLM must be installed separately because of conflicting dependencies.
Topics
FAQ
- What is opencompass?
- An open-source one-stop platform for evaluating large language models across 100+ datasets and many model providers and inference backends. OpenCompass is a platform for benchmarking large language models. It supports models from providers such as OpenAI, Anthropic, Gemini, Qwen, GLM and DeepSeek, along with local open-source models, and covers more than 100 datasets spanning knowledge, reasoning, coding, science, language, long context and safety.
- Is opencompass free to use? What license does it have?
- opencompass is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is opencompass still maintained?
- Actively maintained. The last commit to opencompass was on Oct 21, 2026.
- What can I use opencompass for?
- Comparing several open-source or API LLMs on a shared set of benchmarks. Running reproducible evaluations of a model during development or fine-tuning. Evaluating multimodal models on text and vision-language benchmarks in one workflow.
- How do I install opencompass?
- Create a conda environment with Python 3.12: conda create --name opencompass python=3.12 -y Activate the environment: conda activate opencompass Install OpenCompass via pip: pip install -U opencompass Read the Quick Start guide in the documentation to run your first evaluation
- Where can I get opencompass?
- The source code and installation instructions are on GitHub: https://github.com/open-compass/opencompass
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A customizable framework for evaluating LLMs, VLMs and AIGC models on benchmarks, plus inference performance stress testing and result dashboards.
A unified framework for running few-shot evaluations of language models across dozens of standard academic benchmarks.
A benchmark and evaluation harness that tests whether language models can resolve real GitHub issues by generating patches verified in Docker.
A public leaderboard ranking LLMs by how often they hallucinate when summarizing short documents, scored with Vectara's HHEM evaluation model.
A benchmark and execution environment for evaluating multimodal AI agents on open-ended computer tasks in real desktop operating systems.