Giter Club home page Giter Club logo

cibench's Introduction

CIBench: Evaluating Your LLMs with a Code Interpreter Plugin

license

โœจ Introduction

This is an evaluation harness for the benchmark described in CIBench: Evaluating Your LLMs with a Code Interpreter Plugin.

[Project Page] [LeaderBoard]

While LLM-Based agents, which use external tools to solve complex problems, have made significant progress, benchmarking their ability is challenging, thereby hindering a clear understanding of their limitations. In this paper, we propose an interactive evaluation framework, named CIBench, to comprehensively assess LLMs' ability to utilize code interpreters for data science tasks. Our evaluation framework includes an evaluation dataset and two evaluation modes. The evaluation dataset is constructed using an LLM-human cooperative approach and simulates an authentic workflow by leveraging consecutive and interactive IPython sessions. The two evaluation modes assess LLMs' ability with and without human assistance. We conduct extensive experiments to analyze the ability of 24 LLMs on CIBench and provide valuable insights for future LLMs in code interpreter utilization.

๐Ÿ› ๏ธ Preparations

CIBench is evaluated based on OpenCompass. Please first install opencompass.

conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
conda activate opencompass
git clone https://github.com/open-compass/opencompass opencompass
cd opencompass
pip install -e .
pip install requirements/agent.txt

Then,

cd ..
git clone https://github.com/open-compass/CIBench.git
cd CIBench

move the cibench_eval to the opencompass/config

๐Ÿ’พ Test Data

You can download the CIBench from here.

Then, unzip the dataset and place the dataset in OpenCompass/data. The data path should be like OpenCompass/data/cibench_dataset/cibench_{generation or template}.

Finally, using the following scripts to download the nessceary data.

cd OpenCompass/data/cibench_dataset
sh collect_datasources.sh

๐Ÿค— HuggingFace Models

  1. Download the huggingface model to your local path.
  1. Run the model with the following scripts in the opencompass dir.
python run.py config/cibench_eval/eval_cibench_hf.py

Note that the currently accelerator config (-a lmdeploy) doesnot support CodeAgent model. If you want to use lmdeploy to acclerate the evaluation, please refer to lmdeploy_internlm2_chat_7b to write the model config by yourself.

๐Ÿ’ซ Final Results

Once you finish all tested samples, you can check the results in outputs/cibench.

Note that the output images will be saved in output_images.

๐Ÿ“Š Benchmark Results

More detailed and comprehensive benchmark results can refer to ๐Ÿ† CIBench official leaderboard !

โค๏ธ Acknowledgements

CIBench is built with Lagent and OpenCompass. Thanks for their awesome work!

๐Ÿ’ณ License

This project is released under the Apache 2.0 license.

cibench's People

Contributors

kleinzcy avatar

Watchers

Songyang Zhang avatar Ma Zerun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.