Skip to content

Commit 329ef33

Browse files
Maxusmustiopenshift-merge-robot
authored andcommitted
Update outdated interactive
1 parent 5ccca0d commit 329ef33

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

demo-notebooks/additional-interactive/hf_interactive.ipynb

+7-6
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@
5353
"metadata": {},
5454
"outputs": [],
5555
"source": [
56-
"# Create authentication object for oc user permissions and login\n",
56+
"# Create authentication object for user permissions\n",
57+
"# IF unused, SDK will automatically check for default kubeconfig, then in-cluster config\n",
58+
"# KubeConfigFileAuthentication can also be used to specify kubeconfig path manually\n",
5759
"auth = TokenAuthentication(\n",
5860
" token = \"XXXX\",\n",
5961
" server = \"XXXX\",\n",
60-
" skip_tls = True\n",
62+
" skip_tls = False\n",
6163
")\n",
6264
"auth.login()"
6365
]
@@ -88,13 +90,12 @@
8890
"# Create our cluster and submit appwrapper\n",
8991
"cluster = Cluster(ClusterConfiguration(name='hfgputest', \n",
9092
" namespace=\"default\",\n",
91-
" min_worker=1, \n",
92-
" max_worker=1, \n",
93+
" num_workers=1,\n",
9394
" min_cpus=8, \n",
9495
" max_cpus=8, \n",
9596
" min_memory=16, \n",
9697
" max_memory=16, \n",
97-
" gpu=4,\n",
98+
" num_gpus=4,\n",
9899
" image=\"quay.io/project-codeflare/ray:2.5.0-py38-cu116\",\n",
99100
" instascale=True, machine_types=[\"m5.xlarge\", \"p3.8xlarge\"]))"
100101
]
@@ -319,7 +320,7 @@
319320
"#install additional libraries that will be required for this training\n",
320321
"runtime_env = {\"pip\": [\"transformers\", \"datasets\", \"evaluate\", \"pyarrow<7.0.0\", \"accelerate\"]}\n",
321322
"\n",
322-
"ray.init(address=f'{ray_cluster_uri}', runtime_env=runtime_env)\n",
323+
"ray.init(address=ray_cluster_uri, runtime_env=runtime_env)\n",
323324
"\n",
324325
"print(\"Ray cluster is up and running: \", ray.is_initialized())"
325326
]

0 commit comments

Comments
 (0)