Skip to content

Commit 41c9db3

Browse files
authored
Merge branch 'main' into m2m
2 parents fd7d937 + dad5cb5 commit 41c9db3

308 files changed

Lines changed: 25035 additions & 5282 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
options: --shm-size "16gb" --ipc host --gpus all
2929
steps:
3030
- name: Checkout diffusers
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 2
3434
- name: NVIDIA-SMI
@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Test suite reports artifacts
6060
if: ${{ always() }}
61-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@v6
6262
with:
6363
name: benchmark_test_reports
6464
path: benchmarks/${{ env.BASE_PATH }}

.github/workflows/build_docker_images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: docker/setup-buildx-action@v1
2929

3030
- name: Check out code
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v6
3232

3333
- name: Find Changed Dockerfiles
3434
id: file_changes
@@ -99,7 +99,7 @@ jobs:
9999

100100
steps:
101101
- name: Checkout repository
102-
uses: actions/checkout@v3
102+
uses: actions/checkout@v6
103103
- name: Set up Docker Buildx
104104
uses: docker/setup-buildx-action@v1
105105
- name: Login to Docker Hub

.github/workflows/build_pr_documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: '3.10'
2626

.github/workflows/codeql.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: CodeQL Security Analysis For Github Actions
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
workflow_dispatch:
8+
# pull_request:
9+
10+
jobs:
11+
codeql:
12+
name: CodeQL Analysis
13+
uses: huggingface/security-workflows/.github/workflows/codeql-reusable.yml@v1
14+
permissions:
15+
security-events: write
16+
packages: read
17+
actions: read
18+
contents: read
19+
with:
20+
languages: '["actions","python"]'
21+
queries: 'security-extended,security-and-quality'
22+
runner: 'ubuntu-latest' #optional if need custom runner

.github/workflows/mirror_community_pipeline.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
mirror_community_pipeline:
2525
env:
2626
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_COMMUNITY_MIRROR }}
27-
2827
runs-on: ubuntu-22.04
2928
steps:
3029
# Checkout to correct ref
@@ -39,37 +38,41 @@ jobs:
3938
# If ref is 'refs/heads/main' => set 'main'
4039
# Else it must be a tag => set {tag}
4140
- name: Set checkout_ref and path_in_repo
41+
env:
42+
EVENT_NAME: ${{ github.event_name }}
43+
EVENT_INPUT_REF: ${{ github.event.inputs.ref }}
44+
GITHUB_REF: ${{ github.ref }}
4245
run: |
43-
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
44-
if [ -z "${{ github.event.inputs.ref }}" ]; then
46+
if [ "$EVENT_NAME" == "workflow_dispatch" ]; then
47+
if [ -z "$EVENT_INPUT_REF" ]; then
4548
echo "Error: Missing ref input"
4649
exit 1
47-
elif [ "${{ github.event.inputs.ref }}" == "main" ]; then
50+
elif [ "$EVENT_INPUT_REF" == "main" ]; then
4851
echo "CHECKOUT_REF=refs/heads/main" >> $GITHUB_ENV
4952
echo "PATH_IN_REPO=main" >> $GITHUB_ENV
5053
else
51-
echo "CHECKOUT_REF=refs/tags/${{ github.event.inputs.ref }}" >> $GITHUB_ENV
52-
echo "PATH_IN_REPO=${{ github.event.inputs.ref }}" >> $GITHUB_ENV
54+
echo "CHECKOUT_REF=refs/tags/$EVENT_INPUT_REF" >> $GITHUB_ENV
55+
echo "PATH_IN_REPO=$EVENT_INPUT_REF" >> $GITHUB_ENV
5356
fi
54-
elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
55-
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
57+
elif [ "$GITHUB_REF" == "refs/heads/main" ]; then
58+
echo "CHECKOUT_REF=$GITHUB_REF" >> $GITHUB_ENV
5659
echo "PATH_IN_REPO=main" >> $GITHUB_ENV
5760
else
5861
# e.g. refs/tags/v0.28.1 -> v0.28.1
59-
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
60-
echo "PATH_IN_REPO=$(echo ${{ github.ref }} | sed 's/^refs\/tags\///')" >> $GITHUB_ENV
62+
echo "CHECKOUT_REF=$GITHUB_REF" >> $GITHUB_ENV
63+
echo "PATH_IN_REPO=$(echo $GITHUB_REF | sed 's/^refs\/tags\///')" >> $GITHUB_ENV
6164
fi
6265
- name: Print env vars
6366
run: |
6467
echo "CHECKOUT_REF: ${{ env.CHECKOUT_REF }}"
6568
echo "PATH_IN_REPO: ${{ env.PATH_IN_REPO }}"
66-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v6
6770
with:
6871
ref: ${{ env.CHECKOUT_REF }}
6972

