-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hi everyone,
I just wanted to share a successful workaround for installing MONAI on a system with an RTX 50 series GPU (5070 Ti), which requires a newer PyTorch version (2.8 preview in my case) than what is currently allowed by the pip package dependencies (torch<=2.6).
My Setup:
Ubuntu 24.04 (WSL2)
RTX 5070 Ti
CUDA 12.9
PyTorch 2.8.0 (preview)
The Workaround:
I downloaded the MONAI v1.5.0 source code from the releases page.
https://github.com/Project-MONAI/MONAI/releases
I ran pip install .
from the source directory. This installed MONAI but also downgraded PyTorch to 2.6.
I immediately re-installed my required PyTorch 2.8.0 version.
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
After these steps, both MONAI 1.5.0 and PyTorch 2.8.0 are co-existing happily in my environment.
This seems to be a dependency constraint issue in setup.py. While my method is a bit of a hack, it does work. Hope this helps anyone else with next-gen hardware!