question: Do I need to use ray.init() before using the Ray Accelerator? #7
Comments
Hey @MohammedAljahdali thanks for the question. Yes you need to call The error you are seeing is I think due to the number of GPUs available on your machine. It seems like there is only 1 GPU on your machine, but you are using 4 workers, and since |
Actually it is pretty simple to automatically call |
Thank you for the help, and happy that I inspired a change with my question. Currently, I am facing a new issue, and I think it's related to ray itself, whenever I run any program with the ray, the program never gets executed and the script ends. I faced this issue, when I use the accelerator, and when I used the tuner, each on it's own.
Also, the dashboard does not open with me. I will open an issue on ray repo. |
What do you mean that the program never gets executed? Are the print statements not being printed out? Also, just an fyi, calling Also, could you describe your dashboard issue further? When you run And last thing- can you make sure you are using the latest version of Ray. Thanks. |
I am running the 1.2.0 version, which is the latest, I think. As for programs not being executed, yes the print statements are not printed out. Thank you for the clear-up about the example, but tbh I just copied it to check if the issue is from ray or my main script. I tried using |
Hmm the print statements not being shown is odd. Is there any output being shown at all that you can share? |
I just reinstalled ray and nothing changed. This the output of running the example above:
|
@MohammedAljahdali wow ok this is really odd. Could you post this as an issue on the main ray repo? It'll be easier to get more help there. |
I wrote a question here: https://discuss.ray.io/t/when-using-ray-application-does-not-get-executed/1158 |
@MohammedAljahdali can you post a bug report here as well- https://github.com/ray-project/ray/issues |
Yea sure, thank you lots for the help. |
I opened an issue checkout please ray-project/ray#14522 |
Hey, Thank you for creating a needed library.
I am very new to using Ray, and I already had a project built around PL. I looked around on how to add Ray distributed training backend to my project, and I found this library that does not force me to not use the PL trainer.
Now, I am trying to use the accelerator on my local machine, but I failed to do so. I think it's a really simple issue, because of my lack of knowledge.
This the bit where I add the accelerator:
I tried without using ray init and I got an error, and when I add ray init I get this:
The text was updated successfully, but these errors were encountered: