Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

znyx_inference-1.0.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

znyx_inference-1.0.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

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

Hashes for znyx_inference-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab38ac140f1284bf5d9e18cf887defe2c5cd61f745d59741e35cc637f2f4015e
MD5 ef2ffc730c13a4783238a6672daa4987
BLAKE2b-256 390f32e41c01c5a16a05893da6c42dad3045f294f1edc9627e8181d1ae5390e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for znyx_inference-1.0.0.tar.gz:

Publisher: publish.yml on zitrino-oss/znyx-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for znyx_inference-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5af1c4b97c7d40a54c8219a840c83a236c2599c7a6f7828012a5e27635948888
MD5 0365b87d38d62c64867449902fda8f32
BLAKE2b-256 729d4878443987041c387c0fb99cc14d69ef3886f881bf21f12d1b2865e9f3c4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page