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.4.0rc5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04220d45d789a66cc33f4be73f6c01d6e39471ae2d3f995d65116554c3badf9 |
|
MD5 | e1348a463fe59895457ab7f90c6bce8b |
|
BLAKE2b-256 | 6872b8ff60f75e2c71ede83d80430d66b0ea339d6e541111456e7de8e610d172 |
Hashes for mlserver_alibi_detect-1.4.0rc5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab67717a558e9971b54688ef1ed31bcade2d056751c6be08dbce77d451d3249 |
|
MD5 | c35f13c7e134fc448f7d757e992e77dd |
|
BLAKE2b-256 | bd8e3c9296aee86a10a888091437637c25c7bf75006397fe95005fe5ecba0810 |