Generates CSVs of the LMArena Leaderboard in Python.
The latest LMArena CSVs can be downloaded from the Releases page.
Previously, CSVs were also generated for the v1 and v2 Huggingface Open LLM Leaderboard in R but this leaderboard has been retired. The latest code and versions of those CSVs is in the v1.3.0 release.
Tip
Delete the csv directory before running the code if you want to recreate the CSVs using the latest data.
The code is in huggingface.py:
# run the code to generate the leaderboard data frames
uv run huggingface.pyA Dockerfile is also provided to build and run the code using the official uv Docker image:
docker build . --tag llm-leaderboard-csv
docker run -v ./csv:/home/uv/csv --rm llm-leaderboard-csv