Freate16 commited on
Commit
fb45033
·
1 Parent(s): 58f623a

Fix PyTorch pip version tags

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. requirements.txt +2 -2
Dockerfile CHANGED
@@ -25,14 +25,14 @@ RUN apt-get update && apt-get install -y \
25
  USER user
26
 
27
  # 1. Install PyTorch FIRST (Required for PyG C++ extensions)
28
- RUN pip install --no-cache-dir --user torch==2.2.0+cpu torchvision==0.17.0+cpu -f https://download.pytorch.org/whl/cpu
29
 
30
  # 2. Install PyTorch Geometric dependencies (Sparse/Scatter) natively from PyG wheel index
31
- RUN pip install --no-cache-dir --user torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.2.0+cpu.html
32
 
33
  # 3. Copy requirements and install the rest (It will skip torch and torch-scatter since they are already installed)
34
  COPY --chown=user:user requirements.txt .
35
- RUN pip install --no-cache-dir --user -r requirements.txt -f https://data.pyg.org/whl/torch-2.2.0+cpu.html
36
 
37
  # Copy the rest of the application
38
  COPY --chown=user:user . .
 
25
  USER user
26
 
27
  # 1. Install PyTorch FIRST (Required for PyG C++ extensions)
28
+ RUN pip install --no-cache-dir --user torch==2.10.0 torchvision==0.25.0 --extra-index-url https://download.pytorch.org/whl/cpu
29
 
30
  # 2. Install PyTorch Geometric dependencies (Sparse/Scatter) natively from PyG wheel index
31
+ RUN pip install --no-cache-dir --user torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.10.0+cpu.html
32
 
33
  # 3. Copy requirements and install the rest (It will skip torch and torch-scatter since they are already installed)
34
  COPY --chown=user:user requirements.txt .
35
+ RUN pip install --no-cache-dir --user -r requirements.txt -f https://data.pyg.org/whl/torch-2.10.0+cpu.html
36
 
37
  # Copy the rest of the application
38
  COPY --chown=user:user . .
requirements.txt CHANGED
@@ -11,8 +11,8 @@ joblib
11
 
12
  # Neural Networks & Vision
13
  --extra-index-url https://download.pytorch.org/whl/cpu
14
- torch==2.2.0+cpu
15
- torchvision==0.17.0+cpu
16
  segmentation-models-pytorch==0.5.0
17
  torch-geometric==2.7.0
18
  torch-geometric-temporal==0.56.2
 
11
 
12
  # Neural Networks & Vision
13
  --extra-index-url https://download.pytorch.org/whl/cpu
14
+ torch==2.10.0
15
+ torchvision==0.25.0
16
  segmentation-models-pytorch==0.5.0
17
  torch-geometric==2.7.0
18
  torch-geometric-temporal==0.56.2