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
The resource configurations describe the cluster that will be provisioned when launching the Ray job. User can still
75
+
provide extra configurations in the job script using `ScalingConfig`, i.e. `ScalingConfig(num_workers=4, trainer_resources={"CPU": 1}, use_gpu=True)`.
68
76
69
-
*`Driver memory`: Number of MBs to allocate for Driver
77
+
*`Driver memory`: Memory in MBs to allocate for Driver
70
78
71
79
*`Driver virtual cores`: Number of cores to allocate for the Driver
72
80
73
-
*`Worker memory`: Number of MBs to allocate for each worker
81
+
*`Worker memory`: Memory in MBs to allocate for each worker
74
82
75
83
*`Worker cores`: Number of cores to allocate for each worker
76
84
@@ -89,10 +97,7 @@ for Ray Job">
89
97
90
98
Runtime environment and Additional files required for the Ray job can also be provided.
91
99
92
-
*`Runtime Environment (Optional)`: A runtime environment describes the dependencies required for the Ray job
93
-
including files, packages, environment variables, and more. This is useful when you need to install specific
94
-
packages and set environment variables for this particular Ray job. It should be provided as a YAML file. You can
95
-
select the file from the project or upload a new one.
100
+
*`Runtime Environment (Optional)`: A [runtime environment](https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments) describes the dependencies required for the Ray job including files, packages, environment variables, and more. This is useful when you need to install specific packages and set environment variables for this particular Ray job. It should be provided as a YAML file. You can select the file from the project or upload a new one.
96
101
97
102
*`Additional files`: List of other files required for the Ray job. These files will be placed in `/srv/hops/ray/job`.
98
103
@@ -108,7 +113,6 @@ environment and additional files">
108
113
109
114
Now click the `Run` button to start the execution of the job, and then click on `Executions` to see the list of all executions.
!!! notice "Using the resources in the Ray script"
46
+
The resource configurations describe the cluster that will be provisioned when launching the Ray job. User can still
47
+
provide extra configurations in the job script using `ScalingConfig`, i.e. `ScalingConfig(num_workers=4, trainer_resources={"CPU": 1}, use_gpu=True)`.
38
48
39
-
*`Driver memory`: Number of MBs to allocate for Driver
49
+
*`Driver memory`: Memory in MBs to allocate for Driver
40
50
41
51
*`Driver virtual cores`: Number of cores to allocate for the Driver
42
52
43
-
*`Worker memory`: Number of MBs to allocate for each worker
53
+
*`Worker memory`: Memory in MBs to allocate for each worker
44
54
45
55
*`Worker cores`: Number of cores to allocate for each worker
46
56
@@ -56,12 +66,10 @@ the Ray kernels">
56
66
</figure>
57
67
</p>
58
68
59
-
### Runtime environment and Additional files required for the Ray job can also be provided.
69
+
Runtime environment and Additional files required for the Ray job can also be provided.
70
+
71
+
*`Runtime Environment (Optional)`: A [runtime environment](https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments) describes the dependencies required for the Ray job including files, packages, environment variables, and more. This is useful when you need to install specific packages and set environment variables for this particular Ray job. It should be provided as a YAML file. You can select the file from the project or upload a new one.
60
72
61
-
*`Runtime Environment (Optional)`: A runtime environment describes the dependencies required for the Ray session
62
-
including files, packages, environment variables, and more. This is useful when you need to install specific
63
-
packages and set environment variables for this particular Ray session. It should be provided as a YAML file. You can
64
-
select the file from the project or upload a new one.
65
73
66
74
*`Additional files`: List of other files required for the Ray job. These files will be placed in `/srv/hops/ray/job`.
67
75
@@ -120,20 +128,15 @@ Once the Jupyter instance is started, you can create a new notebook by clicking
120
128
121
129
## Step 6: Access Ray Dashboard
122
130
123
-
When you start a Ray session in Jupyter, a new application will appear in the Jupyter page. A notebook name from
124
-
which the session was started is displayed. You can access the Ray UI by clicking on the `Ray Dashboard` and a new
125
-
tab will be opened. The Ray dashboard is only available the notebook or the kernel it was started from is running.
126
-
You can kill the Ray session to free up resources by shutting down the kernel in Jupyter. In the Ray Dashboard, you can monitor
127
-
the resources used by code you are running, the number of workers, logs, and the tasks that are running.
131
+
When you start a Ray session in Jupyter, a new application will appear in the Jupyter page.
132
+
The notebook name from which the session was started is displayed. You can access the Ray UI by clicking on the `Ray Dashboard` and a new
133
+
tab will be opened. The Ray dashboard is only available while the Ray kernel is running.
134
+
You can kill the Ray session to free up resources by shutting down the kernel in Jupyter.
135
+
In the Ray Dashboard, you can monitor the resources used by code you are running, the number of workers, logs, and the tasks that are running.
128
136
129
137
<palign="center">
130
138
<figure>
131
139
<img src="../../../../assets/images/guides/jupyter/ray_jupyter_notebook_session.png" alt="Access Ray Dashboard">
132
140
<figcaption>Access Ray Dashboard for Jupyter Ray session</figcaption>
133
141
</figure>
134
-
</p>
135
-
136
-
## Conclusion
137
-
138
-
In this guide you learned how to configure and run a Ray application in Jupyter. You can now follow this [guide](..
139
-
/python/python_install.md) to install a library that can be used in a notebook.
0 commit comments