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.6.1rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb7c59ed2483775aae67a055879f447aecbf2aadd5f8c9034168552bbade63f |
|
MD5 | e509df44a6e689d5fdcacedf21b9f710 |
|
BLAKE2b-256 | 128e733d09ff0765fba53a7541da9b5d26117b1a726acecd27ee89068d7878cb |
Hashes for mlserver_alibi_detect-1.6.1rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d3ec31e9278240167909f4ed4d261d364cb0cc2274c9c02ab7f5cf569c8fa4 |
|
MD5 | 1cd999b25323fbdc54d75b67fa41331b |
|
BLAKE2b-256 | f25e531857ce4667c5e4f71105059002ab5d69b9fa7f2e0dfa7b93c2f97fe528 |