7073
# Setup + install dependencies
7174
- name: Set up Python
72-
uses: actions/setup-python@v4
75+
uses: actions/setup-python@v6
7376
with:
7477
python-version: "3.10"
7578
- name: Install dependencies
@@ -99,4 +102,4 @@ jobs:
99102
- name: Report failure status
100103
if: ${{ failure() }}
101104
run: |
102-
pip install requests && python utils/notify_community_pipelines_mirror.py --status=failure
105+
pip install requests && python utils/notify_community_pipelines_mirror.py --status=failure

.github/workflows/nightly_tests.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
2929
steps:
3030
- name: Checkout diffusers
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 2
3434
- name: Install dependencies
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Pipeline Tests Artifacts
4646
if: ${{ always() }}
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@v6
4848
with:
4949
name: test-pipelines.json
5050
path: reports
@@ -64,7 +64,7 @@ jobs:
6464
options: --shm-size "16gb" --ipc host --gpus all
6565
steps:
6666
- name: Checkout diffusers
67-
uses: actions/checkout@v3
67+
uses: actions/checkout@v6
6868
with:
6969
fetch-depth: 2
7070
- name: NVIDIA-SMI
@@ -97,7 +97,7 @@ jobs:
9797
cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
9898
- name: Test suite reports artifacts
9999
if: ${{ always() }}
100-
uses: actions/upload-artifact@v4
100+
uses: actions/upload-artifact@v6
101101
with:
102102
name: pipeline_${{ matrix.module }}_test_reports
103103
path: reports
@@ -119,7 +119,7 @@ jobs:
119119
module: [models, schedulers, lora, others, single_file, examples]
120120
steps:
121121
- name: Checkout diffusers
122-
uses: actions/checkout@v3
122+
uses: actions/checkout@v6
123123
with:
124124
fetch-depth: 2
125125

@@ -167,7 +167,7 @@ jobs:
167167
168168
- name: Test suite reports artifacts
169169
if: ${{ always() }}
170-
uses: actions/upload-artifact@v4
170+
uses: actions/upload-artifact@v6
171171
with:
172172
name: torch_${{ matrix.module }}_cuda_test_reports
173173
path: reports
@@ -184,7 +184,7 @@ jobs:
184184

185185
steps:
186186
- name: Checkout diffusers
187-
uses: actions/checkout@v3
187+
uses: actions/checkout@v6
188188
with:
189189
fetch-depth: 2
190190

@@ -211,7 +211,7 @@ jobs:
211211

212212
- name: Test suite reports artifacts
213213
if: ${{ always() }}
214-
uses: actions/upload-artifact@v4
214+
uses: actions/upload-artifact@v6
215215
with:
216216
name: torch_compile_test_reports
217217
path: reports
@@ -228,7 +228,7 @@ jobs:
228228
options: --shm-size "16gb" --ipc host --gpus all
229229
steps:
230230
- name: Checkout diffusers
231-
uses: actions/checkout@v3
231+
uses: actions/checkout@v6
232232
with:
233233
fetch-depth: 2
234234
- name: NVIDIA-SMI
@@ -263,7 +263,7 @@ jobs:
263263
cat reports/tests_big_gpu_torch_cuda_failures_short.txt
264264
- name: Test suite reports artifacts
265265
if: ${{ always() }}
266-
uses: actions/upload-artifact@v4
266+
uses: actions/upload-artifact@v6
267267
with:
268268
name: torch_cuda_big_gpu_test_reports
269269
path: reports
@@ -280,7 +280,7 @@ jobs:
280280
shell: bash
281281
steps:
282282
- name: Checkout diffusers
283-
uses: actions/checkout@v3
283+
uses: actions/checkout@v6
284284
with:
285285
fetch-depth: 2
286286

