avrik-server
The run-time server for Avrik decision models: the
prompt renderer, the letter readout, calibration, the /v1/systemone HTTP API, and the
llama.cpp (CPU) and vLLM (GPU) backends.
An Avrik model reads a state and typed questions (yes/no, choice, score, multi-label) and returns a calibrated probability distribution over each question's options, in one forward pass with no generated text.
Most people install the avrik CLI, which depends on
this package and runs it from a verified model download:
pip install llama-cpp-python==0.3.35 --no-deps --only-binary=:all: \
--index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
pip install "avrik[cpu]"
avrik pull Avrik-Lite-4B
avrik serve Avrik-Lite-4B # http://127.0.0.1:8080
To call the API from Python, use avrik-sdk.
What it does
- Renders the state and question with a fixed prompt template whose SHA-256 is returned with every answer; options are letters A, B, C, ...
- Reads the probability of every tokenizer form of each option letter (never top-k) and refuses the answer if the letters hold less than 98% of the probability mass.
- Calibrates with per-type temperatures fitted for the exact build, bound to its hash; a calibration file for another build is refused.
- Answers with the distribution,
top,margin,confidence,abstain, and eight audit fields: model hash, adapter hash, calibration version, prompt-template SHA-256, allowed-token-set hash, input tokens, backend and precision.
Extras
| Extra | Adds |
|---|---|
avrik-server[readout] |
tokenizer and chat template (transformers, no PyTorch) |
avrik-server[api] |
the HTTP server (FastAPI, uvicorn, httpx, pydantic) |
avrik-server[cpu] |
the llama.cpp backend (llama-cpp-python 0.3.35, numpy) |
The GPU backend talks to a vLLM server on loopback started with
--logprobs-mode raw_logprobs; see each model card for the exact command.
Privacy
Inference makes no network calls, sends no telemetry and stores nothing. The server listens on 127.0.0.1 unless you configure otherwise.
Models
| Model | Tier | Hugging Face |
|---|---|---|
| Avrik-Lite-4B | Edge (CPU) | avrik-ai/Avrik-Lite-4B, -GGUF |
| Avrik-Pro-12B | Pro (default) | avrik-ai/Avrik-Pro-12B, -GGUF |
| Avrik-Max-31B | Max | avrik-ai/Avrik-Max-31B |
Built on Gemma 4 by Google (Apache-2.0). Licence: Apache-2.0. Security reports: avriktech.ai@gmail.com.
Website: www.avrik.ai · Models: huggingface.co/avrik-ai · Acceptable use policy
Metadata
Release files for avrik-server 1.0.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 |
|---|---|---|---|---|
| avrik_server-1.0.0.tar.gz | 66.3 kB | Without provenance | Details for avrik_server-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avrik_server-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for avrik_server-1.0.0-py3-none-any.whl |
Total release size: 151.8 kB
Release files / avrik_server-1.0.0.tar.gz
| Download URL | avrik_server-1.0.0.tar.gz |
|---|---|
| Size | 66.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
989f3691b5be357a3c7c4eb2d60ca44d7b9393918373cb849f688c51cebec986
|
|
BLAKE2b-256 checksum How to use checksums |
5d3604268b029559bbc1e2b85cfc15fb64aadd55eb1caf78616e14e7b637d780
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / avrik_server-1.0.0-py3-none-any.whl
| Download URL | avrik_server-1.0.0-py3-none-any.whl |
|---|---|
| Size | 85.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
566eecb7c3421c4ad663a08cb2497f3058eea30f13755c4aa162dd8fadf4997f
|
|
BLAKE2b-256 checksum How to use checksums |
6c4abdb54c3db648714764ba2474eb71cf5644572c7dbf38122371907662f3d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for avrik-server 1.0.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.