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.6.1rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfdb06ef1f895f41a3721c8bd672c93253694da730194bce97190261027438e |
|
MD5 | 4b2b9839878ddf95265682e72bba0030 |
|
BLAKE2b-256 | ac82e789a2b7110ff34f03789e40ad6ed48c73c3d59861d12e33189f3f689c12 |
Hashes for mlserver_alibi_detect-1.6.1rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c21c031b90308f65e3408b2a5eee5374d928f116466362cf727464d611ddee |
|
MD5 | a2fac63c0f70c9f8f05b8658d67e5a43 |
|
BLAKE2b-256 | 066fd77f6a29e26a2bc44b6f29d0236fb45d77e4bac86412da0218ba2eb76002 |