Skip to content

Commit 968ad5d

Browse files
authored
Merge pull request #47 from sauagarwa/fix-race-issue
Fix race issue
2 parents f2b3e26 + eef5818 commit 968ad5d

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

charts/all/llm-serving-service/templates/accelerator-profile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
tolerations:
1313
- effect: NoSchedule
1414
key: odh-notebook
15-
operator: Exists
15+
operator: Exists
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
kind: PersistentVolumeClaim
2+
apiVersion: v1
3+
metadata:
4+
name: model-pvc
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 50Gi
11+
volumeMode: Filesystem

charts/all/llm-serving-service/templates/serving-service-setup.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: batch/v1
32
kind: Job
43
metadata:
@@ -46,7 +45,7 @@ spec:
4645
- vllm.entrypoints.openai.api_server
4746
env:
4847
- name: HF_HOME
49-
value: /tmp/hf_home
48+
value: /cache
5049
- name: HF_TOKEN
5150
valueFrom:
5251
secretKeyRef:
@@ -74,12 +73,13 @@ spec:
7473
- autoSelect: true
7574
name: vLLM
7675
volumes:
77-
- emptyDir:
76+
- name: shm
77+
emptyDir:
7878
medium: Memory
7979
sizeLimit: 2Gi
80-
name: shm
81-
- emptyDir: {}
82-
name: cache
80+
- name: cache
81+
persistentVolumeClaim:
82+
claimName: model-pvc
8383
EOF
8484
cat << EOF | oc apply -f-
8585
apiVersion: serving.kserve.io/v1beta1
@@ -140,9 +140,10 @@ spec:
140140
echo -n 'openshift-ai initialized';echo
141141
echo -n 'Waiting for dscinitialization/default-dsci to initialize'
142142
echo
143-
oc wait --for=jsonpath='{.status.phase}'=Ready --timeout=600s -n redhat-ods-operator dscinitialization/default-dsci
143+
oc wait --for=jsonpath='{.status.phase}'=Ready --timeout=900s -n redhat-ods-operator dscinitialization/default-dsci
144144
sleep 10
145145
echo -n 'dscinitialization/default-dsci initialized';echo
146+
sleep 120
146147
command:
147148
- /bin/bash
148149
image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest

0 commit comments

Comments
 (0)