@@ -26,19 +26,19 @@ ENV PATH /opt/conda/bin:$PATH
2626
2727ARG DEVICE
2828RUN case ${DEVICE} in \
29- "cu124 " ) wget https://tzrec.oss-cn-beijing.aliyuncs.com/third_party/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \
29+ "cu126 " ) wget https://tzrec.oss-cn-beijing.aliyuncs.com/third_party/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \
3030 dpkg -i cuda-keyring_1.1-1_all.deb && \
3131 apt-get update && \
32- apt-get install cuda-compat-12-4 && \
32+ apt-get install cuda-compat-12-6 && \
3333 rm -rf /var/lib/apt/lists/* ;; \
3434 esac
3535RUN case ${DEVICE} in \
36- "cu124 " ) pip install torch==2.6 .0 fbgemm-gpu==1.1 .0 --index-url https://download.pytorch.org/whl/cu124 && \
37- pip install torchmetrics==1.0.3 torch_tensorrt==2.6 .0 --extra-index-url https://download.pytorch.org/whl/cu124 && \
38- pip install torchrec==1.1 .0 --index-url https://download.pytorch.org/whl/cu124 ;; \
39- * ) pip install torch==2.6 .0 fbgemm-gpu==1.1 .0 --index-url https://download.pytorch.org/whl/cpu && \
40- pip install torchmetrics==1.0.3 && \
41- pip install torchrec==1.1 .0 --index-url https://download.pytorch.org/whl/cpu ;; \
36+ "cu126 " ) pip install torch==2.7 .0 fbgemm-gpu==1.2 .0 --index-url https://download.pytorch.org/whl/cu126 && \
37+ pip install torchmetrics==1.0.3 tensordict torch_tensorrt==2.7 .0 --extra-index-url https://download.pytorch.org/whl/cu126 && \
38+ pip install torchrec==1.2 .0 --index-url https://download.pytorch.org/whl/cu126 ;; \
39+ * ) pip install torch==2.7 .0 fbgemm-gpu==1.2 .0 --index-url https://download.pytorch.org/whl/cpu && \
40+ pip install torchmetrics==1.0.3 tensordict && \
41+ pip install torchrec==1.2 .0 --index-url https://download.pytorch.org/whl/cpu ;; \
4242 esac && \
4343 /opt/conda/bin/conda clean -ya
4444
@@ -48,14 +48,15 @@ ARG LD_LIBRARY_PATH
4848ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}
4949
5050ADD requirements /root/requirements
51+ ADD requirements.txt /root/requirements.txt
5152ADD requirements-cpu.txt /root/requirements-cpu.txt
5253ADD requirements-gpu.txt /root/requirements-gpu.txt
5354RUN cd /root && \
5455 case ${DEVICE} in \
55- "cu124 " ) pip install -r requirements-gpu.txt ;; \
56+ "cu126 " ) pip install -r requirements-gpu.txt ;; \
5657 * ) pip install -r requirements-cpu.txt ;; \
5758 esac && \
58- rm -rf requirements requirements-cpu.txt requirements-gpu.txt && \
59+ rm -rf requirements requirements.txt requirements -cpu.txt requirements-gpu.txt && \
5960 /opt/conda/bin/conda clean -ya
6061
6162RUN mkdir -p /home/pai/bin && \
0 commit comments