Skip to content

Commit 5272791

Browse files
authored
Merge branch 'main' into advdiff_sdxl
2 parents e988c7e + 7635d3d commit 5272791

File tree

88 files changed

+16003
-2603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+16003
-2603
lines changed

.github/workflows/benchmark.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
nvidia-smi
3232
- name: Install dependencies
3333
run: |
34-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
3534
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3635
python -m uv pip install -e [quality,test]
3736
python -m uv pip install pandas peft

.github/workflows/build_docker_images.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020

2121
jobs:
2222
test-build-docker-images:
23-
runs-on: ubuntu-latest
23+
runs-on: [ self-hosted, intel-cpu, 8-cpu, ci ]
2424
if: github.event_name == 'pull_request'
2525
steps:
2626
- name: Set up Docker Buildx
@@ -50,7 +50,7 @@ jobs:
5050
if: steps.file_changes.outputs.all != ''
5151

5252
build-and-push-docker-images:
53-
runs-on: ubuntu-latest
53+
runs-on: [ self-hosted, intel-cpu, 8-cpu, ci ]
5454
if: github.event_name != 'pull_request'
5555

5656
permissions:
@@ -73,13 +73,13 @@ jobs:
7373
steps:
7474
- name: Checkout repository
7575
uses: actions/checkout@v3
76-
76+
- name: Set up Docker Buildx
77+
uses: docker/setup-buildx-action@v1
7778
- name: Login to Docker Hub
7879
uses: docker/login-action@v2
7980
with:
8081
username: ${{ env.REGISTRY }}
8182
password: ${{ secrets.DOCKERHUB_TOKEN }}
82-
8383
- name: Build and push
8484
uses: docker/build-push-action@v3
8585
with:

.github/workflows/nightly_tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070

7171
- name: Install dependencies
7272
run: |
73-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
7473
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7574
python -m uv pip install -e [quality,test]
7675
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -131,7 +130,6 @@ jobs:
131130

132131
- name: Install dependencies
133132
run: |
134-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
135133
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
136134
python -m uv pip install -e [quality,test]
137135
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -202,7 +200,6 @@ jobs:
202200

203201
- name: Install dependencies
204202
run: |
205-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
206203
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
207204
python -m uv pip install -e [quality,test]
208205
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -262,7 +259,6 @@ jobs:
262259

263260
- name: Install dependencies
264261
run: |
265-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
266262
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
267263
python -m uv pip install -e [quality,test]
268264
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git

.github/workflows/pr_test_fetcher.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
fetch-depth: 0
3333
- name: Install dependencies
3434
run: |
35-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
3635
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3736
python -m uv pip install -e [quality,test]
3837
- name: Environment
@@ -89,7 +88,6 @@ jobs:
8988

9089
- name: Install dependencies
9190
run: |
92-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
9391
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
9492
python -m pip install -e [quality,test]
9593
python -m pip install accelerate
@@ -147,7 +145,6 @@ jobs:
147145

148146
- name: Install dependencies
149147
run: |
150-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
151148
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
152149
python -m pip install -e [quality,test]
153150

.github/workflows/pr_test_peft_backend.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ jobs:
8989

9090
- name: Install dependencies
9191
run: |
92-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
9392
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
9493
python -m uv pip install -e [quality,test]
9594
if [ "${{ matrix.lib-versions }}" == "main" ]; then
96-
python -m uv pip install -U peft@git+https://github.com/huggingface/peft.git
95+
python -m pip install -U peft@git+https://github.com/huggingface/peft.git
9796
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
9897
python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
9998
else

.github/workflows/pr_tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ jobs:
116116

117117
- name: Install dependencies
118118
run: |
119-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
120119
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
121120
python -m uv pip install -e [quality,test]
122121
python -m uv pip install accelerate
@@ -205,7 +204,6 @@ jobs:
205204

206205
- name: Install dependencies
207206
run: |
208-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
209207
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
210208
python -m uv pip install -e [quality,test]
211209

.github/workflows/push_tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ jobs:
7171
nvidia-smi
7272
- name: Install dependencies
7373
run: |
74-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
7574
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7675
python -m uv pip install -e [quality,test]
7776
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -121,7 +120,6 @@ jobs:
121120

122121
- name: Install dependencies
123122
run: |
124-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
125123
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
126124
python -m uv pip install -e [quality,test]
127125
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -171,11 +169,10 @@ jobs:
171169

172170
- name: Install dependencies
173171
run: |
174-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
175172
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
176173
python -m uv pip install -e [quality,test]
177174
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
178-
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
175+
python -m pip install -U peft@git+https://github.com/huggingface/peft.git
179176
180177
- name: Environment
181178
run: |
@@ -222,7 +219,6 @@ jobs:
222219

223220
- name: Install dependencies
224221
run: |
225-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
226222
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
227223
python -m uv pip install -e [quality,test]
228224
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -270,7 +266,6 @@ jobs:
270266

271267
- name: Install dependencies
272268
run: |
273-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
274269
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
275270
python -m uv pip install -e [quality,test]
276271
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git

.github/workflows/push_tests_fast.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868

6969
- name: Install dependencies
7070
run: |
71-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
7271
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7372
python -m uv pip install -e [quality,test]
7473
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update Diffusers metadata
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- update_diffusers_metadata*
9+
10+
jobs:
11+
update_metadata:
12+
runs-on: ubuntu-22.04
13+
defaults:
14+
run:
15+
shell: bash -l {0}
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup environment
21+
run: |
22+
pip install --upgrade pip
23+
pip install datasets pandas
24+
pip install .[torch]
25+
26+
- name: Update metadata
27+
env:
28+
HUGGING_FACE_HUB_TOKEN: ${{ secrets.SAYAK_HF_TOKEN }}
29+
run: |
30+
python utils/update_metadata.py --commit_sha ${{ github.sha }}

docker/diffusers-flax-cpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt update && \
1212
curl \
1313
ca-certificates \
1414
libsndfile1-dev \
15+
libgl1 \
1516
python3.8 \
1617
python3-pip \
1718
python3.8-venv && \

0 commit comments

Comments
 (0)