valohai-llm
Python instrumentation library for Valohai large language model and generative AI tools.
Installation
pip install valohai-llm
# `uv` project with pip-compatibility
uv pip install valohai-llm
# `uv`-managed project
uv add valohai-llm
Usage
- Get
VALOHAI_LLM_API_KEYfrom Valohai LLM - Make sure
VALOHAI_LLM_API_KEYis set in your environment - Use the library e.g. the simplest case:
import valohai_llm
def main():
result = valohai_llm.post_result(
task="my-evaluation",
labels={"model": "gpt-4", "dataset": "mmlu", "category": "math"},
metrics={"accuracy": 0.85, "latency_ms": 150},
)
print("Result posted:", result)
if __name__ == "__main__":
main()
Development
# auto-format and lint code
just format
# run unit tests
uv run pytest
# configure setup to run examples
cp .env.dev-example .env
# edit the .env
uv run --env-file=.env --with-editable=. examples/simple_example.py
Metadata
Release files for valohai-llm 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| valohai_llm-0.1.0.tar.gz | 7.6 kB | Without provenance | Details for valohai_llm-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| valohai_llm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for valohai_llm-0.1.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / valohai_llm-0.1.0.tar.gz
| Download URL | valohai_llm-0.1.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c146df4d35717904821f7c0065e666b9da34fbeae12a79cefe5fb9ec263988a
|
|
BLAKE2b-256 checksum How to use checksums |
d178c8938637a4fb0500ff3f37c76099e2cabb01498a5b55f9df6c43d731c0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / valohai_llm-0.1.0-py3-none-any.whl
| Download URL | valohai_llm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d54419f3abbb21f0f792c1922540eb6bdecbbd578ab964c3a38ed83fe3076ad
|
|
BLAKE2b-256 checksum How to use checksums |
3610c94f9a08fa7e6b022a8b668b53138461722184bf0c1b850fd9e4ddf32b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for valohai-llm 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.