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.dev11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa5f09de4aaa363c3e02430ed92f261ca98975fd84c87f7b041bcafc53aa945 |
|
MD5 | 217c3d6e30811f4a20d24a9cb23646ac |
|
BLAKE2b-256 | 799d02842c2f6fe21ec855cb9cd2587f1f2f84633444f2dd488547ab8f144b9a |
Hashes for mlserver_alibi_detect-1.3.0.dev11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba54ccc7cbf919461bf191a7ef02ef88da4103ebbaeffcab2decbf6493a3f3f |
|
MD5 | 504cfd6d997fd4ed7da17676c2596bd4 |
|
BLAKE2b-256 | 5a84b650cc1dcd8d96259a57683b1b42dfdbfde96160d7a22b795f1b3d375a83 |