Skip to content

Commit 72fc14e

Browse files
authored
Merge branch 'main' into chroma-radiance
2 parents 1d3e2ea + bd7a7a0 commit 72fc14e

1,073 files changed

Lines changed: 59122 additions & 25920 deletions

File tree

Some content is hidden

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

.github/workflows/benchmark.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,6 @@ jobs:
6262
with:
6363
name: benchmark_test_reports
6464
path: benchmarks/${{ env.BASE_PATH }}
65-
66-
# TODO: enable this once the connection problem has been resolved.
67-
- name: Update benchmarking results to DB
68-
env:
69-
PGDATABASE: metrics
70-
PGHOST: ${{ secrets.DIFFUSERS_BENCHMARKS_PGHOST }}
71-
PGUSER: transformers_benchmarks
72-
PGPASSWORD: ${{ secrets.DIFFUSERS_BENCHMARKS_PGPASSWORD }}
73-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
74-
run: |
75-
git config --global --add safe.directory /__w/diffusers/diffusers
76-
commit_id=$GITHUB_SHA
77-
commit_msg=$(git show -s --format=%s "$commit_id" | cut -c1-70)
78-
cd benchmarks && python populate_into_db.py "$BRANCH_NAME" "$commit_id" "$commit_msg"
7965

8066
- name: Report success status
8167
if: ${{ success() }}

.github/workflows/build_docker_images.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.event_name == 'pull_request'
2626
steps:
2727
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v1
28+
uses: docker/setup-buildx-action@v3
2929

3030
- name: Check out code
3131
uses: actions/checkout@v6
@@ -101,14 +101,14 @@ jobs:
101101
- name: Checkout repository
102102
uses: actions/checkout@v6
103103
- name: Set up Docker Buildx
104-
uses: docker/setup-buildx-action@v1
104+
uses: docker/setup-buildx-action@v3
105105
- name: Login to Docker Hub
106-
uses: docker/login-action@v2
106+
uses: docker/login-action@v3
107107
with:
108108
username: ${{ env.REGISTRY }}
109109
password: ${{ secrets.DOCKERHUB_TOKEN }}
110110
- name: Build and push
111-
uses: docker/build-push-action@v3
111+
uses: docker/build-push-action@v6
112112
with:
113113
no-cache: true
114114
context: ./docker/${{ matrix.image-name }}

.github/workflows/notify_slack_about_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Python
1616
uses: actions/setup-python@v6
1717
with:
18-
python-version: '3.8'
18+
python-version: '3.10'
1919

2020
- name: Notify Slack about the release
2121
env:

.github/workflows/pr_dependency_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v6
2424
with:
25-
python-version: "3.8"
25+
python-version: "3.10"
2626
- name: Install dependencies
2727
run: |
2828
pip install -e .

.github/workflows/pr_modular_tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,27 @@ jobs:
7575
if: ${{ failure() }}
7676
run: |
7777
echo "Repo consistency check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make fix-copies'" >> $GITHUB_STEP_SUMMARY
78+
check_auto_docs:
79+
runs-on: ubuntu-22.04
80+
steps:
81+
- uses: actions/checkout@v6
82+
- name: Set up Python
83+
uses: actions/setup-python@v6
84+
with:
85+
python-version: "3.10"
86+
- name: Install dependencies
87+
run: |
88+
pip install --upgrade pip
89+
pip install .[quality]
90+
- name: Check auto docs
91+
run: make modular-autodoctrings
92+
- name: Check if failure
93+
if: ${{ failure() }}
94+
run: |
95+
echo "Auto docstring checks failed. Please run `python utils/modular_auto_docstring.py --fix_and_overwrite`." >> $GITHUB_STEP_SUMMARY
7896
7997
run_fast_tests:
80-
needs: [check_code_quality, check_repository_consistency]
98+
needs: [check_code_quality, check_repository_consistency, check_auto_docs]
8199
name: Fast PyTorch Modular Pipeline CPU tests
82100

83101
runs-on:

