From 9e8d66eb1f8fe80841e2a077f425a5e59c421cc6 Mon Sep 17 00:00:00 2001 From: Sarthak Pati Date: Fri, 20 Dec 2024 14:59:00 -0500 Subject: [PATCH 1/2] fixing gandlf version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b2fea68..fc5169a 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ black_version = "23.11.0" requirements = [ f"black=={black_version}", - "GANDLF@git+https://github.com/mlcommons/GandLF.git@master", + "gandlf==0.1.1", "lightning==2.4.0", "monai-generative==0.2.3", "deepspeed==0.15.1", From 28a513b926cf0cce033bbb0f39cc31cbe151a0f7 Mon Sep 17 00:00:00 2001 From: Sarthak Pati Date: Fri, 27 Dec 2024 14:58:09 -0500 Subject: [PATCH 2/2] clarified instructions --- docs/setup.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/setup.md b/docs/setup.md index 1e48ebd..98f8811 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -22,20 +22,22 @@ We are working on supporting containerized versions of GaNDLF-Synth, which will ### Install PyTorch -GaNDLF-Synth primary computational foundation is built on PyTorch and PyTorch Lightning, and as such it supports all hardware types that PyTorch supports. Please install PyTorch for your hardware type before installing GaNDLF-Synth. The version to use can be found in the -setup.py file in the root of the repository (requirements section). +GaNDLF-Synth primary computational foundation is built on PyTorch and PyTorch Lightning, and as such it supports all hardware types that PyTorch supports. Please install PyTorch for your hardware type before installing GaNDLF-Synth. + +The version to use needs to be analogous with the [GaNDLF version in the setup.py file](https://github.com/mlcommons/GaNDLF-Synth/blob/main/setup.py#L36). For example, for a requirement of `gandlf==0.1.1`, the [PyTorch requirement is 2.3.1](https://github.com/mlcommons/GaNDLF/blob/0.1.1/setup.py#L40). + See the [PyTorch installation instructions](https://pytorch.org/get-started/previous-versions/) for more details. First, instantiate your environment ```bash -(base) $> conda create -n venv_gandlf python=3.9 -y +(base) $> conda create -n venv_gandlf python=3.11 -y (base) $> conda activate venv_gandlf (venv_gandlf) $> ### subsequent commands go here ``` You may install PyTorch to be compatible with CUDA, ROCm, or CPU-only. An exhaustive list of PyTorch installations for the specific version compatible with GaNDLF can be found here: https://pytorch.org/get-started/previous-versions/#v231 -Use one of the following installation commands provided under the "Install PyTorch" section of the PyTorch website. -Example - installing PyTorch 2.3.1 with CUDA 12.1: + +Use one of the following installation commands provided under the "Install PyTorch" section of the PyTorch website. The following example is for installing PyTorch 2.3.1 with CUDA 12.1: - CUDA 12.1 ```bash (venv_gandlf) $> pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121