CoolFace
Apppublic

kostis-init/CP-Bench-Leaderboard

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
3likes
App README
[!IMPORTANT] CP-Bench has been superseded by DCP-Bench-Open. This repository is kept for archival and reproducibility purposes only. Please use the current version here: DCP-Bench/DCP-Bench-Open.

๐Ÿš€ CP-Bench Leaderboard

This repository contains the leaderboard of the CP-Bench dataset.

๐Ÿ“ Structure

  • โ€”app.py โ€” Launches the Gradio interface.
  • โ€”src/ โ€” Contains the main logic for fetching and displaying leaderboard data.'
  • โ€”config.py โ€” Configuration for the leaderboard.
  • โ€”eval.py โ€” Evaluation logic for model submissions.
  • โ€”hf_utils.py โ€” Utilities file.
  • โ€”ui.py โ€” UI components for displaying the leaderboard.
  • โ€”user_eval.py โ€” The logic for the evaluation of submitted models, it can also be used to evaluate models locally.
  • โ€”README.md โ€” (you are here)

๐Ÿง  How It Works

  1. 1.Users submit a .jsonl file with their generated models
  2. 2.The submission is uploaded to a storage repository (Hugging Face Hub).
  3. 3.An evaluation script is triggered, which:
  4. 4.Loads the submission.
  5. 5.Evaluates the models against the benchmark dataset.
  6. 6.Computes metrics.
  7. 7.The results are stored and displayed on the leaderboard.

๐Ÿ› ๏ธ Development

To run locally:

bash
pip install -r requirements.txt
python app.py

If you wish to contribute or modify the leaderboard, feel free to open discussions or pull requests. For adding more modelling frameworks, please modify the src/user_eval.py file to include the execution code for the new framework.