File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,17 @@ jobs:
1818 with :
1919 fetch-depth : 0
2020 - name : Build Docker
21+ id : build
2122 run : |
2223 version=$(cat version.txt)
23- docker build --build-arg http_proxy=http://172.17.0.1:7890 --build-arg https_proxy=http://172.17.0.1:7890 -t hpcaitech/colossalai:$version ./docker
24+ tag=hpcaitech/colossalai:$version
25+ docker build --build-arg http_proxy=http://172.17.0.1:7890 --build-arg https_proxy=http://172.17.0.1:7890 -t $tag ./docker
26+ echo "tag=${tag}" >> $GITHUB_OUTPUT
2427 - name : Log in to Docker Hub
2528 uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2629 with :
2730 username : ${{ secrets.DOCKER_USERNAME }}
2831 password : ${{ secrets.DOCKER_PASSWORD }}
29- - name : Extract metadata (tags, labels) for Docker
30- id : meta
31- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
32- with :
33- images : hpcaitech/colossalai
34- - name : Build and push Docker image
35- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
36- with :
37- context : .
38- push : true
39- tags : ${{ steps.meta.outputs.tags }}
40- labels : ${{ steps.meta.outputs.labels }}
32+ - name : Push Docker image
33+ run : |
34+ docker push ${{ steps.build.outputs.tag }}
Original file line number Diff line number Diff line change 11FROM hpcaitech/cuda-conda:11.3
22
33# install torch
4- RUN conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
4+ RUN conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
55
66# install apex
77RUN git clone https://github.com/NVIDIA/apex && \
88 cd apex && \
9+ pip install packaging && \
910 pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" --global-option="--fast_layer_norm" ./
1011
1112# install colossalai
1213RUN git clone https://github.com/hpcaitech/ColossalAI.git \
1314 && cd ./ColossalAI \
14- && pip install -v --no-cache-dir .
15+ && CUDA_EXT=1 pip install -v --no-cache-dir .
1516
1617# install titans
1718RUN pip install --no-cache-dir titans
You can’t perform that action at this time.
0 commit comments