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.5.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7df9bfe3aa6c22eeb5b5f4a754dd1af23e87f07d40ea63c3dfe488b5cf1a35 |
|
MD5 | 6987e9d469d284c8f46bc06ab700a02b |
|
BLAKE2b-256 | 21d39ff6cdf59ca08ab633f42c0543ce67be05b8d351b5121701f9130498684b |
Hashes for mlserver_alibi_detect-1.5.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee26c50f413fe84b9b9e9f8e31337da2ec9b756605aa1f8b0f2cb8c344d10d69 |
|
MD5 | 366bc7f859cc28f6394756513b83c7d4 |
|
BLAKE2b-256 | 30e791694250bdd4d104dce461c8598b550ae42742febd5d3f31bc7c2336f7c8 |