ray.init() is hanging
See original GitHub issueWhat is the problem?
ray.init()
is hanging. After logging 2021-02-04 10:22:05,793 INFO services.py:1193 -- View the Ray dashboard at http://127.0.0.1:8265
, ray.init()
never returns.
I’m running on CentOS Linux release 7.6.1810 (Core) with Python 3.8.5
Thank you!
Reproduction (REQUIRED)
import ray
ray.init()
- I have verified my script runs in a clean environment and reproduces the issue.
- I have verified the issue also occurs with the latest wheels.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
[Core] Ray.init() hanging
Hello, I have a training script that runs well locally on my machine, but not always when I deploy it on an online...
Read more >Is there a way to prevent ray.init() from hanging when using ...
init() from running on the M1 Max under some circumstances. So to summarize: to overcome a hang involving ray.init() on Apple Silicon (M1...
Read more >[Ray Tune] Ray crashes and system hangs - Google Groups
If you don't need a lot of object store memory, run ray.init(object_store_memory=int(1e9)) to limit to, e.g., 1GB. 2. Check the average RSS usage...
Read more >Starting Ray - | notebook.community
#ray.init(num_cpus=20,num_gpus=2). By default, Ray will use psutil.cpu_count() to determine the number of CPUs, and by default the number of GPUs will be ...
Read more >Getting started with Ray in Python! - Deepnote
Once we import ray we need to initialize it with ray.init() . Note that this only needs to be run once in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same issue on centOS 7 machine, I could solve my problem by introducing the num_cpus parameter as :
ray.init(num_cpus=1)
before usingray.tune()
function.Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message.
Please feel free to reopen or open a new issue if you’d still like it to be addressed.
Again, you can always ask for help on our discussion forum or Ray’s public slack channel.
Thanks again for opening the issue!