Skip to main content

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).

Metadata

Release files for znyx-inference 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for znyx-inference 1.2.1
File Size Uploaded
znyx_inference-1.2.1.tar.gz 41.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for znyx-inference 1.2.1
File Interpreter ABI Platform
znyx_inference-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.4 kB

Release files / znyx_inference-1.2.1.tar.gz

Download URL znyx_inference-1.2.1.tar.gz
Size 41.0 kB
Tags Source
SHA-256 checksum
How to use checksums
64f349010c437c9e5ebd12d958c3342a4058a65cfcc6b6a578df9666476322a2
BLAKE2b-256 checksum
How to use checksums
54e9f6bb32f3ee0f6880b4dd79a08d9e7a51b40c10b0fab15cc8c948122eb6f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / znyx_inference-1.2.1-py3-none-any.whl

Download URL znyx_inference-1.2.1-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41a091c24e57d928903a5b19a1479bd133d95853af5f2a2d4aa2b386724f805f
BLAKE2b-256 checksum
How to use checksums
d07b38d31a7b324e45ecb63c1d37be6b451a71f4fd9fc8b7ac2563c2834038f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

This release

1.2.1 This release

2 release files

1.0.0

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