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.0rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f4865b0d7f2ba08d43b72b9b2374ef088150e1f27d2846f0e9a04963e189c2 |
|
MD5 | 943ab7777f675242e27c1691062438d7 |
|
BLAKE2b-256 | 4701bbcddb374857cee299af0558ee47f9ffa8fe8bb06a501ec7dbb07ceca009 |
Hashes for mlserver_alibi_detect-1.4.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb03bb68659243802dd8cc88b3625558b463e58f8b7e5bf16cfa1aee28ba87bb |
|
MD5 | e6b001881ee01c629a4fa57c1040a3b0 |
|
BLAKE2b-256 | 2200e688dd9adbaca5e7fa314043f720860749c7b8e3d75d07fd0d3c88b8de85 |