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

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.3
File Size Uploaded
znyx_inference-1.2.3.tar.gz 41.0 kB Details

Built distribution (wheel)

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

Total release size: 91.4 kB

Release files / znyx_inference-1.2.3.tar.gz

Download URL znyx_inference-1.2.3.tar.gz
Size 41.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9ad241f27227b341386d513b7714b9890ae5a8ff4a306449ff05fe8e84ca5716
BLAKE2b-256 checksum
How to use checksums
70a20f7579f8c84f1ff6290f7763e08df186a424b944728213d4084375d8a22b
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 Oct 1, 2026.

Transparency log

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

Download URL znyx_inference-1.2.3-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e620c2b4ba0913b7b195f88f3a4bab12bdbed6152284c740a22524040f1a4482
BLAKE2b-256 checksum
How to use checksums
601e23902db9f0c6ad0c953728c3e483b45609354939e00723eaab5e8d030265
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 Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.4

2 release files

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

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