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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f666c0bf88bb3346a0ceffea95647e74005299906cf16ac5c063eaea759e4f57 |
|
MD5 | da30d8cb5cdcbdf4f185263525a3105a |
|
BLAKE2b-256 | 5f55f85025ef5b0f80941c9996a7d8588d8c9b3327137348305086ba1cc30918 |
Hashes for mlserver_alibi_detect-1.4.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb426e6b136f53bc4d8bd0155cf60254df0d02a539b32d9e8453adb0b727c80f |
|
MD5 | 661c21466de644cd0a4dcbd3b4c3c467 |
|
BLAKE2b-256 | dd0fe5833d5a57782b441ac16c52cb7a688cec241b310e3ff67dc0ab73f194db |