|
1 |
| -FROM nvcr.io/nvidia/pytorch:22.05-py3 |
| 1 | +FROM nvcr.io/nvidia/pytorch:24.03-py3 |
2 | 2 |
|
3 | 3 | RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
|
4 | 4 | rm -rf /var/lib/apt/lists/* \
|
@@ -50,38 +50,25 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
|
50 | 50 | nfs-common \
|
51 | 51 | bc
|
52 | 52 |
|
53 |
| -RUN pip uninstall -y torch torchvision torchtext && \ |
54 |
| -pip uninstall -y torch torchvision torchtext && \ |
55 |
| -rm -rf ~/.cache/pip && \ |
56 |
| -conda clean -ya |
57 |
| - |
58 |
| -RUN conda install -y pyyaml tensorboardX && \ |
59 |
| - conda clean -ya |
60 |
| - |
61 |
| -# RUN ldconfig |
62 | 53 |
|
63 | 54 | # # ==================================================================
|
64 | 55 | # # pytorch
|
65 | 56 | # # ------------------------------------------------------------------
|
66 |
| -ENV TORCH_CUDA_ARCH_LIST "7.0;7.5;8.0" |
67 |
| - |
68 |
| -RUN conda install -y ninja typing && \ |
69 |
| - conda clean -ya |
| 57 | +ENV TORCH_CUDA_ARCH_LIST "7.0;7.5;8.0;9.0" |
70 | 58 |
|
71 | 59 | RUN pip3 install --upgrade sentry-sdk requests
|
72 | 60 |
|
73 |
| -RUN pip3 install torch==2.0.1+cu117 --index-url https://download.pytorch.org/whl/cu117 && rm -rf ~/.cache/pip |
74 |
| - |
75 | 61 | RUN cd /tmp && \
|
76 | 62 | git clone https://github.com/dptech-corp/Uni-Core && \
|
77 | 63 | cd Uni-Core && \
|
78 | 64 | python setup.py install && \
|
79 |
| - rm -rf /tmp/* && rm -rf ~/.cache/pip |
| 65 | + rm -rf /tmp/* && rm -rf ~/.cache/pip |
80 | 66 |
|
81 | 67 | RUN pip3 install --no-cache-dir tokenizers lmdb biopython ml-collections timeout-decorator urllib3 tree dm-tree && rm -rf ~/.cache/pip
|
82 | 68 |
|
| 69 | +RUN MAX_JOBS=4 pip3 install -U 'flash-attn<2.5.0' --no-build-isolation --no-cache-dir |
| 70 | + |
83 | 71 | RUN ldconfig && \
|
84 | 72 | apt-get clean && \
|
85 | 73 | apt-get autoremove && \
|
86 |
| - rm -rf /var/lib/apt/lists/* /tmp/* && \ |
87 |
| - conda clean -ya |
| 74 | + rm -rf /var/lib/apt/lists/* /tmp/* |
0 commit comments