@@ -321,7 +321,7 @@ jobs:
321321
322322
- name: Test suite reports artifacts
323323
if: ${{ always() }}
324-
uses: actions/upload-artifact@v4
324+
uses: actions/upload-artifact@v6
325325
with:
326326
name: torch_minimum_version_cuda_test_reports
327327
path: reports
@@ -355,7 +355,7 @@ jobs:
355355
options: --shm-size "20gb" --ipc host --gpus all
356356
steps:
357357
- name: Checkout diffusers
358-
uses: actions/checkout@v3
358+
uses: actions/checkout@v6
359359
with:
360360
fetch-depth: 2
361361
- name: NVIDIA-SMI
@@ -391,7 +391,7 @@ jobs:
391391
cat reports/tests_${{ matrix.config.backend }}_torch_cuda_failures_short.txt
392392
- name: Test suite reports artifacts
393393
if: ${{ always() }}
394-
uses: actions/upload-artifact@v4
394+
uses: actions/upload-artifact@v6
395395
with:
396396
name: torch_cuda_${{ matrix.config.backend }}_reports
397397
path: reports
@@ -408,7 +408,7 @@ jobs:
408408
options: --shm-size "20gb" --ipc host --gpus all
409409
steps:
410410
- name: Checkout diffusers
411-
uses: actions/checkout@v3
411+
uses: actions/checkout@v6
412412
with:
413413
fetch-depth: 2
414414
- name: NVIDIA-SMI
@@ -441,7 +441,7 @@ jobs:
441441
cat reports/tests_pipeline_level_quant_torch_cuda_failures_short.txt
442442
- name: Test suite reports artifacts
443443
if: ${{ always() }}
444-
uses: actions/upload-artifact@v4
444+
uses: actions/upload-artifact@v6
445445
with:
446446
name: torch_cuda_pipeline_level_quant_reports
447447
path: reports
@@ -466,15 +466,15 @@ jobs:
466466
image: diffusers/diffusers-pytorch-cpu
467467
steps:
468468
- name: Checkout diffusers
469-
uses: actions/checkout@v3
469+
uses: actions/checkout@v6
470470
with:
471471
fetch-depth: 2
472472

473473
- name: Create reports directory
474474
run: mkdir -p combined_reports
475475

476476
- name: Download all test reports
477-
uses: actions/download-artifact@v4
477+
uses: actions/download-artifact@v7
478478
with:
479479
path: artifacts
480480

@@ -500,7 +500,7 @@ jobs:
500500
cat $CONSOLIDATED_REPORT_PATH >> $GITHUB_STEP_SUMMARY
501501
502502
- name: Upload consolidated report
503-
uses: actions/upload-artifact@v4
503+
uses: actions/upload-artifact@v6
504504
with:
505505
name: consolidated_test_report
506506
path: ${{ env.CONSOLIDATED_REPORT_PATH }}
@@ -514,7 +514,7 @@ jobs:
514514
#
515515
# steps:
516516
# - name: Checkout diffusers
517-
# uses: actions/checkout@v3
517+
# uses: actions/checkout@v6
518518
# with:
519519
# fetch-depth: 2
520520
#
@@ -554,7 +554,7 @@ jobs:
554554
#
555555
# - name: Test suite reports artifacts
556556
# if: ${{ always() }}
557-
# uses: actions/upload-artifact@v4
557+
# uses: actions/upload-artifact@v6
558558
# with:
559559
# name: torch_mps_test_reports
560560
# path: reports
@@ -570,7 +570,7 @@ jobs:
570570
#
571571
# steps:
572572
# - name: Checkout diffusers
573-
# uses: actions/checkout@v3
573+
# uses: actions/checkout@v6
574574
# with:
575575
# fetch-depth: 2
576576
#
@@ -610,7 +610,7 @@ jobs:
610610
#
611611
# - name: Test suite reports artifacts
612612
# if: ${{ always() }}
613-
# uses: actions/upload-artifact@v4
613+
# uses: actions/upload-artifact@v6
614614
# with:
615615
# name: torch_mps_test_reports
616616
# path: reports

.github/workflows/notify_slack_about_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-22.04
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v6
1414

1515
- name: Setup Python
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: '3.8'
1919

.github/workflows/pr_dependency_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
check_dependencies:
1919
runs-on: ubuntu-22.04
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v6
2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: "3.8"
2626
- name: Install dependencies

0 commit comments

Comments
 (0)