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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de7b9abffd94ebbcdeb0dfa13d77b77bd21de4dc6c45ed1a4d2212a23a68f7b |
|
MD5 | ec170af7cf7b49917443d6a9595d1439 |
|
BLAKE2b-256 | 12f59c902b33d7e1fcd5dbf4e3bf97d7f181eae5a6962eba56f1c13566de7955 |
Hashes for mlserver_alibi_detect-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ae4fe5522b73711b9dbcf9235bf5ab6044f7cae52a4f407612ce05219f19eb |
|
MD5 | fffa388d06fcc40170bd5e1e5ddee09e |
|
BLAKE2b-256 | 63ce24d009753c0369f7b6e415170c3d3fe894cfc19f39100d4d0a08195b2df5 |