Uv and Ray: Pain-Free Python Dependencies in Clusters
1–10 of 11 posts
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#2https://joearms.github.io/#2013-11-21%20My%20favorite%20Erla...
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#3Any modern tips / life hacks for this situation?
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#4Unfortunately uv is usually insufficient for certain ML deployments in Python. It's a real pain to install pytorch/CUDA with all the necessary drivers and C++ dependencies so people tend to fall back to conda. Any modern tips / life hacks for this situation?
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#5Unfortunately uv is usually insufficient for certain ML deployments in Python. It's a real pain to install pytorch/CUDA with all the necessary drivers and C++ dependencies so people tend to fall back to conda. Any modern tips / life hacks for this situation?
https://docs.astral.sh/uv/guides/integration/pytorch/#automa... doesn't work?
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#6Earlier quoted context omitted.
https://docs.astral.sh/uv/guides/integration/pytorch/#automa... doesn't work?
the problem is that you still need to install all the low level stuff manually, conda does it automatically
λ uv venv && uv pip install torch --torch-backend=auto
λ uv run python -c 'import torch; print(torch.cuda.is_available())'
True
This is on Debian stable, and I don't remember doing any special setup other than installing the proprietary nvidia driver.Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#7Unfortunately uv is usually insufficient for certain ML deployments in Python. It's a real pain to install pytorch/CUDA with all the necessary drivers and C++ dependencies so people tend to fall back to conda. Any modern tips / life hacks for this situation?
They are a little more focus on scientific computing than uv, which is more general. They might be a better option in your case.
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#8Unfortunately uv is usually insufficient for certain ML deployments in Python. It's a real pain to install pytorch/CUDA with all the necessary drivers and C++ dependencies so people tend to fall back to conda. Any modern tips / life hacks for this situation?
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#9Unfortunately uv is usually insufficient for certain ML deployments in Python. It's a real pain to install pytorch/CUDA with all the necessary drivers and C++ dependencies so people tend to fall back to conda. Any modern tips / life hacks for this situation?
This is in a conventional HPC environment, and I’ve found it way better than conda since the dependency solves are so much faster and I no longer experience PyTorch silently getting downgraded to cpu version of I install a new library. Maybe I’ve been using conda poorly though?
Re: Uv and Ray: Pain-Free Python Dependencies in Clusters
#10Earlier quoted context omitted.
https://docs.astral.sh/uv/guides/integration/pytorch/#automa... doesn't work?
the problem is that you still need to install all the low level stuff manually, conda does it automatically
https://cloud.google.com/compute/docs/gpus/install-drivers-g... (NOTE: not gcloud specific)