Skip to main content

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.

MIT License Documentation CI


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

kavier-0.3.1.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kavier-0.3.1-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

Details for the file kavier-0.3.1.tar.gz.

File metadata

  • Download URL: kavier-0.3.1.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kavier-0.3.1.tar.gz
Algorithm Hash digest
SHA256 569d5dd88a3824b7af90d4be9f8991cc51921625228bfcee88f165b4c2d39910
MD5 5cc97cca4c8a69695df153c66d5a2f1d
BLAKE2b-256 e1f5a62911aa8c7cf829176e9b823e28fcc139b62fb44c026eb9407a22c36805

See more details on using hashes here.

Provenance

The following attestation bundles were made for kavier-0.3.1.tar.gz:

Publisher: publish.yml on atlarge-research/Kavier

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kavier-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kavier-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 68.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kavier-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e475528cef8d1074fffed86446daccf055e375b4c94ceca611e886b9af5259e
MD5 f78de50ac206e13a0146886bc840c782
BLAKE2b-256 88e0e0e84c6e8f34aae905475b21edd6900075f975b442ce2ba56045a410d026

See more details on using hashes here.

Provenance

The following attestation bundles were made for kavier-0.3.1-py3-none-any.whl:

Publisher: publish.yml on atlarge-research/Kavier

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page