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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771a9293e62c91205e5f0af7394742729cdaa7e6c3873782cbb88765e855d37b |
|
MD5 | d898fdff62db41b3c6df2aa5cdf5f393 |
|
BLAKE2b-256 | 941c6fb2e71426e2d6b590aee3b5111f2250d81bf66038f50451d8a06764d0f7 |
Hashes for mlserver_alibi_detect-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e49e0e8a26153673b80f11f4e52e31bd0cb352355a0efaaa5fcb157e20abc1c |
|
MD5 | 7990a7e1ec11f037808c0489e33a9aff |
|
BLAKE2b-256 | 4d2cccba7706553daabefb3568a0d590b7ecf402851dd9b63309ec86621c622f |