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.2rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1bcc44255896f637886b4bb6ad5289dc00fd4a7a7652b5eca33544c47f19f50 |
|
MD5 | bfaefb7381a8d1f2d6fe55339181a6f0 |
|
BLAKE2b-256 | ca9a8cac2f5005275f0eaa5e820a9d54eb89948bca952ff2b60dc3d492e584ad |
Hashes for mlserver_alibi_detect-1.3.2rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 394f36cdbf128f36df5f3d80f5fa59f03f73ab57ba02b2562fbac1761985abdc |
|
MD5 | 6d7cf1c577609b21f1f6388ee89cba95 |
|
BLAKE2b-256 | d7e829ceecaa8a8f377370a08ad1d4e2ada20f6122ac5f5a2e5926bf2a189783 |