forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update fluid kserve sample to use huggingface servingruntime (kserve#…
…3907) * update fluid kserve demo to use huggingface servingruntime and other model. Signed-off-by: Lize Cai <lize.cai@sap.com> * fix lint Signed-off-by: Lize Cai <lize.cai@sap.com> * explicitly set custom servingruntime, update devshm. Signed-off-by: Lize Cai <lize.cai@sap.com> * update the args in custom kserve hfserver Signed-off-by: Lize Cai <lize.cai@sap.com> * address comments Signed-off-by: Lize Cai <lize.cai@sap.com> * add return of line Signed-off-by: Lize Cai <lize.cai@sap.com> --------- Signed-off-by: Lize Cai <lize.cai@sap.com>
- Loading branch information
Showing
12 changed files
with
252 additions
and
356 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
apiVersion: "serving.kserve.io/v1beta1" | ||
kind: "InferenceService" | ||
apiVersion: serving.kserve.io/v1beta1 | ||
kind: InferenceService | ||
metadata: | ||
name: "fluid-bloom" | ||
labels: | ||
serverless.fluid.io/inject: "true" | ||
name: llama-31-8b-instruct | ||
spec: | ||
predictor: | ||
terminationGracePeriodSeconds: 60 | ||
timeout: 600 | ||
minReplicas: 0 | ||
nodeSelector: | ||
node.kubernetes.io/instance-type: m5.4xlarge | ||
containers: | ||
- name: kserve-container | ||
image: lizzzcai/kserve-fluid:bloom-gpu-v1 | ||
# # below are for running bloom-7b1 using cpu | ||
# resources: | ||
# limits: | ||
# cpu: "12" | ||
# memory: 48Gi | ||
# requests: | ||
# cpu: "12" | ||
# memory: 48Gi | ||
env: | ||
- name: STORAGE_URI | ||
# please update it accordingly | ||
value: "pvc://s3-data/bloom-560m" | ||
# value: "pvc://s3-data/bloom-7b1" | ||
- name: MODEL_NAME | ||
value: "bloom" | ||
# set to "True" if you are using GPU, update the resources as well | ||
- name: GPU_ENABLED | ||
value: "False" | ||
node.kubernetes.io/instance-type: g5.8xlarge | ||
model: | ||
runtime: custom-kserve-huggingfaceserver | ||
modelFormat: | ||
name: huggingface | ||
storageUri: pvc://s3-data/llama-31-8b-instruct | ||
args: | ||
- --gpu-memory-utilization=0.95 | ||
- --max-model-len=1024 | ||
- --tensor-parallel-size=1 | ||
- --enforce-eager | ||
- --disable-log-stats | ||
- --disable-log-requests | ||
resources: | ||
limits: | ||
cpu: "24" | ||
memory: 48Gi | ||
nvidia.com/gpu: "1" | ||
requests: | ||
cpu: "24" | ||
memory: 48Gi | ||
nvidia.com/gpu: "1" |
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
Oops, something went wrong.