Znyx inference sidecar: an optional HTTP service that serves ML models for model-backed guardrail detection. Boots dependency-free on a stub runner; add the [onnx] extra to serve real weights on CPU.
Project description
znyx-inference
The optional Znyx inference sidecar: an HTTP service that serves ML models for
model-backed guardrail detection. The znyx-runtime
calls it over HTTP to escalate from rules to ML. Without it, the runtime still
works fully on its deterministic rules path.
# boots dependency-free on a stub runner (no ML stack needed):
pip install znyx-inference
# to serve real model weights on CPU — lean, torch-free (onnxruntime + tokenizers):
pip install "znyx-inference[onnx]"
# offline only: export + quantize a checkpoint to a pinned ONNX artifact (heavy: torch + optimum):
pip install "znyx-inference[export]"
Weights are never bundled
This package ships code only, no model weights. You fetch the models you want explicitly, sha256-pin them, and mount them. Nothing is downloaded implicitly on the serving path. See MODELS.md for the curated model list, licenses, and the fetch-and-pin workflow, including which models carry special licenses.
How it fits
your app -> znyx-runtime (rules) --HTTP--> znyx-inference (ML) -> local, pinned weights
The sidecar loads only local, sha256-verified weights, fails closed, and never phones home. If a model is not present it stays on the stub runner and the runtime falls back to rules per the policy's fallback mode.
See the repository README for the full architecture.
License
Apache-2.0. Model weights you fetch are governed by their own licenses (see MODELS.md).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file znyx_inference-1.0.0.tar.gz.
File metadata
- Download URL: znyx_inference-1.0.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab38ac140f1284bf5d9e18cf887defe2c5cd61f745d59741e35cc637f2f4015e
|
|
| MD5 |
ef2ffc730c13a4783238a6672daa4987
|
|
| BLAKE2b-256 |
390f32e41c01c5a16a05893da6c42dad3045f294f1edc9627e8181d1ae5390e3
|
Provenance
The following attestation bundles were made for znyx_inference-1.0.0.tar.gz:
Publisher:
publish.yml on zitrino-oss/znyx-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
znyx_inference-1.0.0.tar.gz -
Subject digest:
ab38ac140f1284bf5d9e18cf887defe2c5cd61f745d59741e35cc637f2f4015e - Sigstore transparency entry: 2172700872
- Sigstore integration time:
-
Permalink:
zitrino-oss/znyx-runtime@efbb1221cb4a498b52bb0946ad76c56350fedf01 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/zitrino-oss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efbb1221cb4a498b52bb0946ad76c56350fedf01 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file znyx_inference-1.0.0-py3-none-any.whl.
File metadata
- Download URL: znyx_inference-1.0.0-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af1c4b97c7d40a54c8219a840c83a236c2599c7a6f7828012a5e27635948888
|
|
| MD5 |
0365b87d38d62c64867449902fda8f32
|
|
| BLAKE2b-256 |
729d4878443987041c387c0fb99cc14d69ef3886f881bf21f12d1b2865e9f3c4
|
Provenance
The following attestation bundles were made for znyx_inference-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on zitrino-oss/znyx-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
znyx_inference-1.0.0-py3-none-any.whl -
Subject digest:
5af1c4b97c7d40a54c8219a840c83a236c2599c7a6f7828012a5e27635948888 - Sigstore transparency entry: 2172700879
- Sigstore integration time:
-
Permalink:
zitrino-oss/znyx-runtime@efbb1221cb4a498b52bb0946ad76c56350fedf01 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/zitrino-oss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efbb1221cb4a498b52bb0946ad76c56350fedf01 -
Trigger Event:
workflow_dispatch
-
Statement type: