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.0rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e183410b8f689f72e820d30cfc7678277c5774c8d1bdc3f490586c4d2eb5b4b9 |
|
MD5 | 032e9bb7c7372a8b841a1625be204ce3 |
|
BLAKE2b-256 | 5c67888a713a948b9c27d3ca92799bd058c24905c44d3a28f67100d00dee897c |
Hashes for mlserver_alibi_detect-1.4.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf9f7d09ec4098b635b31de02848117fc1965615f84110f10c2a63197e6d570 |
|
MD5 | e1bfdbc2bc50b45faaf8ab6ff448d78c |
|
BLAKE2b-256 | c7610e69bed4f3800b346ae2b775e57a33848154aa35e0c1c074331524c2ca39 |