Kavier
Simulating the performance, sustainability, and efficiency of LLM ecosystems under inference and training.
Kavier is a physics-driven simulator. It predicts inference latency, training throughput, GPU utilization and MFU, energy, carbon emissions, and cost per token or sample.
Install
pip install kavier # from PyPI
uv add kavier # into a uv project
Python 3.11 or newer.
Quick start
From a clone of this repository:
uv sync
uv run kavier inference --trace src/kavier/sdk/inference/data/input/input_example.csv
uv run kavier --help
The subcommands are inference, training, cluster, energy, carbon, and calibrate (needs the
[calibration] extra). Each documents its
flags with --help.
Documentation
https://atlarge-research.github.io/Kavier/. Build it locally with uv run --group docs mkdocs serve.
Development
uv sync installs the dev tools. CI runs these gates on every pull request
(ci.yml):
uv run pre-commit run --all-files --show-diff-on-failure # ruff check, ruff format, whitespace
uv run mypy --strict --show-error-codes \
-p kavier.cli -p kavier.sdk.co2 -p kavier.sdk.cluster
uv run mypy --strict --follow-imports=skip --show-error-codes \
src/kavier/__init__.py src/kavier/__main__.py \
src/kavier/sdk/training/calibration/__init__.py \
src/kavier/sdk/training/core/engine.py
uv run pytest --cov
uv run --group docs mkdocs build --strict
The calibration and plot tests are skipped unless you sync with --extra calibration --extra plot.
Run uv run pre-commit install once per clone to get the ruff and whitespace hooks on commit.
Citation
See CITATION.cff.
License
MIT. See LICENSE.txt.
Metadata
Release files for kavier 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kavier-0.5.3.tar.gz | 82.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kavier-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 195.6 kB
Release files / kavier-0.5.3.tar.gz
| Download URL | kavier-0.5.3.tar.gz |
|---|---|
| Size | 82.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c049d71cf8f68fc72771b43dc80c4bcb601ae824898c57ba6549a00ea4cc298
|
|
BLAKE2b-256 checksum How to use checksums |
266cec4d7cde937a5345d353977711bff63b2af8b2e7bce6b65043dcda49dd21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / kavier-0.5.3-py3-none-any.whl
| Download URL | kavier-0.5.3-py3-none-any.whl |
|---|---|
| Size | 112.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19d629d1a6fc0cddb77125450f653da7d923afddf2bb6e604ba87be674046c5c
|
|
BLAKE2b-256 checksum How to use checksums |
218e47513751199e40af7d9441c7c7657444fafed24c02c3494fe27d58e81af1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log