Skip to content

Commit 63ece1f

Browse files
authored
fix(env): use conda-forge pytorch-gpu for reliable CUDA builds (#11)
Replace pytorch/nvidia channels + pytorch-cuda=12.4 with conda-forge only + pytorch-gpu meta-package. This matches the working ESA-Datalabs setup and ensures the CUDA variant is installed during Docker builds (with CONDA_OVERRIDE_CUDA="12"). The pytorch-cuda package from the pytorch channel does not constrain the pytorch package to its GPU variant, resulting in CPU-only builds. The conda-forge pytorch-gpu meta-package correctly forces the CUDA variant of pytorch.
1 parent fd1d6d2 commit 63ece1f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎environment.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# the terms contained in the file 'LICENCE.txt'.
77
name: am
88
channels:
9-
- pytorch
10-
- nvidia
119
- conda-forge
1210
dependencies:
1311
- astropy
@@ -23,7 +21,7 @@ dependencies:
2321
- pyarrow
2422
- python=3.11
2523
- pytorch>=2.6
26-
- pytorch-cuda=12.4
24+
- pytorch-gpu
2725
- pyturbojpeg
2826
- scikit-image
2927
- scikit-learn

0 commit comments

Comments
 (0)