Skip to main content

Alibi-Detect runtime for MLServer

This package provides a MLServer runtime compatible with alibi-detect models.

Usage

You can install the mlserver-alibi-detect runtime, alongside mlserver, as:

pip install mlserver mlserver-alibi-detect

For further information on how to use MLServer with Alibi-Detect, you can check out this worked out example.

Content Types

If no content type is present on the request or metadata, the Alibi-Detect runtime will try to decode the payload as a NumPy Array. To avoid this, either send a different content type explicitly, or define the correct one as part of your model's metadata.

Settings

The Alibi Detect runtime exposes a couple setting flags which can be used to customise how the runtime behaves. These settings can be added under the parameters.extra section of your model-settings.json file, e.g.

---
emphasize-lines: 6-8
---
{
  "name": "drift-detector",
  "implementation": "mlserver_alibi_detect.AlibiDetectRuntime",
  "parameters": {
    "uri": "./alibi-detect-artifact/",
    "extra": {
      "batch_size": 5
    }
  }
}

Reference

You can find the full reference of the accepted extra settings for the Alibi Detect runtime below:

.. autopydantic_settings:: mlserver_alibi_detect.runtime.AlibiDetectSettings

Release files for mlserver-alibi-detect 1.6.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 mlserver-alibi-detect 1.6.1
File Size Uploaded
mlserver_alibi_detect-1.6.1.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlserver-alibi-detect 1.6.1
File Interpreter ABI Platform
mlserver_alibi_detect-1.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / mlserver_alibi_detect-1.6.1.tar.gz

Download URL mlserver_alibi_detect-1.6.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
08cd4be4f4b526a03681c4bfddb6649fc504dd72e4bc97ec69052882b6a8881b
BLAKE2b-256 checksum
How to use checksums
b9488951a0abcc1220ac27ef5af15ce27651111aceeaf0e48f56f201de3d2b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure

Release files / mlserver_alibi_detect-1.6.1-py3-none-any.whl

Download URL mlserver_alibi_detect-1.6.1-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21b2550be3b74ecc48d0b41d5a789bd776f6030ea128234e61b3e468c9b47952
BLAKE2b-256 checksum
How to use checksums
b7f364e240bfc352536561645cb2022c6be110e49b526ede967c0fbdc8d49a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

1.6.1 This release

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

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