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.0.dev9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8481c283af7e3a759ab68f968bade311ef9d55594751d74e883136b6f228f26a |
|
MD5 | 3d6c5ea80832884fd76155d1de4d89e2 |
|
BLAKE2b-256 | 7354a96eb97b62045f592e89cc056df1bdb3e0419c2c209e46046774fdcf6aa4 |
Hashes for mlserver_alibi_detect-1.3.0.dev9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c3f9e05c9bdbae8eebf1d78c95f63368f901ad882d794fe4d7573435493555 |
|
MD5 | a820aa080ec621bea56958019f0d7d3b |
|
BLAKE2b-256 | c7de19235579bebf0377d47e5f62e53895f2edab277a71c9def0f991eb3cc295 |