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.0.dev15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a34d8938a18e87c941a564b0cfd6579b54853877a951c2396f01d5232903cd |
|
MD5 | 010e94f3b9bb6a40d7ac71139273a2c5 |
|
BLAKE2b-256 | 3f5a3fcc537fbf89be2b532fc85308d07fcaa98d64650509fdd387d89f552d91 |
Hashes for mlserver_alibi_detect-1.3.0.dev15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565dc1abf4faa4f8ae973be27b5265ab56b2b95f5ab550d0a8b305ab72731030 |
|
MD5 | 8395f7212b1395cf17541f1c5781a9b9 |
|
BLAKE2b-256 | fa4983ec813ee36a099dad37ff9ff5d5c57c514d3e6614dc8700b316057077f1 |