Skip to content

Commit 5c38d79

Browse files
authored
Transfer Custom NB and Demo Bits (#55)
* Transfer Custom NB and Demo Bits * Format fix
1 parent f7cf3bc commit 5c38d79

File tree

7 files changed

+3898
-0
lines changed

7 files changed

+3898
-0
lines changed

custom-nb-image/Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2022 IBM, Red Hat
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
FROM quay.io/thoth-station/s2i-minimal-py38-notebook:latest
16+
17+
# Install: torch (v1.12), ray (v2.1.0) and others
18+
19+
COPY requirements.txt requirements.txt
20+
21+
RUN pip install -r requirements.txt
22+
23+
RUN pip uninstall pickle5 -y
24+
25+
# Pull notebooks in
26+
ADD codeflare/ /home/codeflare
27+
28+
# Install codeflare-cli and other libraries
29+
RUN pip install codeflare-sdk==0.2.1 \
30+
datasets==2.6.1 \
31+
transformers==4.23.1 \
32+
evaluate==0.3.0 \
33+
git+https://github.com/MichaelClifford/torchx.git@ray2-patch

custom-nb-image/imagestream.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2022 IBM, Red Hat
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
kind: ImageStream
16+
apiVersion: image.openshift.io/v1
17+
metadata:
18+
name: codeflare-notebook
19+
labels:
20+
opendatahub.io/notebook-image: 'true'
21+
annotations:
22+
opendatahub.io/notebook-image-name:
23+
"Codeflare Notebook"
24+
opendatahub.io/notebook-image-desc: "Custom Jupyter notebook image with codeflare SDK, Python 3.8, Ray 2.1.0 and PyTorch 1.12.1"
25+
spec:
26+
lookupPolicy:
27+
local: true
28+
tags:
29+
- annotations:
30+
openshift.io/imported-from: quay.io/project-codeflare/notebook
31+
name: latest
32+
from:
33+
kind: DockerImage
34+
name: quay.io/project-codeflare/notebook:latest
35+
name: "latest"
36+
referencePolicy:
37+
type: Source
38+
importPolicy:
39+
scheduled: true

custom-nb-image/requirements.txt

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
#
2+
# These requirements were autogenerated by pipenv
3+
# To regenerate from the project's Pipfile, run:
4+
#
5+
# pipenv lock --requirements
6+
#
7+
8+
-i https://pypi.org/simple
9+
aiohttp-cors==0.7.0
10+
aiohttp==3.8.3
11+
aiorwlock==1.3.0
12+
aiosignal==1.2.0; python_version >= '3.6'
13+
anyio==3.6.1; python_full_version >= '3.6.2'
14+
argon2-cffi-bindings==21.2.0; python_version >= '3.6'
15+
argon2-cffi==21.3.0; python_version >= '3.6'
16+
asgiref==3.5.2; python_version >= '3.7'
17+
asttokens==2.0.8
18+
astunparse==1.6.3
19+
async-timeout==4.0.2; python_version >= '3.6'
20+
attrs==22.1.0; python_version >= '3.5'
21+
babel==2.10.3; python_version >= '3.6'
22+
backcall==0.2.0
23+
bcrypt==4.0.0; python_version >= '3.6'
24+
beautifulsoup4==4.11.1; python_version >= '3.6'
25+
black==22.8.0; python_full_version >= '3.6.2'
26+
bleach==5.0.1; python_version >= '3.7'
27+
blessed==1.19.1; python_version >= '2.7'
28+
boto3==1.17.11
29+
botocore==1.20.112; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
30+
cachetools==5.2.0; python_version ~= '3.7'
31+
certifi==2022.9.24; python_version >= '3.6'
32+
cffi==1.15.1
33+
charset-normalizer==2.1.1; python_version >= '3.6'
34+
click==8.0.4; python_version >= '3.6'
35+
cloudpickle==2.2.0; python_version >= '3.6'
36+
codeflare==0.1.2.dev0
37+
colorama==0.4.5; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
38+
colorful==0.5.4
39+
contourpy==1.0.5; python_version >= '3.7'
40+
cryptography==38.0.1; python_version >= '3.6'
41+
cycler==0.11.0; python_version >= '3.6'
42+
cython==0.29.32
43+
dask[array,dataframe]==2021.2.0
44+
dataclasses==0.6
45+
debugpy==1.6.3; python_version >= '3.7'
46+
decorator==5.1.1; python_version >= '3.5'
47+
defusedxml==0.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
48+
distlib==0.3.6
49+
entrypoints==0.4; python_version >= '3.6'
50+
executing==1.1.0
51+
fastapi==0.85.0
52+
fastjsonschema==2.16.2
53+
filelock==3.8.0; python_version >= '3.7'
54+
flatbuffers==22.9.24
55+
fonttools==4.37.3; python_version >= '3.7'
56+
frozenlist==1.3.1; python_version >= '3.7'
57+
fsspec==2022.8.2
58+
future==0.18.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
59+
gitdb==4.0.9; python_version >= '3.6'
60+
gitpython==3.1.27; python_version >= '3.7'
61+
google-api-core==2.10.1; python_version >= '3.6'
62+
google-auth==2.12.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
63+
googleapis-common-protos==1.56.4; python_version >= '3.7'
64+
gpustat==1.0.0
65+
graphviz==0.20.1; python_version >= '3.7'
66+
greenery==3.3.3
67+
grpcio==1.43.0; python_version >= '3.6'
68+
h11==0.14.0; python_version >= '3.7'
69+
hyperopt==0.2.5
70+
idna==3.4; python_version >= '3.5'
71+
importlib-metadata==4.12.0; python_version < '3.10'
72+
importlib-resources==5.9.0; python_version < '3.9'
73+
ipykernel==6.16.0; python_version >= '3.7'
74+
ipython-genutils==0.2.0
75+
ipython==8.5.0; python_version >= '3.8'
76+
ipywidgets==8.0.2
77+
iso8601==1.1.0; python_version < '4' and python_full_version >= '3.6.2'
78+
jedi==0.18.1; python_version >= '3.6'
79+
jinja2==3.1.2; python_version >= '3.7'
80+
jmespath==0.10.0; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
81+
joblib==1.2.0; python_version >= '3.7'
82+
json5==0.9.10
83+
jsonref==0.2
84+
jsonschema==4.16.0; python_version >= '3.7'
85+
jsonsubschema==0.0.6
86+
jupyter-client==7.3.5; python_version >= '3.7'
87+
jupyter-core==4.11.1; python_version >= '3.7'
88+
jupyter-server-mathjax==0.2.6; python_version >= '3.7'
89+
jupyter-server==1.19.1; python_version >= '3.7'
90+
jupyterlab-git==0.30.0
91+
jupyterlab-pygments==0.2.2; python_version >= '3.7'
92+
jupyterlab-s3-browser==0.10.1
93+
jupyterlab-server==2.15.2; python_version >= '3.7'
94+
jupyterlab-widgets==3.0.3; python_version >= '3.7'
95+
jupyterlab==3.4.7; python_version >= '3.7'
96+
kiwisolver==1.4.4; python_version >= '3.7'
97+
kopf==1.35.6
98+
kubernetes==24.2.0
99+
lale==0.6.19
100+
locket==1.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
101+
lxml==4.9.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
102+
markupsafe==2.1.1; python_version >= '3.7'
103+
matplotlib-inline==0.1.6; python_version >= '3.5'
104+
matplotlib==3.6.0
105+
memory-profiler==0.60.0
106+
mistune==2.0.4
107+
msgpack==1.0.4
108+
multidict==6.0.2; python_version >= '3.7'
109+
mypy-extensions==0.4.3
110+
nbclassic==0.4.3; python_version >= '3.7'
111+
nbclient==0.6.8; python_version >= '3.7'
112+
nbconvert==7.0.0; python_version >= '3.7'
113+
nbdime==3.1.1; python_version >= '3.6'
114+
nbformat==5.6.1; python_version >= '3.7'
115+
nest-asyncio==1.5.5; python_version >= '3.5'
116+
networkx==2.8.6; python_version >= '3.8'
117+
notebook-shim==0.1.0; python_version >= '3.7'
118+
notebook==6.4.12; python_version >= '3.7'
119+
numpy==1.23.3
120+
nvidia-ml-py==11.495.46
121+
oauthlib==3.2.1; python_version >= '3.6'
122+
opencensus-context==0.1.3
123+
opencensus==0.11.0
124+
openshift-client==1.0.18
125+
packaging==21.3
126+
pandas==1.5.0
127+
pandocfilters==1.5.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
128+
paramiko==2.11.0
129+
parso==0.8.3; python_version >= '3.6'
130+
partd==1.3.0
131+
pathspec==0.10.1; python_version >= '3.7'
132+
pexpect==4.8.0; sys_platform != 'win32'
133+
pickleshare==0.7.5
134+
pillow==9.2.0; python_version >= '3.7'
135+
pkgutil-resolve-name==1.3.10; python_version < '3.9'
136+
platformdirs==2.5.2; python_version >= '3.7'
137+
portion==2.3.0; python_version ~= '3.6'
138+
prometheus-client==0.13.1
139+
prompt-toolkit==3.0.31; python_full_version >= '3.6.2'
140+
protobuf==3.20.1; python_version >= '3.7'
141+
psutil==5.9.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
142+
ptyprocess==0.7.0; os_name != 'nt'
143+
pure-eval==0.2.2
144+
py-spy==0.3.14
145+
pyarrow==6.0.1
146+
pyasn1-modules==0.2.8
147+
pyasn1==0.4.8
148+
pycparser==2.21
149+
pydantic==1.10.2; python_version >= '3.7'
150+
pygments==2.13.0; python_version >= '3.6'
151+
pynacl==1.5.0; python_version >= '3.6'
152+
pyparsing==3.0.9; python_full_version >= '3.6.8'
153+
pyrsistent==0.18.1; python_version >= '3.7'
154+
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
155+
python-dotenv==0.21.0
156+
python-json-logger==2.0.4; python_version >= '3.5'
157+
pytz==2022.2.1
158+
pyyaml==6.0; python_version >= '3.6'
159+
pyzmq==24.0.1; python_version >= '3.6'
160+
ray==2.1.0
161+
requests-oauthlib==1.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
162+
requests==2.28.1; python_version >= '3.7' and python_version < '4'
163+
rsa==4.9; python_version >= '3.6'
164+
s3fs==0.3.4
165+
s3transfer==0.3.7
166+
scikit-learn==1.1.1
167+
scipy==1.8.1
168+
send2trash==1.8.0
169+
singleton-decorator==1.0.0
170+
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
171+
sklearn==0.0
172+
smart-open==6.2.0
173+
smmap==5.0.0; python_version >= '3.6'
174+
sniffio==1.3.0; python_version >= '3.7'
175+
sortedcontainers==2.4.0
176+
soupsieve==2.3.2.post1; python_version >= '3.6'
177+
stack-data==0.5.1
178+
starlette==0.20.4
179+
tabulate==0.8.10
180+
tensorboardx==2.5.1
181+
terminado==0.15.0; python_version >= '3.7'
182+
threadpoolctl==3.1.0; python_version >= '3.6'
183+
tinycss2==1.1.1; python_version >= '3.6'
184+
tomli==2.0.1; python_full_version < '3.11.0a7'
185+
toolz==0.12.0
186+
torch==1.12.1
187+
torchvision==0.13.1
188+
tornado==6.2; python_version >= '3.7'
189+
tqdm==4.64.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
190+
traitlets==5.4.0; python_version >= '3.7'
191+
tune-sklearn==0.4.3
192+
typing-extensions==4.3.0; python_version < '3.10'
193+
urllib3==1.26.12
194+
uvicorn==0.16.0
195+
virtualenv==20.16.5; python_version >= '3.6'
196+
wcwidth==0.2.5
197+
webencodings==0.5.1
198+
websocket-client==1.4.1; python_version >= '3.7'
199+
wheel==0.37.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
200+
widgetsnbextension==4.0.3; python_version >= '3.7'
201+
wrapt==1.14.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
202+
xgboost-ray==0.1.10
203+
xgboost==1.6.2
204+
yarl==1.8.1; python_version >= '3.7'
205+
zipp==3.8.1; python_version < '3.10'

0 commit comments

Comments
 (0)