Xent LLM Benchmarking System
Project description
About
Welcome to the Xent Benchmark Github 🥳
Some quick notes:
- Check out our website: xentlabs.ai
- View our paper: arXiv
Leaderboard
See more in depth results at xentlabs.ai
| Rank | Player ID | Score |
|---|---|---|
| 1 | gemini-2.5-pro | 65.86 |
| 2 | grok-4-0709 | 63.22 |
| 3 | gpt-5 | 62.77 |
| 4 | deepseek-reasoner | 62.67 |
| 5 | gemini-2.5-flash | 59.08 |
| 6 | claude-opus-4-1-20250805 | 58.65 |
| 7 | claude-opus-4-20250514 | 58.35 |
| 8 | gpt-5-mini | 49.22 |
| 9 | claude-sonnet-4-20250514 | 48.45 |
| 10 | kimi-k2-0905-preview | 42.89 |
| 11 | deepseek-chat | 35.48 |
| 12 | gpt-5-nano | 23.27 |
Run
So how do you run a Xent benchmark? Lets break it into steps
Initial configuration
In order to run Xent, you need to have uv installed. See the installation instructions or just run curl -LsSf https://astral.sh/uv/install.sh | sh
Benchmark Configuration
First, we'll create a configuration for your benchmark run. This configuration will contain things like:
- Games to execute
- Players for those games
- Model to use as a judge
- Whether games should be played iteratively
- The maximum number of game-code lines to execute per game
To generate such a configuration you call uv run xent configure.
# Generate a minimal configuration with a simple game played by gpt-4o
uv run xent configure
# Generate a configuration with a simple game played by gpt-4.1 and o3
uv run xent configure --model gpt-4.1 --model o3
# Generate a configuration from specific game files and/or directories
uv run xent configure --game-path ./games/Condense.xent --game-path ./games
# See more CLI configuration options
uv run xent configure --help
The configuration will be stored in a json file (./xent_config.json by default) which can be passed to xent run for execution.
Of course, you don't have to use the CLI to generate this configuration. Take a look at XentBenchmarkConfig in src/xent/common/xent_types.py to see exactly what options are available.
So, now that we have a configuration, how do we run it?
Benchmark Execution
Option 1: Web Interface (For Monitoring)
Xent includes a web interface for monitoring benchmark progress:
# Start the web server
uv run xent serve
# Open your browser to http://localhost:8000
The web interface shows real-time progress and results for benchmarks started via the CLI.
Option 2: Command Line Interface
To run a benchmark from the command line, simply use uv run xent run. But before you do that, here are some notes:
By default, xent run will use ./xent_config.json as the path to the benchmark configuration. You can change this by doing uv run xent run --config path/to/config.json
During execution, xent run will place results and execution artifacts into a directory. By default this is ./results/<benchmark id>. You can modify that path via uv run xent run --results-dir path/to/results. Xent will create a new directory in the specified path with the benchmark_id.
In order to be somewhat robust to failure or interruption, Xent will look into the results directory for completed work. So if you re-run an already completed benchmark, it will effectively be a no-op. Instead you can pass either --regenerate-id (which will make a new, timestamped, benchmark id for the run) or --clean which will destroy any existing data in the results dir. Be careful using --clean! You can totally delete your valuable results! I recommend using --regenerate-id
Environment variables
A brief note about environment variables. If you want to run a Xent benchmark using paid APIs (eg ChatGPT), then you will need to export an environment variable holding your API key. Currently, Xent supports:
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- GEMINI_API_KEY
- GROK_API_KEY
- DEEPSEEK_API_KEY
- MOONSHOT_API_KEY
You'll get an exception if you try to call these models without the proper environment variables.
Benchmark Results
Now that you have completed a benchmark execution, its time to examine the results. The easiest way to look at the results is to read the generated markdown report. This will be present in results_directory/<benchmark_id>/report.md. It contains a human-readable summary (including some nice charting!) of all the games played.
In addition to report.md, there is also the benchmark_<benchmark_id>.json file. This contains the complete data generated by the benchmark and its structure is defined in src/xent/common/xent_types.py as XentBenchmarkResult.
You'll also see files named "game_<game_name>_<model_name>.json". These files contain results for that game-player pair (as well as the original configuration of the game). The data structure is the XentGameResult type defined in src/xent/common/xent_types.py. All of the data in these files will be present in the benchmark json, but you may find it handy to inspect them individually as the output can be quite long.
Finally, there is log.txt which is simply the log output of the benchmark execution. Any errors or issues will be visible here.
Advanced Configuration
The following is a guide for those of you who you are interested in evaluating with customized model configuration or even with a custom agent.
Customized Model Configuration
By default, Xent uses configuration options when calling models. For LLM APIs (eg ChatGPT) Xent tends to have very little usage of configuration such as temperature parameters. For models called via HuggingFace, however, more configuration is necessary.
You can view the model configuration options available in src/xent/runtime/player_configuration.py. These options (DefaultXGPOptions and DefaultHFXGPOptions) are specified in the options field of PlayerConfig type defined in src/xent/common/xent_types.py. You can view the actual usage of these options in the HuggingFaceClient class defined in src/xent/runtime/llm_api_client.py.
Adding Custom Agents
I'm going to guess that most people modifying Xent are interested in running Xent against their own agents. If that's you, then here is some good news! We have endeavored to make this relatively simple as long as you are familiar with python development.
Here are the key places you should look at to make those changes:
src/xent/runtime/base_player.py- This contains the interface that player agents must implement. It also contains some guidance around adding new agents.src/xent/runtime/default_players.py- This contains the existing player agent implementation. You can use this as a reference implementation.src/xent/runtime/players.py- This contains the registry and mapping between player types and player implementations.
By making changes to a few files, you can add your own agent implementation to the Xent system and begin benchmarking it yourself. If you have spent the time to do so, then we encourage you to open a pull request with your changes so that others can benefit from your work.
Develop
A short guide to get you started modifying Xent and maybe (hopefully!) contributing.
Getting Started
- Before you begin, ensure you have the following installed:
- Python 3.12 or higher
- uv for dependency management
- Run the CLI tool
uv run xent
- Run tests
Note: Running tests will execute GPT-2 via Hugging Face. If you run integration tests, then you'll need to have Ollama running locally with qwen3:0.6b available.
# Run all tests
uv run pytest
# Run a specific test
uv run pytest tests/test_x_string.py
# Run only unit tests
uv run pytest -m "not integration"
# Run only integration tests
uv run pytest -m integration
Code Quality Tools
The project uses modern Python tooling for consistent code quality:
Quick Commands
# Format code
uv run ruff format .
# Lint and auto-fix issues
uv run ruff check --fix .
# Type check (source only)
uv run mypy src/
# Run all quality checks
uv run ruff format . && uv run ruff check --fix . && uv run mypy src/
Pre-commit Hooks
Pre-commit hooks are installed and will automatically:
- Format code with Ruff
- Fix auto-fixable linting issues
- Run type checking on staged files
To run pre-commit manually:
uv run pre-commit run --all-files
VSCode Integration
Project-specific VSCode settings are configured to:
- Use Ruff for formatting and linting
- Format on save
- Organize imports automatically
- Integrate with the project's Python interpreter
Future Work
A short list of features and changes that we are contemplating making.
- Distributed execution of Xent benchmark. This will allow users to run a single benchmark in parallel on a number of instances
- More granular streaming of benchmark results to
xent servemonitoring - Improved collection of agent responses, allowing users to easily and directly connect agent responses to game rewards
- Downloading of public xent benchmark leaderboard results, allowing for easy, private comparison against user results
License
This project is licensed under the MIT License - see the LICENSE file for details.
Cite
The code in this repository is developed from the paper below. Please cite it if you find the repository helpful.
@misc{hongler2025crossentropygameslanguagemodels,
title={Cross-Entropy Games for Language Models: From Implicit Knowledge to General Capability Measures},
author={Clément Hongler and Andrew Emil},
year={2025},
eprint={2506.06832},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2506.06832},
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xent-0.3.0.tar.gz.
File metadata
- Download URL: xent-0.3.0.tar.gz
- Upload date:
- Size: 271.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e26158b4f5ac7f0c2c3aaf8fd1be625cb01d520ba44a6a20123801e48b7c9731
|
|
| MD5 |
4fb8ee5d6fc401ce2d0ca6745768cf16
|
|
| BLAKE2b-256 |
55e12df309f2fe3243226afcf4227d3e39d06a33970808b9e820823d4b79c0e4
|
File details
Details for the file xent-0.3.0-py3-none-any.whl.
File metadata
- Download URL: xent-0.3.0-py3-none-any.whl
- Upload date:
- Size: 253.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0075a0465b5b8dddebf757accf6823487d1ea72c394f19ffcd60a1c46874e4d7
|
|
| MD5 |
eaf0a288618bc89e999a279334edcbbd
|
|
| BLAKE2b-256 |
85c36c7345e3d53137658b347c870bc2aa1a22050790890136bbd5ffd76d22ae
|