.github/workflows/pr_tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Python
3636
uses: actions/setup-python@v6
3737
with:
38-
python-version: "3.8"
38+
python-version: "3.10"
3939
- name: Install dependencies
4040
run: |
4141
pip install --upgrade pip
@@ -55,7 +55,7 @@ jobs:
5555
- name: Set up Python
5656
uses: actions/setup-python@v6
5757
with:
58-
python-version: "3.8"
58+
python-version: "3.10"
5959
- name: Install dependencies
6060
run: |
6161
pip install --upgrade pip
@@ -92,7 +92,6 @@ jobs:
9292
runner: aws-general-8-plus
9393
image: diffusers/diffusers-pytorch-cpu
9494
report: torch_example_cpu
95-
9695
name: ${{ matrix.config.name }}
9796

9897
runs-on:
@@ -115,8 +114,7 @@ jobs:
115114
- name: Install dependencies
116115
run: |
117116
uv pip install -e ".[quality]"
118-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
119-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
117+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
120118
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
121119
122120
- name: Environment
@@ -218,8 +216,6 @@ jobs:
218216

219217
run_lora_tests:
220218
needs: [check_code_quality, check_repository_consistency]
221-
strategy:
222-
fail-fast: false
223219

224220
name: LoRA tests with PEFT main
225221

@@ -247,9 +243,8 @@ jobs:
247243
uv pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
248244
uv pip install -U tokenizers
249245
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
250-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
251-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
252-
246+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
247+
253248
- name: Environment
254249
run: |
255250
python utils/print_env.py
@@ -275,6 +270,6 @@ jobs:
275270
if: ${{ always() }}
276271
uses: actions/upload-artifact@v6
277272
with:
278-
name: pr_main_test_reports
273+
name: pr_lora_test_reports
279274
path: reports
280275

.github/workflows/pr_tests_gpu.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Python
3737
uses: actions/setup-python@v6
3838
with:
39-
python-version: "3.8"
39+
python-version: "3.10"
4040
- name: Install dependencies
4141
run: |
4242
pip install --upgrade pip
@@ -56,7 +56,7 @@ jobs:
5656
- name: Set up Python
5757
uses: actions/setup-python@v6
5858
with:
59-
python-version: "3.8"
59+
python-version: "3.10"
6060
- name: Install dependencies
6161
run: |
6262
pip install --upgrade pip
@@ -131,8 +131,7 @@ jobs:
131131
run: |
132132
uv pip install -e ".[quality]"
133133
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
134-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
135-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
134+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
136135
137136
- name: Environment
138137
run: |
@@ -202,8 +201,7 @@ jobs:
202201
uv pip install -e ".[quality]"
203202
uv pip install peft@git+https://github.com/huggingface/peft.git
204203
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
205-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
206-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
204+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
207205
208206
- name: Environment
209207
run: |
@@ -264,8 +262,7 @@ jobs:
264262
nvidia-smi
265263
- name: Install dependencies
266264
run: |
267-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
268-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
265+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
269266
uv pip install -e ".[quality,training]"
270267
271268
- name: Environment

.github/workflows/pr_torch_dependency_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v6
2424
with:
25-
python-version: "3.8"
25+
python-version: "3.10"
2626
- name: Install dependencies
2727
run: |
2828
pip install -e .

.github/workflows/push_tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ jobs:
7676
run: |
7777
uv pip install -e ".[quality]"
7878
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
79-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
80-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
79+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
8180
- name: Environment
8281
run: |
8382
python utils/print_env.py
@@ -129,8 +128,7 @@ jobs:
129128
uv pip install -e ".[quality]"
130129
uv pip install peft@git+https://github.com/huggingface/peft.git
131130
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
132-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
133-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
131+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
134132
135133
- name: Environment
136134
run: |
@@ -182,8 +180,7 @@ jobs:
182180
- name: Install dependencies
183181
run: |
184182
uv pip install -e ".[quality,training]"
185-
#uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
186-
uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1
183+
uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
187184
- name: Environment
188185
run: |
189186
python utils/print_env.py

.github/workflows/push_tests_mps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
shell: arch -arch arm64 bash {0}
4242
run: |
4343
${CONDA_RUN} python -m pip install --upgrade pip uv
44-
${CONDA_RUN} python -m uv pip install -e ".[quality,test]"
44+
${CONDA_RUN} python -m uv pip install -e ".[quality]"
4545
${CONDA_RUN} python -m uv pip install torch torchvision torchaudio
4646
${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
4747
${CONDA_RUN} python -m uv pip install transformers --upgrade

0 commit comments

Comments
 (0)