Kavier: Simulating the Performance, Sustainability, and Efficiency of LLM Ecosystems under Inference and Training
Project description
Kavier
Simulating performance, sustainability, and efficiency of LLM Ecosystems under inference and training.
This repository is the home of Kavier, the first scientific instrument for predicting performance, sustainability, and efficiency of LLM ecosystems under inference and training.
Kavier helps operators, researchers, and engineers predict:
- Performance — inference latencies, training throughput, GPU utilization
- Sustainability — energy consumption, carbon emissions (gCO2/Mtoken)
- Efficiency — financial and energy cost per token/sample given GPU-hour prices
Quick start
git clone https://github.com/atlarge-research/kavier.git
cd kavier
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install -U pip
pip install -e ".[dev]"
Run your first simulation against the tiny bundled synthetic example trace:
kavier-perf --trace src/kavier_inference/data/input/input_example.csv
Congrats! You have just run your first simulation with Kavier! 🎉
Or skip the flags — launch the interactive UI and pick a simulator, model and GPU from guided menus, then chain into energy/carbon or export OpenDC:
kavier
If you installed Kavier from PyPI (pip install kavier) you have no src/
directory; the same synthetic example trace ships inside the package, so resolve
its path via importlib.resources:
TRACE=$(python -c "from importlib.resources import files; print(files('kavier_inference')/'data/input/input_example.csv')")
kavier-perf --trace "$TRACE"
Structure
Kavier is organized into the following first-party packages:
src/
├── kavier/ # Umbrella facade (re-exports the sub-packages)
├── kavier_inference/ # Inference simulation (kavier-perf)
├── kavier_training/ # Training simulation (kavier-train)
├── kavier_energy/ # Energy calculator (kavier-energy)
├── kavier_co2/ # Carbon emissions (kavier-co2)
├── kavier_library/ # Shared GPU & LLM specifications
├── kavier_io/ # Shared I/O utilities
│ └── opendc/ # OpenDC workload export (tasks/fragments)
├── kavier_ui/ # Interactive REPL (the `kavier` command)
└── tests/ # Test suites
Documentation
See docs/index.html for the main documentation: getting started,
the Kavier CLIs (kavier interactive UI, kavier-perf, kavier-train,
kavier-energy, kavier-co2), the YAML --config input,
structure, and the contributing guide.
Contributing
Questions, suggestions and contributions are welcome and appreciated! Please refer to the contributing guide for more details.
License
Kavier is distributed under the MIT license. See LICENSE.txt.
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 kavier-0.4.0.tar.gz.
File metadata
- Download URL: kavier-0.4.0.tar.gz
- Upload date:
- Size: 69.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88f7e6ca0c7f4ac626218c69057cfec89524740e6c3608c460c7a1de30713a5c
|
|
| MD5 |
c4509cad0a10f5feef5eabee6f1d19fd
|
|
| BLAKE2b-256 |
0cdca0245752989b2ac823f95f3ddb6bc1d7f411d0be6f64e5bc98c70f3f13be
|
Provenance
The following attestation bundles were made for kavier-0.4.0.tar.gz:
Publisher:
publish.yml on atlarge-research/Kavier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kavier-0.4.0.tar.gz -
Subject digest:
88f7e6ca0c7f4ac626218c69057cfec89524740e6c3608c460c7a1de30713a5c - Sigstore transparency entry: 2006122644
- Sigstore integration time:
-
Permalink:
atlarge-research/Kavier@324c91d10ad08fdd446244413d7d414604a7c928 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/atlarge-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@324c91d10ad08fdd446244413d7d414604a7c928 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kavier-0.4.0-py3-none-any.whl.
File metadata
- Download URL: kavier-0.4.0-py3-none-any.whl
- Upload date:
- Size: 88.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9e9b6324217115a7f0e45276d7a2eea5d26b48258baa4a7dea1234e93c4577
|
|
| MD5 |
5cbe0c985c3c9457e42597e2e28ebb5e
|
|
| BLAKE2b-256 |
5edc0e9ba35b9a633fcef99328c5d6977c09510ef697d809eba90a32670b6c1c
|
Provenance
The following attestation bundles were made for kavier-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on atlarge-research/Kavier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kavier-0.4.0-py3-none-any.whl -
Subject digest:
7d9e9b6324217115a7f0e45276d7a2eea5d26b48258baa4a7dea1234e93c4577 - Sigstore transparency entry: 2006122723
- Sigstore integration time:
-
Permalink:
atlarge-research/Kavier@324c91d10ad08fdd446244413d7d414604a7c928 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/atlarge-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@324c91d10ad08fdd446244413d7d414604a7c928 -
Trigger Event:
push
-
Statement type: