Skip to content

Commit 0aa14c6

Browse files
authored
Merge branch 'main' into patch-1
2 parents 4f2ccd4 + 7db8c3e commit 0aa14c6

File tree

208 files changed

+14400
-1604
lines changed

Some content is hidden

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

208 files changed

+14400
-1604
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -57,50 +57,54 @@ body:
5757
description: |
5858
Your issue will be replied to more quickly if you can figure out the right person to tag with @.
5959
If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
60-
60+
6161
All issues are read by one of the core maintainers, so if you don't know who to tag, just leave this blank and
6262
a core maintainer will ping the right person.
63-
63+
6464
Please tag a maximum of 2 people.
6565
66-
Questions on DiffusionPipeline (Saving, Loading, From pretrained, ...):
66+
Questions on DiffusionPipeline (Saving, Loading, From pretrained, ...): @sayakpaul @DN6
6767
6868
Questions on pipelines:
69-
- Stable Diffusion @yiyixuxu @DN6 @sayakpaul
70-
- Stable Diffusion XL @yiyixuxu @sayakpaul @DN6
71-
- Kandinsky @yiyixuxu
72-
- ControlNet @sayakpaul @yiyixuxu @DN6
73-
- T2I Adapter @sayakpaul @yiyixuxu @DN6
74-
- IF @DN6
75-
- Text-to-Video / Video-to-Video @DN6 @sayakpaul
76-
- Wuerstchen @DN6
69+
- Stable Diffusion @yiyixuxu @asomoza
70+
- Stable Diffusion XL @yiyixuxu @sayakpaul @DN6
71+
- Stable Diffusion 3: @yiyixuxu @sayakpaul @DN6 @asomoza
72+
- Kandinsky @yiyixuxu
73+
- ControlNet @sayakpaul @yiyixuxu @DN6
74+
- T2I Adapter @sayakpaul @yiyixuxu @DN6
75+
- IF @DN6
76+
- Text-to-Video / Video-to-Video @DN6 @sayakpaul
77+
- Wuerstchen @DN6
7778
- Other: @yiyixuxu @DN6
79+
- Improving generation quality: @asomoza
7880
7981
Questions on models:
80-
- UNet @DN6 @yiyixuxu @sayakpaul
81-
- VAE @sayakpaul @DN6 @yiyixuxu
82-
- Transformers/Attention @DN6 @yiyixuxu @sayakpaul @DN6
82+
- UNet @DN6 @yiyixuxu @sayakpaul
83+
- VAE @sayakpaul @DN6 @yiyixuxu
84+
- Transformers/Attention @DN6 @yiyixuxu @sayakpaul
85+
86+
Questions on single file checkpoints: @DN6
8387
84-
Questions on Schedulers: @yiyixuxu
88+
Questions on Schedulers: @yiyixuxu
8589
86-
Questions on LoRA: @sayakpaul
90+
Questions on LoRA: @sayakpaul
8791
88-
Questions on Textual Inversion: @sayakpaul
92+
Questions on Textual Inversion: @sayakpaul
8993
90-
Questions on Training:
91-
- DreamBooth @sayakpaul
92-
- Text-to-Image Fine-tuning @sayakpaul
93-
- Textual Inversion @sayakpaul
94-
- ControlNet @sayakpaul
94+
Questions on Training:
95+
- DreamBooth @sayakpaul
96+
- Text-to-Image Fine-tuning @sayakpaul
97+
- Textual Inversion @sayakpaul
98+
- ControlNet @sayakpaul
9599
96-
Questions on Tests: @DN6 @sayakpaul @yiyixuxu
100+
Questions on Tests: @DN6 @sayakpaul @yiyixuxu
97101
98102
Questions on Documentation: @stevhliu
99103
100104
Questions on JAX- and MPS-related things: @pcuenca
101105
102-
Questions on audio pipelines: @DN6
103-
106+
Questions on audio pipelines: @sanchit-gandhi
107+
108+
104109
105-
106110
placeholder: "@Username ..."

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ members/contributors who may be interested in your PR.
3838
3939
Core library:
4040
41-
- Schedulers: @yiyixuxu
42-
- Pipelines: @sayakpaul @yiyixuxu @DN6
43-
- Training examples: @sayakpaul
41+
- Schedulers: @yiyixuxu
42+
- Pipelines and pipeline callbacks: @yiyixuxu and @asomoza
43+
- Training examples: @sayakpaul
4444
- Docs: @stevhliu and @sayakpaul
4545
- JAX and MPS: @pcuenca
4646
- Audio: @sanchit-gandhi
4747
- General functionalities: @sayakpaul @yiyixuxu @DN6
4848
4949
Integrations:
5050
51-
- deepspeed: HF Trainer/Accelerate: @pacman100
51+
- deepspeed: HF Trainer/Accelerate: @SunMarc
5252
5353
HF projects:
5454

.github/workflows/benchmark.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ env:
1313

1414
jobs:
1515
torch_pipelines_cuda_benchmark_tests:
16+
env:
17+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_BENCHMARK }}
1618
name: Torch Core Pipelines CUDA Benchmarking Tests
1719
strategy:
1820
fail-fast: false
1921
max-parallel: 1
2022
runs-on: [single-gpu, nvidia-gpu, a10, ci]
2123
container:
22-
image: diffusers/diffusers-pytorch-cuda
23-
options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --gpus 0
24+
image: diffusers/diffusers-pytorch-compile-cuda
25+
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0
2426
steps:
2527
- name: Checkout diffusers
2628
uses: actions/checkout@v3
@@ -50,4 +52,14 @@ jobs:
5052
uses: actions/upload-artifact@v2
5153
with:
5254
name: benchmark_test_reports
53-
path: benchmarks/benchmark_outputs
55+
path: benchmarks/benchmark_outputs
56+
57+
- name: Report success status
58+
if: ${{ success() }}
59+
run: |
60+
pip install requests && python utils/notify_benchmarking_status.py --status=success
61+
62+
- name: Report failure status
63+
if: ${{ failure() }}
64+
run: |
65+
pip install requests && python utils/notify_benchmarking_status.py --status=failure

.github/workflows/mirror_community_pipeline.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222

2323
jobs:
2424
mirror_community_pipeline:
25+
env:
26+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_COMMUNITY_MIRROR }}
27+
2528
runs-on: ubuntu-latest
2629
steps:
2730
# Checkout to correct ref
@@ -36,7 +39,7 @@ jobs:
3639
# If ref is 'refs/heads/main' => set 'main'
3740
# Else it must be a tag => set {tag}
3841
- name: Set checkout_ref and path_in_repo
39-
run: |
42+
run: |
4043
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
4144
if [ -z "${{ github.event.inputs.ref }}" ]; then
4245
echo "Error: Missing ref input"
@@ -86,4 +89,14 @@ jobs:
8689
run: huggingface-cli upload diffusers/community-pipelines-mirror ./examples/community ${PATH_IN_REPO} --repo-type dataset
8790
env:
8891
PATH_IN_REPO: ${{ env.PATH_IN_REPO }}
89-
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}
92+
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}
93+
94+
- name: Report success status
95+
if: ${{ success() }}
96+
run: |
97+
pip install requests && python utils/notify_community_pipelines_mirror.py --status=success
98+
99+
- name: Report failure status
100+
if: ${{ failure() }}
101+
run: |
102+
pip install requests && python utils/notify_community_pipelines_mirror.py --status=failure

.github/workflows/notify_slack_about_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v3
14-
14+
1515
- name: Setup Python
1616
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.8'
19-
19+
2020
- name: Notify Slack about the release
2121
env:
2222
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/pr_dependency_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ jobs:
3333
run: |
3434
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3535
pytest tests/others/test_dependencies.py
36-

.github/workflows/pr_test_peft_backend.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ jobs:
115115
-s -v \
116116
--make-reports=tests_models_lora_${{ matrix.config.report }} \
117117
tests/models/ -k "lora"
118-
119-
118+
119+
120120
- name: Failure short reports
121121
if: ${{ failure() }}
122122
run: |
123123
cat reports/tests_${{ matrix.config.report }}_failures_short.txt
124124
cat reports/tests_models_lora_${{ matrix.config.report }}_failures_short.txt
125-
125+
126126
- name: Test suite reports artifacts
127127
if: ${{ always() }}
128128
uses: actions/upload-artifact@v2

.github/workflows/push_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ jobs:
330330
- name: Run example tests on GPU
331331
env:
332332
HF_TOKEN: ${{ secrets.HF_TOKEN }}
333+
RUN_COMPILE: yes
333334
run: |
334335
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
335336
- name: Failure short reports

.github/workflows/pypi_publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
LATEST_BRANCH=$(python utils/fetch_latest_release_branch.py)
3030
echo "Latest branch: $LATEST_BRANCH"
3131
echo "latest_branch=$LATEST_BRANCH" >> $GITHUB_ENV
32-
32+
3333
- name: Set latest branch output
3434
id: set_latest_branch
3535
run: echo "::set-output name=latest_branch::${{ env.latest_branch }}"
@@ -43,27 +43,27 @@ jobs:
4343
uses: actions/checkout@v3
4444
with:
4545
ref: ${{ needs.find-and-checkout-latest-branch.outputs.latest_branch }}
46-
46+
4747
- name: Setup Python
4848
uses: actions/setup-python@v4
4949
with:
5050
python-version: "3.8"
51-
51+
5252
- name: Install dependencies
5353
run: |
5454
python -m pip install --upgrade pip
5555
pip install -U setuptools wheel twine
5656
pip install -U torch --index-url https://download.pytorch.org/whl/cpu
5757
pip install -U transformers
58-
58+
5959
- name: Build the dist files
6060
run: python setup.py bdist_wheel && python setup.py sdist
61-
61+
6262
- name: Publish to the test PyPI
6363
env:
6464
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
6565
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
66-
run: twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
66+
run: twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
6767

6868
- name: Test installing diffusers and importing
6969
run: |

.github/workflows/run_tests_from_a_pr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
default: 'diffusers/diffusers-pytorch-cuda'
88
description: 'Name of the Docker image'
99
required: true
10-
branch:
10+
branch:
1111
description: 'PR Branch to test on'
1212
required: true
1313
test:
@@ -34,19 +34,19 @@ jobs:
3434
steps:
3535
- name: Validate test files input
3636
id: validate_test_files
37-
env:
37+
env:
3838
PY_TEST: ${{ github.event.inputs.test }}
3939
run: |
4040
if [[ ! "$PY_TEST" =~ ^tests/ ]]; then
4141
echo "Error: The input string must start with 'tests/'."
4242
exit 1
4343
fi
44-
44+
4545
if [[ ! "$PY_TEST" =~ ^tests/(models|pipelines) ]]; then
4646
echo "Error: The input string must contain either 'models' or 'pipelines' after 'tests/'."
4747
exit 1
4848
fi
49-
49+
5050
if [[ "$PY_TEST" == *";"* ]]; then
5151
echo "Error: The input string must not contain ';'."
5252
exit 1
@@ -60,14 +60,14 @@ jobs:
6060
repository: ${{ github.event.pull_request.head.repo.full_name }}
6161

6262

63-
- name: Install pytest
64-
run: |
63+
- name: Install pytest
64+
run: |
6565
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
6666
python -m uv pip install -e [quality,test]
6767
python -m uv pip install peft
68-
68+
6969
- name: Run tests
70-
env:
70+
env:
7171
PY_TEST: ${{ github.event.inputs.test }}
7272
run: |
7373
pytest "$PY_TEST"

0 commit comments

Comments
 (0)