Experiment With Ray Distributed for STUMPED #747
seanlaw
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ray has become more popular over the years but has had some difficulty supporting
numba
and Apple Silicon chips. However that seems to have changed. STUMPY purposely designedstumped
(and other distributed functions) in a way that can be easily adopted for other distributed systems like Ray. The tricky part is figuring out how to not add Ray as a dependency (similar to how Dask is not a STUMPY dependency). This post is to demonstrate/document a minimum viable example of how one might use Ray with STUMPY. Below is an initial set of experimentation steps for running the basicstump
(notstumped
) function on Ray:Install Ray on Apple M2
conda create -n ray python=3.11
conda install -c conda-forge grpcio
pip install ray
Decorate STUMPY
Note that we don't need to
import ray
here!Note that you can gather a set of futures from ray via:
Test Ray and Dask
Distributed Process Pool
https://docs.ray.io/en/latest/ray-more-libs/multiprocessing.html#run-on-a-cluster
Beta Was this translation helpful? Give feedback.
All reactions