Alibi-Detect runtime for MLServer
Project description
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
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
Hashes for mlserver-alibi-detect-1.3.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e865227f1addee0eeb57ea34ca950f277b456ea6859278bb3910156d6bbe89f |
|
MD5 | ad612b6952e1a38e8f969f135e79f268 |
|
BLAKE2b-256 | 928f5c09e61f3d65842d0b0831af0eea43decc62d4b37b00e13c899f87bf711d |
Hashes for mlserver_alibi_detect-1.3.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf4e7fa1f97d9636e3a30ce26167a67090a4719a34786aa8ea7ea38ca8427de |
|
MD5 | 2806102c5906628830fdcc0759c4ec9a |
|
BLAKE2b-256 | a70fba7c8dfe6c1214ed01cba81c76b8cbe540f75d6f27fb5584d449126a30a8 |