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.2rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b3d7520ff15f71008aa0f07feb49624f5f395a836af9f659f295817512044ef |
|
MD5 | e3b7ff8094cdd8ad093faf124d34d0b3 |
|
BLAKE2b-256 | c9c523f08396703e0b5349fd81c23dfb785f2be8a364e33c77234b4d2151d342 |
Hashes for mlserver_alibi_detect-1.3.2rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c70c91c14a958ca106858c2e59fecf23c7c54da45ffa5222b2305909a5f2d4ac |
|
MD5 | f64775fc04886d0e353bc37f30573aca |
|
BLAKE2b-256 | 0c15cb182d42493ac59a7f390ead57b2b647e9ecfedf8089b53fb867dd97fdbb |