Skip to content

Commit

Permalink
move CUDA_VERSION_BNB arg inside of stage build scope
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed May 29, 2023
1 parent 00323f0 commit e43bcc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
include:
- cuda: cu118
cuda_version: 11.8.0
cuda_version_bnb: 118
cuda_version_bnb: "118"
pytorch: 2.0.0
- cuda: cu117
cuda_version: 11.7.0
cuda_version_bnb: 117
cuda_version_bnb: "117"
pytorch: 1.13.1
steps:
- name: Checkout
Expand Down
4 changes: 1 addition & 3 deletions docker/Dockerfile-base
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG CUDA_VERSION="11.8.0"
ARG CUDA_VERSION_BNB="118"
ARG CUDNN_VERSION="8"
ARG UBUNTU_VERSION="22.04"
ARG MAX_JOBS=4
Expand Down Expand Up @@ -62,6 +61,7 @@ RUN git clone https://github.com/microsoft/DeepSpeed.git && \
FROM base-builder AS bnb-builder

WORKDIR /workspace
ARG CUDA_VERSION_BNB="118"
ENV CUDA_VERSION_BNB=$CUDA_VERSION_BNB

RUN git clone https://github.com/TimDettmers/bitsandbytes.git && \
Expand All @@ -71,8 +71,6 @@ RUN git clone https://github.com/TimDettmers/bitsandbytes.git && \

FROM base-builder

ENV CUDA_VERSION_BNB=$CUDA_VERSION_BNB

# recompile apex
RUN python3 -m pip uninstall -y apex
RUN git clone https://github.com/NVIDIA/apex
Expand Down

0 comments on commit e43bcc6

Please sign in to comment.