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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd56ccba2951969bd0c22efb2d4abd755308a91f4bfc133ca479cf1526b7facd |
|
MD5 | 69f654f5ce616a7749487bc3e1949057 |
|
BLAKE2b-256 | 28dde68b61057157b9269c11fafa7737b06346e79d132d12d2c270df836a765f |
Hashes for mlserver_alibi_detect-1.3.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f8a729f979b5333444992a3add01c1fd4c96cf6f2adf18fee3e7bd75dae007e |
|
MD5 | e2e3ee54c69bf84ce0f56ce1e275a065 |
|
BLAKE2b-256 | 477d771d29a199fa5620361368012f378ddf11733b770792afa504aa4968a2bd |