Files
2ac99b398b fix(samples): Update AIX examples to use custom explainer spec (#2811)
* 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]>
2023-04-16 14:19:57 -07:00

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