[Misc] Getting and passing ray runtime_env to workers (#22040)
Signed-off-by: Rui Qiao <ruisearch42@gmail.com>
This commit is contained in:
@@ -295,9 +295,12 @@ def initialize_ray_cluster(
|
||||
logger.warning(
|
||||
"No existing RAY instance detected. "
|
||||
"A new instance will be launched with current node resources.")
|
||||
ray.init(address=ray_address, num_gpus=parallel_config.world_size)
|
||||
ray.init(address=ray_address,
|
||||
num_gpus=parallel_config.world_size,
|
||||
runtime_env=parallel_config.ray_runtime_env)
|
||||
else:
|
||||
ray.init(address=ray_address)
|
||||
ray.init(address=ray_address,
|
||||
runtime_env=parallel_config.ray_runtime_env)
|
||||
|
||||
device_str = current_platform.ray_device_key
|
||||
if not device_str:
|
||||
|
||||
Reference in New Issue
Block a user