δΈζ Β ο½ Β English Β
π δΈζζζ‘£ Β ο½ Β π English Documents
β If you like this project, please click the "Star" button at the top right to support us. Your support is our motivation to keep going!
- π Contents
- π Introduction
- β User Groups
- π News
- π οΈ Installation
- π Quick Start
- π Visualization of Evaluation Results
- π Evaluation of Model API
- βοΈ Custom Parameter Evaluation
- π§ͺ Other Evaluation Backends
- π Model Serving Performance Evaluation
- ποΈ Custom Dataset Evaluation
- βοΈ Arena Mode
- π·ββοΈ Contribution
- π Citation
- π Roadmap
- β Star History
EvalScope is a comprehensive model evaluation and performance benchmarking framework meticulously crafted by the ModelScope Community, offering a one-stop solution for your model assessment needs. Regardless of the type of model you are developing, EvalScope is equipped to cater to your requirements:
- π§ Large Language Models
- π¨ Multimodal Models
- π Embedding Models
- π Reranker Models
- πΌοΈ CLIP Models
- π AIGC Models (Image-to-Text/Video)
- ...and more!
EvalScope is not merely an evaluation tool; it is a valuable ally in your model optimization journey:
- π Equipped with multiple industry-recognized benchmarks and evaluation metrics: MMLU, CMMLU, C-Eval, GSM8K, etc.
- π Model inference performance stress testing: Ensuring your model excels in real-world applications.
- π Seamless integration with the ms-swift training framework, enabling one-click evaluations and providing full-chain support from training to assessment for your model development.
Below is the overall architecture diagram of EvalScope:
Framework Description
The architecture includes the following modules:
- Input Layer
- Model Sources: API models (OpenAI API), local models (ModelScope)
- Datasets: Standard evaluation benchmarks (MMLU/GSM8k, etc.), custom data (MCQ/QA)
- Core Functions
-
Multi-backend Evaluation
- Native backends: Unified evaluation for LLM/VLM/Embedding/T2I models
- Integrated frameworks: OpenCompass/MTEB/VLMEvalKit/RAGAS
-
Performance Monitoring
- Model plugins: Supports various model service APIs
- Data plugins: Supports multiple data formats
- Metric tracking: TTFT/TPOP/Stability and other metrics
-
Tool Extensions
- Integration: Tool-Bench/Needle-in-a-Haystack/BFCL-v3
- Output Layer
- Structured Reports: Supports JSON/Tables/Logs
- Visualization Platforms: Supports Gradio/Wandb/SwanLab
Please scan the QR code below to join our community groups:
Discord Group | WeChat Group | DingTalk Group |
---|---|---|
![]() |
![]() |
![]() |
- π₯ [2025.07.16] Support for Ο-bench has been added, enabling the evaluation of AI Agent performance and reliability in real-world scenarios involving dynamic user and tool interactions. For usage instructions, please refer to the documentation.
- π₯ [2025.07.14] Support for "Humanity's Last Exam" (Humanity's-Last-Exam), a highly challenging evaluation benchmark. For usage instructions, refer to the documentation.
- π₯ [2025.07.03] Refactored Arena Mode: now supports custom model battles, outputs a model leaderboard, and provides battle result visualization. See reference for details.
- π₯ [2025.06.28] Optimized custom dataset evaluation: now supports evaluation without reference answers. Enhanced LLM judge usage, with built-in modes for "scoring directly without reference answers" and "checking answer consistency with reference answers". See reference for details.
- π₯ [2025.06.19] Added support for the BFCL-v3 benchmark, designed to evaluate model function-calling capabilities across various scenarios. For more information, refer to the documentation.
- π₯ [2025.06.02] Added support for the Needle-in-a-Haystack test. Simply specify
needle_haystack
to conduct the test, and a corresponding heatmap will be generated in theoutputs/reports
folder, providing a visual representation of the model's performance. Refer to the documentation for more details. - π₯ [2025.05.29] Added support for two long document evaluation benchmarks: DocMath and FRAMES. For usage guidelines, please refer to the documentation.
- π₯ [2025.05.16] Model service performance stress testing now supports setting various levels of concurrency and outputs a performance test report. Reference example.
- π₯ [2025.05.13] Added support for the ToolBench-Static dataset to evaluate model's tool-calling capabilities. Refer to the documentation for usage instructions. Also added support for the DROP and Winogrande benchmarks to assess the reasoning capabilities of models.
- π₯ [2025.04.29] Added Qwen3 Evaluation Best Practices, welcome to read π
- π₯ [2025.04.27] Support for text-to-image evaluation: Supports 8 metrics including MPS, HPSv2.1Score, etc., and evaluation benchmarks such as EvalMuse, GenAI-Bench. Refer to the user documentation for more details.
- π₯ [2025.04.10] Model service stress testing tool now supports the
/v1/completions
endpoint (the default endpoint for vLLM benchmarking) - π₯ [2025.04.08] Support for evaluating embedding model services compatible with the OpenAI API has been added. For more details, check the user guide.
More
- π₯ [2025.03.27] Added support for AlpacaEval and ArenaHard evaluation benchmarks. For usage notes, please refer to the documentation
- π₯ [2025.03.20] The model inference service stress testing now supports generating prompts of specified length using random values. Refer to the user guide for more details.
- π₯ [2025.03.13] Added support for the LiveCodeBench code evaluation benchmark, which can be used by specifying
live_code_bench
. Supports evaluating QwQ-32B on LiveCodeBench, refer to the best practices. - π₯ [2025.03.11] Added support for the SimpleQA and Chinese SimpleQA evaluation benchmarks. These are used to assess the factual accuracy of models, and you can specify
simple_qa
andchinese_simpleqa
for use. Support for specifying a judge model is also available. For more details, refer to the relevant parameter documentation. - π₯ [2025.03.07] Added support for the QwQ-32B model, evaluate the model's reasoning ability and reasoning efficiency, refer to π Best Practices for QwQ-32B Evaluation for more details.
- π₯ [2025.03.04] Added support for the SuperGPQA dataset, which covers 13 categories, 72 first-level disciplines, and 285 second-level disciplines, totaling 26,529 questions. You can use it by specifying
super_gpqa
. - π₯ [2025.03.03] Added support for evaluating the IQ and EQ of models. Refer to π Best Practices for IQ and EQ Evaluation to find out how smart your AI is!
- π₯ [2025.02.27] Added support for evaluating the reasoning efficiency of models. Refer to π Best Practices for Evaluating Thinking Efficiency. This implementation is inspired by the works Overthinking and Underthinking.
- π₯ [2025.02.25] Added support for two model inference-related evaluation benchmarks: MuSR and ProcessBench. To use them, simply specify
musr
andprocess_bench
respectively in the datasets parameter. - π₯ [2025.02.18] Supports the AIME25 dataset, which contains 15 questions (Grok3 scored 93 on this dataset).
- π₯ [2025.02.13] Added support for evaluating DeepSeek distilled models, including AIME24, MATH-500, and GPQA-Diamond datasetsοΌrefer to best practice; Added support for specifying the
eval_batch_size
parameter to accelerate model evaluation. - π₯ [2025.01.20] Support for visualizing evaluation results, including single model evaluation results and multi-model comparison, refer to the π Visualizing Evaluation Results for more details; Added
iquiz
evaluation example, evaluating the IQ and EQ of the model. - π₯ [2025.01.07] Native backend: Support for model API evaluation is now available. Refer to the π Model API Evaluation Guide for more details. Additionally, support for the
ifeval
evaluation benchmark has been added. - π₯π₯ [2024.12.31] Support for adding benchmark evaluations, refer to the π Benchmark Evaluation Addition Guide; support for custom mixed dataset evaluations, allowing for more comprehensive model evaluations with less data, refer to the π Mixed Dataset Evaluation Guide.
- π₯ [2024.12.13] Model evaluation optimization: no need to pass the
--template-type
parameter anymore; supports starting evaluation withevalscope eval --args
. Refer to the π User Guide for more details. - π₯ [2024.11.26] The model inference service performance evaluator has been completely refactored: it now supports local inference service startup and Speed Benchmark; asynchronous call error handling has been optimized. For more details, refer to the π User Guide.
- π₯ [2024.10.31] The best practice for evaluating Multimodal-RAG has been updated, please check the π Blog for more details.
- π₯ [2024.10.23] Supports multimodal RAG evaluation, including the assessment of image-text retrieval using CLIP_Benchmark, and extends RAGAS to support end-to-end multimodal metrics evaluation.
- π₯ [2024.10.8] Support for RAG evaluation, including independent evaluation of embedding models and rerankers using MTEB/CMTEB, as well as end-to-end evaluation using RAGAS.
- π₯ [2024.09.18] Our documentation has been updated to include a blog module, featuring some technical research and discussions related to evaluations. We invite you to π read it.
- π₯ [2024.09.12] Support for LongWriter evaluation, which supports 10,000+ word generation. You can use the benchmark LongBench-Write to measure the long output quality as well as the output length.
- π₯ [2024.08.30] Support for custom dataset evaluations, including text datasets and multimodal image-text datasets.
- π₯ [2024.08.20] Updated the official documentation, including getting started guides, best practices, and FAQs. Feel free to πread it here!
- π₯ [2024.08.09] Simplified the installation process, allowing for pypi installation of vlmeval dependencies; optimized the multimodal model evaluation experience, achieving up to 10x acceleration based on the OpenAI API evaluation chain.
- π₯ [2024.07.31] Important change: The package name
llmuses
has been changed toevalscope
. Please update your code accordingly. - π₯ [2024.07.26] Support for VLMEvalKit as a third-party evaluation framework to initiate multimodal model evaluation tasks.
- π₯ [2024.06.29] Support for OpenCompass as a third-party evaluation framework, which we have encapsulated at a higher level, supporting pip installation and simplifying evaluation task configuration.
- π₯ [2024.06.13] EvalScope seamlessly integrates with the fine-tuning framework SWIFT, providing full-chain support from LLM training to evaluation.
- π₯ [2024.06.13] Integrated the Agent evaluation dataset ToolBench.
We recommend using conda to manage your environment and installing dependencies with pip:
-
Create a conda environment (optional)
# It is recommended to use Python 3.10 conda create -n evalscope python=3.10 # Activate the conda environment conda activate evalscope
-
Install dependencies using pip
pip install evalscope # Install Native backend (default) # Additional options pip install 'evalscope[opencompass]' # Install OpenCompass backend pip install 'evalscope[vlmeval]' # Install VLMEvalKit backend pip install 'evalscope[rag]' # Install RAGEval backend pip install 'evalscope[perf]' # Install dependencies for the model performance testing module pip install 'evalscope[app]' # Install dependencies for visualization pip install 'evalscope[all]' # Install all backends (Native, OpenCompass, VLMEvalKit, RAGEval)
Warning
As the project has been renamed to evalscope
, for versions v0.4.3
or earlier, you can install using the following command:
pip install llmuses<=0.4.3
To import relevant dependencies using llmuses
:
from llmuses import ...
-
Download the source code
git clone https://github.com/modelscope/evalscope.git
-
Install dependencies
cd evalscope/ pip install -e . # Install Native backend # Additional options pip install -e '.[opencompass]' # Install OpenCompass backend pip install -e '.[vlmeval]' # Install VLMEvalKit backend pip install -e '.[rag]' # Install RAGEval backend pip install -e '.[perf]' # Install Perf dependencies pip install -e '.[app]' # Install visualization dependencies pip install -e '.[all]' # Install all backends (Native, OpenCompass, VLMEvalKit, RAGEval)
To evaluate a model on specified datasets using default configurations, this framework supports two ways to initiate evaluation tasks: using the command line or using Python code.
Execute the eval
command in any directory:
evalscope eval \
--model Qwen/Qwen2.5-0.5B-Instruct \
--datasets gsm8k arc \
--limit 5
When using Python code for evaluation, you need to submit the evaluation task using the run_task
function, passing a TaskConfig
as a parameter. It can also be a Python dictionary, yaml file path, or json file path, for example:
Using TaskConfig
from evalscope import run_task, TaskConfig
task_cfg = TaskConfig(
model='Qwen/Qwen2.5-0.5B-Instruct',
datasets=['gsm8k', 'arc'],
limit=5
)
run_task(task_cfg=task_cfg)
More Startup Methods
Using Python Dictionary
from evalscope.run import run_task
task_cfg = {
'model': 'Qwen/Qwen2.5-0.5B-Instruct',
'datasets': ['gsm8k', 'arc'],
'limit': 5
}
run_task(task_cfg=task_cfg)
Using yaml
file
config.yaml
:
model: Qwen/Qwen2.5-0.5B-Instruct
datasets:
- gsm8k
- arc
limit: 5
from evalscope.run import run_task
run_task(task_cfg="config.yaml")
Using json
file
config.json
:
{
"model": "Qwen/Qwen2.5-0.5B-Instruct",
"datasets": ["gsm8k", "arc"],
"limit": 5
}
from evalscope.run import run_task
run_task(task_cfg="config.json")
--model
: Specifies themodel_id
of the model in ModelScope, which can be automatically downloaded, e.g., Qwen/Qwen2.5-0.5B-Instruct; or use the local path of the model, e.g.,/path/to/model
--datasets
: Dataset names, supports inputting multiple datasets separated by spaces. Datasets will be automatically downloaded from modelscope. For supported datasets, refer to the Dataset List--limit
: Maximum amount of evaluation data for each dataset. If not specified, it defaults to evaluating all data. Can be used for quick validation
+-----------------------+----------------+-----------------+-----------------+---------------+-------+---------+
| Model Name | Dataset Name | Metric Name | Category Name | Subset Name | Num | Score |
+=======================+================+=================+=================+===============+=======+=========+
| Qwen2.5-0.5B-Instruct | gsm8k | AverageAccuracy | default | main | 5 | 0.4 |
+-----------------------+----------------+-----------------+-----------------+---------------+-------+---------+
| Qwen2.5-0.5B-Instruct | ai2_arc | AverageAccuracy | default | ARC-Easy | 5 | 0.8 |
+-----------------------+----------------+-----------------+-----------------+---------------+-------+---------+
| Qwen2.5-0.5B-Instruct | ai2_arc | AverageAccuracy | default | ARC-Challenge | 5 | 0.4 |
+-----------------------+----------------+-----------------+-----------------+---------------+-------+---------+
- Install the dependencies required for visualization, including gradio, plotly, etc.
pip install 'evalscope[app]'
- Start the Visualization Service
Run the following command to start the visualization service.
evalscope app
You can access the visualization service in the browser if the following output appears.
* Running on local URL: http://127.0.0.1:7861
To create a public link, set `share=True` in `launch()`.
![]() Setting Interface |
![]() Model Comparison |
![]() Report Overview |
![]() Report Details |
For more details, refer to: π Visualization of Evaluation Results
Specify the model API service address (api_url) and API Key (api_key) to evaluate the deployed model API service. In this case, the eval-type
parameter must be specified as service
, for example:
For example, to launch a model service using vLLM:
export VLLM_USE_MODELSCOPE=True && python -m vllm.entrypoints.openai.api_server --model Qwen/Qwen2.5-0.5B-Instruct --served-model-name qwen2.5 --trust_remote_code --port 8801
Then, you can use the following command to evaluate the model API service:
evalscope eval \
--model qwen2.5 \
--api-url http://127.0.0.1:8801/v1 \
--api-key EMPTY \
--eval-type service \
--datasets gsm8k \
--limit 10
For more customized evaluations, such as customizing model parameters or dataset parameters, you can use the following command. The evaluation startup method is the same as simple evaluation. Below shows how to start the evaluation using the eval
command:
evalscope eval \
--model Qwen/Qwen3-0.6B \
--model-args '{"revision": "master", "precision": "torch.float16", "device_map": "auto"}' \
--generation-config '{"do_sample":true,"temperature":0.6,"max_new_tokens":512,"chat_template_kwargs":{"enable_thinking": false}}' \
--dataset-args '{"gsm8k": {"few_shot_num": 0, "few_shot_random": false}}' \
--datasets gsm8k \
--limit 10
--model-args
: Model loading parameters, passed as a JSON string:revision
: Model versionprecision
: Model precisiondevice_map
: Device allocation for the model
--generation-config
: Generation parameters, passed as a JSON string and parsed as a dictionary:do_sample
: Whether to use samplingtemperature
: Generation temperaturemax_new_tokens
: Maximum length of generated tokenschat_template_kwargs
: Model inference template parameters
--dataset-args
: Settings for the evaluation dataset, passed as a JSON string where the key is the dataset name and the value is the parameters. Note that these need to correspond one-to-one with the values in the--datasets
parameter:few_shot_num
: Number of few-shot examplesfew_shot_random
: Whether to randomly sample few-shot data; if not set, defaults totrue
Reference: Full Parameter Description
EvalScope supports using third-party evaluation frameworks to initiate evaluation tasks, which we call Evaluation Backend. Currently supported Evaluation Backend includes:
- Native: EvalScope's own default evaluation framework, supporting various evaluation modes including single model evaluation, arena mode, and baseline model comparison mode.
- OpenCompass: Initiate OpenCompass evaluation tasks through EvalScope. Lightweight, easy to customize, supports seamless integration with the LLM fine-tuning framework ms-swift. π User Guide
- VLMEvalKit: Initiate VLMEvalKit multimodal evaluation tasks through EvalScope. Supports various multimodal models and datasets, and offers seamless integration with the LLM fine-tuning framework ms-swift. π User Guide
- RAGEval: Initiate RAG evaluation tasks through EvalScope, supporting independent evaluation of embedding models and rerankers using MTEB/CMTEB, as well as end-to-end evaluation using RAGAS: π User Guide
- ThirdParty: Third-party evaluation tasks, such as ToolBench and LongBench-Write.
A stress testing tool focused on large language models, which can be customized to support various dataset formats and different API protocol formats.
Reference: Performance Testing π User Guide
Output example
Supports wandb for recording results
Supports swanlab for recording results
Supports Speed Benchmark
It supports speed testing and provides speed benchmarks similar to those found in the official Qwen reports:
Speed Benchmark Results:
+---------------+-----------------+----------------+
| Prompt Tokens | Speed(tokens/s) | GPU Memory(GB) |
+---------------+-----------------+----------------+
| 1 | 50.69 | 0.97 |
| 6144 | 51.36 | 1.23 |
| 14336 | 49.93 | 1.59 |
| 30720 | 49.56 | 2.34 |
+---------------+-----------------+----------------+
EvalScope supports custom dataset evaluation. For detailed information, please refer to the Custom Dataset Evaluation πUser Guide
Arena mode allows you to configure multiple candidate models and specify a baseline model. Evaluation is performed by pairwise battles between each candidate model and the baseline model, with the final output including each model's win rate and ranking. This method is suitable for comparative evaluation among multiple models, providing an intuitive reflection of each model's strengths and weaknesses. Refer to: Arena Mode π User Guide
Model WinRate (%) CI (%)
------------ ------------- ---------------
qwen2.5-72b 69.3 (-13.3 / +12.2)
qwen2.5-7b 50 (+0.0 / +0.0)
qwen2.5-0.5b 4.7 (-2.5 / +4.4)
EvalScope, as the official evaluation tool of ModelScope, is continuously optimizing its benchmark evaluation features! We invite you to refer to the Contribution Guide to easily add your own evaluation benchmarks and share your contributions with the community. Letβs work together to support the growth of EvalScope and make our tools even better! Join us now!
|
---|
@misc{evalscope_2024,
title={{EvalScope}: Evaluation Framework for Large Models},
author={ModelScope Team},
year={2024},
url={https://github.com/modelscope/evalscope}
}
- Support for better evaluation report visualization
- Support for mixed evaluations across multiple datasets
- RAG evaluation
- VLM evaluation
- Agents evaluation
- vLLM
- Distributed evaluating
- Multi-modal evaluation
- Benchmarks
- BFCL-v3
- GPQA
- MBPP