Ray is not initialized while running tuner.py, throwing an exception.
Steps to reproduce
Try to run the Docker-based Local Quickstart part of the docs. You should get the following exception:
"Ray is not initialized. Please initialize Ray before getting node resources."
Additional context
PR #2847, commit 286eb39, modified get_gpu_node_resources() to be:
|
if not ray.is_initialized(): |
|
raise Exception("Ray is not initialized. Please initialize Ray before getting node resources.") |
which was originally:
if not ray.is_initialized():
ray.init(address=ray_address)
Now, ray is not initialized when tuner.py is directly used.
Is there a reason to change the previous implementation? If not, we could simply revert this line or use the new ray_init().
System Info
- Commit: 5dae83e
- Isaac Sim Version: 5.0
- OS: Ubuntu 22.04
- GPU: RTX 4090
- CUDA: 12.2
- GPU Driver: 535.129.03
Checklist
Acceptance Criteria
Ray is not initialized while running
tuner.py, throwing an exception.Steps to reproduce
Try to run the
Docker-based Local Quickstartpart of the docs. You should get the following exception:"Ray is not initialized. Please initialize Ray before getting node resources."
Additional context
PR #2847, commit 286eb39, modified
get_gpu_node_resources()to be:IsaacLab/scripts/reinforcement_learning/ray/util.py
Lines 345 to 346 in 5dae83e
which was originally:
Now, ray is not initialized when
tuner.pyis directly used.Is there a reason to change the previous implementation? If not, we could simply revert this line or use the new
ray_init().System Info
Checklist
Acceptance Criteria
tuner.pyruns without errors