deciax
High-performance decision models on TPUs, powered by JAX and Pallas.
Install
pip install deciax # CPU
pip install "deciax[tpu]" # TPU
Quick start
import deciax
decider = deciax.load("laya")
result = decider.decide(
{
"user": "I was charged twice this month, please fix it.",
},
{
"intent": {
"type": "choice",
"instructions": "What does the user want?",
"criteria": {"billing": "payments, refunds", "other": "everything else"},
},
},
)
print(result["answers"]["intent"]["choice"]) # e.g. billing
Replace "laya" with "laya-multilingual", "clef-flash" (9B), or "clef" (27B).
Weights download on first use. The default dtype is BF16 on TPU and FP32 elsewhere.
Each question has an instructions string and one of these types:
| Type | criteria |
Answer |
|---|---|---|
choice |
{"billing": "payments, refunds", "other": "everything else"} |
Selected key and probabilities |
score |
["Low", "Medium", "High"] |
Expected level index, starting at 0 |
noul |
Optional | Probability of true, from 0 to 1 |
Pass multiple named questions in the same dictionary. To evaluate multiple states,
use decider.decide_batch(states, questions).
HTTP server
python -m deciax.serve --model laya
In another terminal:
curl http://localhost:8000/v1/systemone \
-H 'Content-Type: application/json' \
-d '{"state":"I was charged twice","questions":{"refund":{"type":"noul","instructions":"Should this customer receive a refund?"}}}'
For options, run python -m deciax.serve --help.
See HTTP deployment and compatibility for authentication, batching, and model routing.
Clef limits
- Text/JSON only; up to 64 questions and 512 total options per request.
max_lensets the total token budget (default and maximum: 16,384), including the prompt and schema. Excess state is truncated from the right; an oversized schema is rejected.head_max_len,labels,option_order, images, videos, andmedia_kwargsare unsupported.- Use the default
impl="auto"orimpl="jax";impl="pallas"is unsupported.
Metadata
Release files for deciax 0.1.2
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 |
|---|---|---|---|---|
| deciax-0.1.2.tar.gz | 49.6 kB | Without provenance | Details for deciax-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deciax-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for deciax-0.1.2-py3-none-any.whl |
Total release size: 113.7 kB
Release files / deciax-0.1.2.tar.gz
| Download URL | deciax-0.1.2.tar.gz |
|---|---|
| Size | 49.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff461f9a45f37c9eafb441c18790d6c7957d019ed2adab375b3f09eaa043b4a1
|
|
BLAKE2b-256 checksum How to use checksums |
d14756d8d2cff2fb4118f8ac7a26f87947d227a79cb195a488a3ec57a612d867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / deciax-0.1.2-py3-none-any.whl
| Download URL | deciax-0.1.2-py3-none-any.whl |
|---|---|
| Size | 64.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86bd96f7f05c5c521cd201b76ffe547bf9c0ca38da57cd783650c6f0b931661c
|
|
BLAKE2b-256 checksum How to use checksums |
5005bcaa61cd1c22c233a9efc9874e32f62516ec6d7d863127a07bd0b69c596c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for deciax 0.1.2
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.