-
Notifications
You must be signed in to change notification settings - Fork 5
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
PyTorch for ROCm is overwritten by PyTorch for CUDA #37
Comments
Please use same pip/python version for pytorch and lion-pytorch installation. |
After being replaced by CUDA PyTorch, I need to re-install PyTorch for ROCm like this.
It's better to give user a heads-up on this in README. When installing this bitsandbytes for ROCm, I didn't notice my PyTorch for ROCm is replaced by PyTorch for CUDA, then my model training code was not working due to that, which wastes a lot of time for me to debug.. |
@taka-nscc , please check that your environment doesn't have multiple python/pip versions. You can create a container from one of our pytorch dockers to be sure and install inside it. |
This is the procedure to set up my environment.
It would be user friendly if we could add explanation about this in README so that users can recognize they need to re-install PyTorch manually. |
System Info
If I follow installation guide on README, lion-pytorch is installed (see
requirements-dev.txt
). However, installing lion-pytorch cause uninstallation of PyTorch for ROCm (e.g., 2.4.0.dev20240520+rocm6.1) and install PyTorch for CUDA (e.g., 2.3.1+cu121). Is there a way to avoid the overwrite?A workaround is to install lion-pytorch first, then re-install PyTorch for ROCm manually. However, it may confuse a user. If there is no way to avoid the overwrite, I will raise the PR to add explanation to README.
Reproduction
Expected behavior
Keep original PyTorch for ROCm if possible. If not, at least we should add note in order to call a user attention to reinstall PyTorch for ROCm.
The text was updated successfully, but these errors were encountered: