Skip to content

Commit 9fdb21e

Browse files
Update Docker image builds for torch 2.7+cu126 (#2514)
* Update Docker image builds for torch 2.7+cu126 * Remove bnb multi-source dockerfile
1 parent 2d90569 commit 9fdb21e

File tree

6 files changed

+6
-111
lines changed

6 files changed

+6
-111
lines changed

.github/workflows/build_docker_images.yml

-34
Original file line numberDiff line numberDiff line change
@@ -148,37 +148,3 @@ jobs:
148148
status: ${{ job.status }}
149149
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
150150

151-
latest-cuda-bnb-source-multi:
152-
name: "Latest Peft GPU + bnb (multi-backend) source [accelerate / peft / transformers source]"
153-
runs-on:
154-
group: aws-general-8-plus
155-
steps:
156-
- name: Set up Docker Buildx
157-
uses: docker/setup-buildx-action@v1
158-
- name: Check out code
159-
uses: actions/checkout@v3
160-
with:
161-
persist-credentials: false
162-
- name: Login to DockerHub
163-
uses: docker/login-action@v1
164-
with:
165-
username: ${{ secrets.DOCKERHUB_USERNAME }}
166-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
167-
168-
- name: Build and Push GPU
169-
uses: docker/build-push-action@v4
170-
with:
171-
context: ./docker/peft-gpu-bnb-multi-source
172-
push: true
173-
tags: huggingface/peft-gpu-bnb-multi-source
174-
175-
- name: Post to Slack
176-
if: always()
177-
uses: huggingface/hf-workflows/.github/actions/post-slack@main
178-
with:
179-
slack_channel: ${{ env.CI_SLACK_CHANNEL }}
180-
title: 🤗 Results of the PEFT-GPU (bnb source multi-backend / HF latest) docker build
181-
status: ${{ job.status }}
182-
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
183-
184-

.github/workflows/nightly-bnb.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
docker-image-name: ["huggingface/peft-gpu-bnb-source:latest", "huggingface/peft-gpu-bnb-latest:latest", "huggingface/peft-gpu-bnb-multi-source:latest"]
23+
docker-image-name: ["huggingface/peft-gpu-bnb-source:latest", "huggingface/peft-gpu-bnb-latest:latest"]
2424
runs-on:
2525
group: aws-g6-4xlarge-plus
2626
env:
@@ -145,7 +145,7 @@ jobs:
145145
strategy:
146146
fail-fast: false
147147
matrix:
148-
docker-image-name: ["huggingface/peft-gpu-bnb-source:latest", "huggingface/peft-gpu-bnb-latest:latest", "huggingface/peft-gpu-bnb-multi-source:latest"]
148+
docker-image-name: ["huggingface/peft-gpu-bnb-source:latest", "huggingface/peft-gpu-bnb-latest:latest"]
149149
runs-on:
150150
group: aws-g6-12xlarge-plus
151151
env:

docker/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ Here we store all PEFT Docker images used in our testing infrastructure. We use
66
- `peft-gpu`: PEFT complied for NVIDIA GPUs with all other HF libraries installed on main branch
77
- `peft-gpu-bnb-source`: PEFT complied for NVIDIA GPUs with `bitsandbytes` and all other HF libraries installed from main branch
88
- `peft-gpu-bnb-latest`: PEFT complied for NVIDIA GPUs with `bitsandbytes` complied from main and all other HF libraries installed from latest PyPi
9-
- `peft-gpu-bnb-multi-source`: PEFT complied for NVIDIA GPUs with `bitsandbytes` complied from `multi-backend` branch and all other HF libraries installed from main branch
10-
11-
`peft-gpu-bnb-source` and `peft-gpu-bnb-multi-source` are essentially the same, with the only difference being `bitsandbytes` compiled on another branch. Make sure to propagate the changes you applied on one file to the other!

docker/peft-gpu-bnb-latest/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN chsh -s /bin/bash
3131
SHELL ["/bin/bash", "-c"]
3232

3333
# Stage 2
34-
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04 AS build-image
34+
FROM nvidia/cuda:12.6.3-devel-ubuntu22.04 AS build-image
3535
COPY --from=compile-image /opt/conda /opt/conda
3636
ENV PATH /opt/conda/bin:$PATH
3737

@@ -56,7 +56,7 @@ RUN source activate peft && \
5656
peft \
5757
optimum \
5858
auto-gptq && \
59-
git clone https://github.com/TimDettmers/bitsandbytes && cd bitsandbytes && \
59+
git clone https://github.com/bitsandbytes-foundation/bitsandbytes && cd bitsandbytes && \
6060
cmake -B . -DCOMPUTE_BACKEND=cuda -S . && \
6161
cmake --build . && \
6262
pip install -e . && \

docker/peft-gpu-bnb-multi-source/Dockerfile

-68
This file was deleted.

docker/peft-gpu-bnb-source/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN chsh -s /bin/bash
3131
SHELL ["/bin/bash", "-c"]
3232

3333
# Stage 2
34-
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04 AS build-image
34+
FROM nvidia/cuda:12.6.3-devel-ubuntu22.04 AS build-image
3535
COPY --from=compile-image /opt/conda /opt/conda
3636
ENV PATH /opt/conda/bin:$PATH
3737

@@ -56,7 +56,7 @@ RUN source activate peft && \
5656
peft[test]@git+https://github.com/huggingface/peft \
5757
optimum \
5858
auto-gptq && \
59-
git clone https://github.com/TimDettmers/bitsandbytes && cd bitsandbytes && \
59+
git clone https://github.com/bitsandbytes-foundation/bitsandbytes && cd bitsandbytes && \
6060
cmake -B . -DCOMPUTE_BACKEND=cuda -S . && \
6161
cmake --build . && \
6262
pip install -e . && \

0 commit comments

Comments
 (0)