Skip to content

Commit ff817cc

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 8440348 + ccd10c1 commit ff817cc

File tree

6 files changed

+11
-22
lines changed

6 files changed

+11
-22
lines changed

examples/stable-diffusion-dreambooth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ make setup-ray-distributed-training
8787

8888
## Running the Examples
8989

90-
In the workbench, navigate to `openshift-ai-ray/notebook` to begin exploring the notebooks.
90+
In the workbench, navigate to `distributed-workloads/examples/stable-diffusion-dreambooth/notebook` to begin exploring the notebooks.
9191

9292
### Fine-tune of Stable Diffusion with DreamBooth and Ray Train
9393

examples/stable-diffusion-dreambooth/notebook/00 Intro.ipynb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
"This notebook shows a simple example of running a remote function on the Ray cluster."
99
]
1010
},
11-
{
12-
"cell_type": "code",
13-
"execution_count": null,
14-
"id": "b4e7fbb0",
15-
"metadata": {},
16-
"outputs": [],
17-
"source": [
18-
"!pip install codeflare_sdk==0.16.3"
19-
]
20-
},
2111
{
2212
"cell_type": "code",
2313
"execution_count": null,
@@ -27,8 +17,7 @@
2717
},
2818
"outputs": [],
2919
"source": [
30-
"from codeflare_sdk.cluster.cluster import Cluster, ClusterConfiguration\n",
31-
"from codeflare_sdk.cluster.auth import TokenAuthentication"
20+
"from codeflare_sdk import Cluster, ClusterConfiguration, TokenAuthentication"
3221
]
3322
},
3423
{

examples/stable-diffusion-dreambooth/notebook/01 raytrain-stablediffusion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"outputs": [],
1111
"source": [
1212
"# For matplotlib 3.8.4 see https://discourse.matplotlib.org/t/latest-versions-via-pip-jupyterlab-import-of-matplotlib-broken/24477\n",
13-
"!pip install -U ray==2.7.0 codeflare_sdk==0.16.3 huggingface_hub==0.16.2 matplotlib==3.8.4"
13+
"!pip install -U huggingface_hub==0.16.2 matplotlib==3.8.4"
1414
]
1515
},
1616
{

examples/stable-diffusion-dreambooth/yaml/distributed/git-clone.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
command: ["/bin/sh", "-c"]
1515
args:
1616
- |
17-
git clone https://github.com/tsailiming/openshift-ai-ray /data/openshift-ai-ray
17+
git clone https://github.com/opendatahub-io/distributed-workloads /data/distributed-workloads
1818
volumeMounts:
1919
- name: data
2020
mountPath: /data

examples/stable-diffusion-dreambooth/yaml/distributed/workbench.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
opendatahub.io/image-display-name: Standard Data Science
77
openshift.io/description: ''
88
openshift.io/display-name: stable-diffusion-nb
9-
notebooks.opendatahub.io/last-image-selection: 's2i-generic-data-science-notebook:2024.1'
9+
notebooks.opendatahub.io/last-image-selection: 's2i-generic-data-science-notebook:2024.2'
1010
notebooks.opendatahub.io/last-size-selection: Medium
1111
name: stable-diffusion-nb
1212
namespace: distributed
@@ -57,7 +57,7 @@ spec:
5757
--ServerApp.quit_button=False
5858
--ServerApp.tornado_settings={"user":"admin","hub_host":"https://rhods-dashboard-redhat-ods-applications.apps.cluster-frvw4.frvw4.sandbox1107.opentlc.com","hub_prefix":"/projects/distributed"}
5959
- name: JUPYTER_IMAGE
60-
value: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-generic-data-science-notebook:2024.1'
60+
value: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-generic-data-science-notebook:2024.2'
6161
- name: PIP_CERT
6262
value: /etc/pki/tls/custom-certs/ca-bundle.crt
6363
- name: REQUESTS_CA_BUNDLE
@@ -80,7 +80,7 @@ spec:
8080
name: trusted-ca
8181
readOnly: true
8282
subPath: ca-bundle.crt
83-
image: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-generic-data-science-notebook:2024.1'
83+
image: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-generic-data-science-notebook:2024.2'
8484
workingDir: /opt/app-root/src
8585
envFrom:
8686
- secretRef:

examples/stable-diffusion-dreambooth/yaml/operators/nfd-cr.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ metadata:
44
name: nfd-instance
55
namespace: openshift-nfd
66
spec:
7-
operand:
8-
image: >-
9-
registry.redhat.io/openshift4/ose-node-feature-discovery@sha256:bc6130cddeec433af572eed4f4558001c0680418dbdd4a52431200a47010d926
10-
servicePort: 12000
117
workerConfig:
128
configData: |
139
core:
@@ -116,6 +112,10 @@ spec:
116112
# vendor: ["15b3"]
117113
# device: ["1014", "1017"]
118114
# loadedKMod : ["vendor_kmod1", "vendor_kmod2"]
115+
operand:
116+
image: 'registry.redhat.io/openshift4/ose-node-feature-discovery-rhel9@sha256:00208889a98c5b767e201bd1427be07edd4388271d82f09bbe393a545e94ac42'
117+
imagePullPolicy: IfNotPresent
118+
servicePort: 12000
119119
customConfig:
120120
configData: |
121121
# - name: "more.kernel.features"

0 commit comments

Comments
 (0)