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.6.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | afaf352b465fc0033d8231a43feb0a5f282e827cf25edb38252acb0d5ed25576 |
|
MD5 | 65b35f051553725be090c15520d25ffc |
|
BLAKE2b-256 | e18ac5553c479fc8f9b86d017dcff5d1e09d0dab634bdab1128e3c79ebf890dc |
Hashes for mlserver_alibi_detect-1.6.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 465c84208989b14f2e0f03de0e35098150123573c468f4e8c3e3dbd899c14dfd |
|
MD5 | e4bc8a8bb61154ce01fd4e042c2d1437 |
|
BLAKE2b-256 | 8c2aac370f60ea0d26c306023ed1c467f8339d541c616b1e4fb33a413365fecb |