Merge branch 'main' into main · huggingface/diffusers@d46ecac · GitHub
Skip to content

Commit d46ecac

Browse files
authored
Merge branch 'main' into main
2 parents fcd4550 + f4fc750 commit d46ecac

892 files changed

Lines changed: 25629 additions & 15409 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/ISSUE_TEMPLATE/bug-report.yml‎

Lines changed: 19 additions & 19 deletions

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ members/contributors who may be interested in your PR.
3838
3939
Core library:
4040
41-
- Schedulers: @yiyixuxu and @patrickvonplaten
42-
- Pipelines: @patrickvonplaten and @sayakpaul
43-
- Training examples: @sayakpaul and @patrickvonplaten
44-
- Docs: @stevhliu and @yiyixuxu
41+
- Schedulers: @yiyixuxu
42+
- Pipelines: @sayakpaul @yiyixuxu @DN6
43+
- Training examples: @sayakpaul
44+
- Docs: @stevhliu and @sayakpaul
4545
- JAX and MPS: @pcuenca
4646
- Audio: @sanchit-gandhi
47-
- General functionalities: @patrickvonplaten and @sayakpaul
47+
- General functionalities: @sayakpaul @yiyixuxu @DN6
4848
4949
Integrations:
5050

‎.github/workflows/benchmark.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
- name: Install dependencies
3232
run: |
3333
apt-get update && apt-get install libsndfile1-dev libgl1 -y
34-
python -m pip install -e .[quality,test]
35-
python -m pip install pandas
34+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
35+
python -m uv pip install -e [quality,test]
36+
python -m uv pip install pandas peft
3637
- name: Environment
3738
run: |
3839
python utils/print_env.py

‎.github/workflows/build_docker_images.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
env:
1313
REGISTRY: diffusers
14+
CI_SLACK_CHANNEL: ${{ secrets.CI_DOCKER_CHANNEL }}
1415

1516
jobs:
1617
build-docker-images:
@@ -50,3 +51,27 @@ jobs:
5051
context: ./docker/${{ matrix.image-name }}
5152
push: true
5253
tags: ${{ env.REGISTRY }}/${{ matrix.image-name }}:latest
54+
55+
- name: Post to a Slack channel
56+
id: slack
57+
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001
58+
with:
59+
# Slack channel id, channel name, or user id to post message.
60+
# See also: https://api.slack.com/methods/chat.postMessage#channels
61+
channel-id: ${{ env.CI_SLACK_CHANNEL }}
62+
# For posting a rich message using Block Kit
63+
payload: |
64+
{
65+
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
66+
"blocks": [
67+
{
68+
"type": "section",
69+
"text": {
70+
"type": "mrkdwn",
71+
"text": "${{ matrix.image-name }} Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
72+
}
73+
}
74+
]
75+
}
76+
env:
77+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}

‎.github/workflows/build_documentation.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- doc-builder*
88
- v*-release
99
- v*-patch
10+
paths:
11+
- "src/diffusers/**.py"
12+
- "examples/"
13+
- "docs/"
1014

1115
jobs:
1216
build:

‎.github/workflows/build_pr_documentation.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build PR Documentation
22

33
on:
44
pull_request:
5+
paths:
6+
- "src/diffusers/**.py"
7+
- "examples/"
8+
- "docs/"
59

610
concurrency:
711
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

‎.github/workflows/nightly_tests.yml‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ jobs:
6060
6161
- name: Install dependencies
6262
run: |
63-
python -m pip install -e .[quality,test]
64-
python -m pip install -U git+https://github.com/huggingface/transformers
65-
python -m pip install git+https://github.com/huggingface/accelerate
63+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
64+
python -m uv pip install -e [quality,test]
65+
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers
66+
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
6667
6768
- name: Environment
6869
run: |
@@ -73,6 +74,7 @@ jobs:
7374
env:
7475
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
7576
run: |
77+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7678
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
7779
-s -v -k "not Flax and not Onnx" \
7880
--make-reports=tests_${{ matrix.config.report }} \
@@ -83,6 +85,7 @@ jobs:
8385
env:
8486
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
8587
run: |
88+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
8689
python -m pytest -n 0 \
8790
-s -v -k "Flax" \
8891
--make-reports=tests_${{ matrix.config.report }} \
@@ -93,6 +96,7 @@ jobs:
9396
env:
9497
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
9598
run: |
99+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
96100
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
97101
-s -v -k "Onnx" \
98102
--make-reports=tests_${{ matrix.config.report }} \
@@ -132,10 +136,10 @@ jobs:
132136
- name: Install dependencies
133137
shell: arch -arch arm64 bash {0}
134138
run: |
135-
${CONDA_RUN} python -m pip install --upgrade pip
136-
${CONDA_RUN} python -m pip install -e .[quality,test]
137-
${CONDA_RUN} python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
138-
${CONDA_RUN} python -m pip install git+https://github.com/huggingface/accelerate
139+
${CONDA_RUN} python -m pip install --upgrade pip uv
140+
${CONDA_RUN} python -m uv pip install -e [quality,test]
141+
${CONDA_RUN} python -m uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
142+
${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
139143
140144
- name: Environment
141145
shell: arch -arch arm64 bash {0}

‎.github/workflows/pr_dependency_test.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths:
8+
- "src/diffusers/**.py"
79
push:
810
branches:
911
- main
@@ -23,10 +25,12 @@ jobs:
2325
python-version: "3.8"
2426
- name: Install dependencies
2527
run: |
26-
python -m pip install --upgrade pip
27-
pip install -e .
28-
pip install pytest
28+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
29+
python -m pip install --upgrade pip uv
30+
python -m uv pip install -e .
31+
python -m uv pip install pytest
2932
- name: Check for soft dependencies
3033
run: |
34+
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3135
pytest tests/others/test_dependencies.py
3236

‎.github/workflows/pr_flax_dependency_test.yml‎

Lines changed: 10 additions & 6 deletions

‎.github/workflows/pr_quality.yml‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)