File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ RUN chsh -s /bin/bash
3131SHELL ["/bin/bash" , "-c" ]
3232
3333# Stage 2
34- FROM nvidia/cuda:12.2.2 -devel-ubuntu22.04 AS build-image
34+ FROM nvidia/cuda:12.1.0 -devel-ubuntu22.04 AS build-image
3535COPY --from=compile-image /opt/conda /opt/conda
3636ENV PATH /opt/conda/bin:$PATH
3737
@@ -40,7 +40,7 @@ SHELL ["/bin/bash", "-c"]
4040
4141# Install apt libs
4242RUN apt-get update && \
43- apt-get install -y curl git wget && \
43+ apt-get install -y curl git wget cmake && \
4444 apt-get clean && \
4545 rm -rf /var/lib/apt/lists*
4646
@@ -57,8 +57,9 @@ RUN source activate peft && \
5757 optimum \
5858 auto-gptq && \
5959 git clone https://github.com/TimDettmers/bitsandbytes && cd bitsandbytes && \
60- CUDA_VERSION=121 make cuda12x && \
61- python setup.py develop && \
60+ cmake -B . -DCOMPUTE_BACKEND=cuda -S . && \
61+ cmake --build . && \
62+ pip install -e . && \
6263 pip freeze | grep bitsandbytes
6364
6465RUN echo "source activate peft" >> ~/.profile
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ RUN chsh -s /bin/bash
3131SHELL ["/bin/bash" , "-c" ]
3232
3333# Stage 2
34- FROM nvidia/cuda:12.2.2 -devel-ubuntu22.04 AS build-image
34+ FROM nvidia/cuda:12.1.0 -devel-ubuntu22.04 AS build-image
3535COPY --from=compile-image /opt/conda /opt/conda
3636ENV PATH /opt/conda/bin:$PATH
3737
@@ -40,7 +40,7 @@ SHELL ["/bin/bash", "-c"]
4040
4141# Install apt libs
4242RUN apt-get update && \
43- apt-get install -y curl git wget && \
43+ apt-get install -y curl git wget cmake && \
4444 apt-get clean && \
4545 rm -rf /var/lib/apt/lists*
4646
@@ -57,8 +57,9 @@ RUN source activate peft && \
5757 optimum \
5858 auto-gptq && \
5959 git clone https://github.com/TimDettmers/bitsandbytes && cd bitsandbytes && \
60- CUDA_VERSION=121 make cuda12x && \
61- python setup.py develop && \
60+ cmake -B . -DCOMPUTE_BACKEND=cuda -S . && \
61+ cmake --build . && \
62+ pip install -e . && \
6263 pip freeze | grep bitsandbytes
6364
6465RUN echo "source activate peft" >> ~/.profile
You can’t perform that action at this time.
0 commit comments