Skip to main content

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

  1. Renders the state and question with a fixed prompt template whose SHA-256 is returned with every answer; options are letters A, B, C, ...
  2. 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.
  3. Calibrates with per-type temperatures fitted for the exact build, bound to its hash; a calibration file for another build is refused.
  4. 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)

Source distribution for avrik-server 1.0.0
File Size Uploaded
avrik_server-1.0.0.tar.gz 66.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avrik-server 1.0.0
File Interpreter ABI Platform
avrik_server-1.0.0-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page