Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TGIS Standalone SR and ISVC #132

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions demo/kserve/custom-manifests/caikit/tgis-isvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
annotations:
serving.knative.openshift.io/enablePassthrough: "true"
sidecar.istio.io/inject: "true"
sidecar.istio.io/rewriteAppHTTPProbers: "true"
name: tgis-example-isvc
spec:
predictor:
serviceAccountName: sa
model:
modelFormat:
name: pytorch
runtime: tgis-runtime
storageUri: proto://path/to/model
29 changes: 29 additions & 0 deletions demo/kserve/custom-manifests/caikit/tgis-servingruntime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: serving.kserve.io/v1alpha1
kind: ServingRuntime
metadata:
name: tgis-runtime
spec:
multiModel: false
supportedModelFormats:
- autoSelect: true
name: pytorch
containers:
- name: kserve-container
image: quay.io/opendatahub/text-generation-inference:stable
command: ["text-generation-launcher"]
args:
- "--model-name=/mnt/models/"
- "--port=3000"
- "--grpc-port=8033"
env:
- name: TRANSFORMERS_CACHE
value: /tmp/transformers_cache
# resources: # configure as required
# requests:
# cpu: 8
# memory: 16Gi
ports:
- containerPort: 8033
name: h2c
protocol: TCP

Loading