gigl.common.utils.vertex_ai_context#
Utility functions to be used by machines running on Vertex AI.
Functions
Used to connect the worker pool. |
|
Get the current machines hostname. |
|
Hostname of the machine that will host the process with rank 0. |
|
A free port on the machine that will host the process with rank 0. |
|
Rank of the current VAI process, so they will know whether it is the master or a worker. |
|
Get the Vertex AI job ID. |
|
The total number of processes that VAI creates. |
|
Check if the code is running in a Vertex AI job. |