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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706468957512e8e5c4030069a523e025177af35b2d72f62fb40b44af2511c763 |
|
MD5 | 802a968e268cc9ab18f67f0540941c42 |
|
BLAKE2b-256 | 1250cf29810deeea2a85bacc76e6d67807cd428d8a8f343fd6448a8d4c1bf9ef |
Hashes for mlserver_alibi_detect-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd0b04d721617844b1c172519adddf3a8cb8264f9727d2b09e7daf0352944ce |
|
MD5 | 85db701aac9668033985a23144f0fe2b |
|
BLAKE2b-256 | 28143dc4d1e0dbd3680641ad6477b3d2d319371d3d8e9ec32e7848fbeac357ff |