-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[Feedback] Feedback for ray + uv #50961
Comments
Hey ya'll! Would be great to have some more formal docs or guide to get this working besides the blog post. I don't know how to use our current JobConfig + anyscale.job.submit workflow with this new method |
@cabreraalex Thanks for your feedback, I'm currently working on the anyscale.job.submit workflow and will update here after that's deployed. And yes you are right, we also need to work on more formal docs 👍 |
Hi. The
|
@cabreraalex In the latest release 0.26.4 of the anyscale CLI (https://pypi.org/project/anyscale/), the py_executable support is now implemented for JobConfig and the job submit workflow. You need a cluster image that has UV installed and also unsets FROM anyscale/ray:2.43.0-slim-py312-cu125
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN echo "unset RAY_RUNTIME_ENV_HOOK" >> /home/ray/.bashrc and then you can e.g. use it like the following -- create a working_dir with the following files: main.py import ray
@ray.remote
def f():
import emoji
return emoji.emojize("Python rocks :thumbs_up:")
print(ray.get(f.remote())) pyproject.toml
job.yaml
And submit your job with import anyscale
from anyscale.job.models import JobConfig
config = JobConfig(
name="my-job",
entrypoint="uv run main.py",
working_dir=".",
max_retries=0,
image_uri="<your image here>",
py_executable="uv run",
)
anyscale.job.submit(config) |
Fantastic, will test it out, thanks! |
Just found out this ticket. I opened two tickets which related with uv |
Hello everyone! As of Ray 2.43.0, we have launched a new integration with
uv run
that we are super excited to share with you all. This will serve as the main Github issue to track any issues or feedback that ya'll might have while using this.Please share any success stories, configs, or just cool discoveries that you might have while running uv + Ray! We are excited to hear from you.
To read more about uv + Ray, check out our new blog post here.
The text was updated successfully, but these errors were encountered: