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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d6494f5130251f57ba88414fc6f319dadba7da8ff58d30b5f85cd8b4bdabe6 |
|
MD5 | 08b4c515ebfa10bc0b95061e2553c7fc |
|
BLAKE2b-256 | 832d5f35d9308b9928311e28dfa8422219323cf3b413f3c77ab19e177ac36ff0 |
Hashes for mlserver_alibi_detect-1.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01f4feec80f3ba7591d948be14653978a7bd87b323db0433f95d2a125df3e76b |
|
MD5 | deb07e79a58db1bbe02011c105246d52 |
|
BLAKE2b-256 | 3e4f49e8b33280632a1a1f5a429b39f651052491d751386a4201cc75a5f76050 |