mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
* update fluid kserve demo to use huggingface servingruntime and other model. Signed-off-by: Lize Cai <[email protected]> * fix lint Signed-off-by: Lize Cai <[email protected]> * explicitly set custom servingruntime, update devshm. Signed-off-by: Lize Cai <[email protected]> * update the args in custom kserve hfserver Signed-off-by: Lize Cai <[email protected]> * address comments Signed-off-by: Lize Cai <[email protected]> * add return of line Signed-off-by: Lize Cai <[email protected]> --------- Signed-off-by: Lize Cai <[email protected]>
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
apiVersion: data.fluid.io/v1alpha1
|
|
kind: Dataset
|
|
metadata:
|
|
name: s3-data
|
|
spec:
|
|
mounts:
|
|
- mountPoint: "s3://${bucket}/models/meta-llama--Meta-Llama-3.1-8B-Instruct/"
|
|
name: llama-31-8b-instruct
|
|
options:
|
|
alluxio.underfs.s3.region: "eu-central-1"
|
|
alluxio.underfs.s3.secure.http.enabled: "true"
|
|
encryptOptions:
|
|
- name: s3a.accessKeyId
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: s3creds
|
|
key: AWS_ACCESS_KEY_ID
|
|
- name: s3a.secretKey
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: s3creds
|
|
key: AWS_SECRET_ACCESS_KEY
|
|
accessModes:
|
|
- ReadOnlyMany
|
|
nodeAffinity:
|
|
required:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: node.kubernetes.io/instance-type
|
|
operator: In
|
|
values:
|
|
- "m5n.xlarge"
|
|
placement: "Shared"
|
|
---
|
|
apiVersion: data.fluid.io/v1alpha1
|
|
kind: AlluxioRuntime
|
|
metadata:
|
|
name: s3-data
|
|
spec:
|
|
replicas: 3
|
|
properties:
|
|
alluxio.user.ufs.block.read.location.policy: alluxio.client.block.policy.LocalFirstAvoidEvictionPolicy
|
|
alluxio.user.block.size.bytes.default: 256MB
|
|
alluxio.user.streaming.reader.chunk.size.bytes: 256MB
|
|
alluxio.user.local.reader.chunk.size.bytes: 256MB
|
|
alluxio.worker.network.reader.buffer.size: 256MB
|
|
alluxio.user.streaming.data.timeout: 300sec
|
|
tieredstore:
|
|
levels:
|
|
- mediumtype: SSD
|
|
path: /mnt/ssd0/cache
|
|
quota: 100Gi
|
|
high: "0.95"
|
|
low: "0.7"
|
|
master:
|
|
nodeSelector:
|
|
node.kubernetes.io/instance-type: m5n.xlarge
|
|
worker:
|
|
nodeSelector:
|
|
node.kubernetes.io/instance-type: m5n.xlarge
|