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.dev8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1f8f9b718ded48c8b64b9d3bc541e3f13d588501bb8c96612f7a1157bdd9eb |
|
MD5 | d3dbf1ce1e7d5a0ad37f92f0f43089d2 |
|
BLAKE2b-256 | 3f531ad4748f69f24b94effa208944c287f3c974714a606c4f85c4436b79c8e0 |
Hashes for mlserver_alibi_detect-1.3.0.dev8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87e22a48e426da9353c6278e4c2ca9072651371d56286639e8941f958b3d28f |
|
MD5 | 28c632325b76989afdd02fed8ac67a81 |
|
BLAKE2b-256 | a4a67d961c55d4bfacbff8daffe98ab5993efa1c8c62901baec9083f3d593ad0 |