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

User Guide section on usage of Rye with existing docker containers shipped by nvidia #1151

Open
pantelis opened this issue Jun 10, 2024 · 0 comments

Comments

@pantelis
Copy link

Its very unclear at the moment how Rye can be used with existing docker containers for example shipped by nvidia. Many engineers start with a container and install packages that respect the nvidia optimized / accelerated package versions therein.


FROM nvcr.io/nvidia/pytorch:23.10-py3 as builder

At some point the rye toolchain can be set to the existing toolchain

RUN rye toolchain register --name nvidia /usr/bin/python

Its unclear though what should happen after the pinning and syncing past registration to get to the desired behavior:

When you do rye add torch && rye sync, should use the existingt torch installation rather than a new independent installation into a .venv.

There is a way to use pip-tools and pip constraints to achieve the above but I am wondering if there are others that faced this issue and managed to create a workflow based on Rye.

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

1 participant