mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
* Update AIX example to use custom explainer spec Signed-off-by: Tommy Li <[email protected]> * Update aix-explainer.yaml * Remove predictor host and http port args --------- Signed-off-by: Tommy Li <[email protected]> Co-authored-by: Dan Sun <[email protected]>
36 lines
788 B
YAML
36 lines
788 B
YAML
apiVersion: "serving.kserve.io/v1beta1"
|
|
kind: "InferenceService"
|
|
metadata:
|
|
name: "aix-explainer"
|
|
namespace: default
|
|
spec:
|
|
predictor:
|
|
containers:
|
|
- name: predictor
|
|
image: aipipeline/rf-predictor:0.4.1
|
|
command: ["python", "-m", "rfserver", "--model_name", "aix-explainer"]
|
|
imagePullPolicy: Always
|
|
explainer:
|
|
containers:
|
|
- name: explainer
|
|
image: kserve/aix-explainer:v0.10.1
|
|
args:
|
|
- --model_name
|
|
- aix-explainer
|
|
- --explainer_type
|
|
- LimeImages
|
|
- --num_samples
|
|
- "100"
|
|
- --top_labels
|
|
- "10"
|
|
- --min_weight
|
|
- "0.01"
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: "1"
|
|
memory: 2Gi
|