Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the Ray framework essential for Cell type identification on a single node with 2 GPUs? #14

Open
ddzhang3 opened this issue Apr 15, 2024 · 1 comment

Comments

@ddzhang3
Copy link

Thanks for your work on decomposition of spatial transcriptomic data. However, I am now stucked in the ray.init(), which always throws out of errors:

2024-04-15 08:07:58,016 ERROR services.py:1363 -- Failed to start the dashboard: Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
2024-04-15 08:07:58,017 ERROR services.py:1364 -- Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
Traceback (most recent call last):
File "/home/users/ddzhang/miniconda3/envs/SpatialScope/lib/python3.9/site-packages/ray/_private/services.py", line 1336, in start_dashboard
with open(dashboard_log, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/users/ddzhang/miniconda3/envs/SpatialScope/lib/python3.9/site-packages/ray/_private/services.py", line 1347, in start_dashboard
raise Exception(err_msg + f"\nFailed to read dashboard log: {e}")
Exception: Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'

I tried several versions:
ray 2.0.0 with grpcio 1.43.0 and ray 2.0.0 with grpcio 1.46.3, and changed the temp_dir in the ray.init() of src/Cell_Type_Identification.py with no success. I also tried ray.init() with local_mode=True, which gave the same error.

What I wander is that, for my cluster's config with 1 head node and 1 compute node with 2 GPUs, is it possible to get rid of the ray framework and just run on a local mode?
I read a part of the source code, and it seems that I could modify the code to not use the Ray framework. What I'm not sure is that would the remove of ray influence the results of data analysis?

@JiaShun-Xiao
Copy link
Collaborator

Thanks for your work on decomposition of spatial transcriptomic data. However, I am now stucked in the ray.init(), which always throws out of errors:

2024-04-15 08:07:58,016 ERROR services.py:1363 -- Failed to start the dashboard: Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
2024-04-15 08:07:58,017 ERROR services.py:1364 -- Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
Traceback (most recent call last):
File "/home/users/ddzhang/miniconda3/envs/SpatialScope/lib/python3.9/site-packages/ray/_private/services.py", line 1336, in start_dashboard
with open(dashboard_log, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/users/ddzhang/miniconda3/envs/SpatialScope/lib/python3.9/site-packages/ray/_private/services.py", line 1347, in start_dashboard
raise Exception(err_msg + f"\nFailed to read dashboard log: {e}")
Exception: Failed to start the dashboard
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2024-04-15_08-06-57_711318_1989227/logs/dashboard.log'

I tried several versions: ray 2.0.0 with grpcio 1.43.0 and ray 2.0.0 with grpcio 1.46.3, and changed the temp_dir in the ray.init() of src/Cell_Type_Identification.py with no success. I also tried ray.init() with local_mode=True, which gave the same error.

What I wander is that, for my cluster's config with 1 head node and 1 compute node with 2 GPUs, is it possible to get rid of the ray framework and just run on a local mode? I read a part of the source code, and it seems that I could modify the code to not use the Ray framework. What I'm not sure is that would the remove of ray influence the results of data analysis?

Hi, it is fine to remove the ray framework as it was only used for speed up computating through using mutili-processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants