You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demo-notebooks/additional-demos/hf_interactive.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -91,13 +91,13 @@
91
91
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
95
-
"num_gpus=1,\n",
94
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/additional-demos/local_interactive.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,13 @@
54
54
"\n",
55
55
"cluster = Cluster(ClusterConfiguration(\n",
56
56
" name=cluster_name,\n",
57
-
"head_gpus=0, # For GPU enabled workloads set the head_gpus and num_gpus\n",
58
-
"num_gpus=0,\n",
57
+
"head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/additional-demos/ray_job_client.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,13 @@
55
55
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
56
56
"cluster = Cluster(ClusterConfiguration(\n",
57
57
" name='jobtest',\n",
58
-
"head_gpus=0, # For GPU enabled workloads set the head_gpus and num_gpus\n",
59
-
"num_gpus=0,\n",
58
+
"head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/0_basic_ray.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -64,13 +64,13 @@
64
64
" name='raytest', \n",
65
65
" head_cpus='500m',\n",
66
66
" head_memory=2,\n",
67
-
"head_gpus=0, # For GPU enabled workloads set the head_gpus and num_gpus\n",
68
-
"num_gpus=0,\n",
67
+
"head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/1_cluster_job_client.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,13 @@
57
57
" name='jobtest',\n",
58
58
" head_cpus=1,\n",
59
59
" head_memory=4,\n",
60
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
61
-
"num_gpus=1,\n",
60
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/2_basic_interactive.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,13 @@
62
62
" name=cluster_name,\n",
63
63
" head_cpus=1,\n",
64
64
" head_memory=6,\n",
65
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
66
-
"num_gpus=1,\n",
65
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/notebook-ex-outputs/0_basic_ray.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -70,13 +70,13 @@
70
70
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
71
71
"cluster = Cluster(ClusterConfiguration(\n",
72
72
" name='raytest',\n",
73
-
"head_gpus=0, # For GPU enabled workloads set the head_gpus and num_gpus\n",
74
-
"num_gpus=0,\n",
73
+
"head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/notebook-ex-outputs/1_cluster_job_client.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,13 @@
55
55
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
56
56
"cluster = Cluster(ClusterConfiguration(\n",
57
57
" name='jobtest',\n",
58
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
59
-
"num_gpus=1,\n",
58
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/notebook-ex-outputs/2_basic_interactive.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -68,13 +68,13 @@
68
68
"cluster_name = \"interactivetest\"\n",
69
69
"cluster = Cluster(ClusterConfiguration(\n",
70
70
" name=cluster_name,\n",
71
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
72
-
"num_gpus=1,\n",
71
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/preview_nbs/0_basic_ray.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,13 @@
62
62
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
63
63
"cluster = Cluster(ClusterConfiguration(\n",
64
64
" name='raytest',\n",
65
-
"head_gpus=0, # For GPU enabled workloads set the head_gpus and num_gpus\n",
66
-
"num_gpus=0,\n",
65
+
"head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/preview_nbs/1_cluster_job_client.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,13 @@
55
55
"# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n",
56
56
"cluster = Cluster(ClusterConfiguration(\n",
57
57
" name='jobtest',\n",
58
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
59
-
"num_gpus=1,\n",
58
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/preview_nbs/2_basic_interactive.ipynb
+6-6
Original file line number
Diff line number
Diff line change
@@ -60,13 +60,13 @@
60
60
"cluster_name = \"interactivetest\"\n",
61
61
"cluster = Cluster(ClusterConfiguration(\n",
62
62
" name=cluster_name,\n",
63
-
"head_gpus=1, # For GPU enabled workloads set the head_gpus and num_gpus\n",
64
-
"num_gpus=1,\n",
63
+
"head_extended_resource_requests={'nvidia.com/gpu':1}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n",
0 commit comments