forked from mlcommons/inference
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass: standalone TGIS, grpc, batching
- Loading branch information
1 parent
bc594fa
commit 6a43fa5
Showing
9 changed files
with
567 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
language/llama2-70b/api-endpoint-artifacts/model-tgis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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: llama-2-70b-chat-isvc | ||
spec: | ||
predictor: | ||
minReplicas: 1 | ||
maxReplicas: 1 | ||
#apiVersion: serving.kserve.io/v1alpha2 | ||
serviceAccountName: sa | ||
#timeout: 240 | ||
model: | ||
modelFormat: | ||
name: pytorch | ||
runtime: tgis-runtime-grpc | ||
storageUri: s3://mlperf-inference-models/Llama-2-70b-chat-hf/ |
67 changes: 67 additions & 0 deletions
67
language/llama2-70b/api-endpoint-artifacts/serving-tgis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: serving.kserve.io/v1alpha1 | ||
kind: ServingRuntime | ||
metadata: | ||
name: tgis-runtime-grpc | ||
spec: | ||
multiModel: false | ||
supportedModelFormats: | ||
- autoSelect: true | ||
name: pytorch | ||
containers: | ||
- name: kserve-container | ||
image: quay.io/opendatahub/text-generation-inference:fast | ||
command: ["text-generation-launcher"] | ||
args: | ||
- "--model-name=/mnt/models/" | ||
- "--port=3000" | ||
- "--grpc-port=8033" | ||
env: | ||
- name: TRANSFORMERS_CACHE | ||
value: /tmp/transformers_cache | ||
- name: NUM_GPUS | ||
value: "8" | ||
#- name: DTYPE_STR | ||
# value: float16 | ||
# Dynamic batch size changes | ||
- name: MAX_BATCH_SIZE | ||
value: "256" | ||
- name: MAX_CONCURRENT_REQUESTS | ||
value: "300" | ||
- name: MAX_BATCH_WEIGHT | ||
value: "550000" | ||
- name: MAX_SEQUENCE_LENGTH | ||
value: "2048" | ||
- name: MAX_PREFILL_WEIGHT | ||
value: "0" | ||
- name: MAX_NEW_TOKENS | ||
value: "1024" | ||
- name: FLASH_ATTENTION | ||
value: "true" | ||
- name: DEPLOYMENT_FRAMEWORK | ||
value: hf_custom_tp | ||
- name: LOG_GPU_USAGE_INTERVAL | ||
value: "5" | ||
resources: # configure as required | ||
requests: | ||
cpu: 64 | ||
memory: 900Gi | ||
nvidia.com/gpu: 8 | ||
limits: | ||
nvidia.com/gpu: 8 | ||
readinessProbe: # Use exec probes instad of httpGet since the probes' port gets rewritten to the containerPort | ||
exec: | ||
command: | ||
- curl | ||
- localhost:3000/health | ||
initialDelaySeconds: 5 | ||
livenessProbe: | ||
exec: | ||
command: | ||
- curl | ||
- localhost:3000/health | ||
initialDelaySeconds: 5 | ||
# periodSeconds: 5 | ||
ports: | ||
- containerPort: 8033 | ||
name: h2c | ||
protocol: TCP |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.