Skip to content

Commit 6bd6b7c

Browse files
Merge branch 'huggingface:main' into af-compile-fix
2 parents 85ea323 + 0706786 commit 6bd6b7c

File tree

631 files changed

+58049
-9894
lines changed

Some content is hidden

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

631 files changed

+58049
-9894
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "\U0001F31F Remote VAE"
2+
description: Feedback for remote VAE pilot
3+
labels: [ "Remote VAE" ]
4+
5+
body:
6+
- type: textarea
7+
id: positive
8+
validations:
9+
required: true
10+
attributes:
11+
label: Did you like the remote VAE solution?
12+
description: |
13+
If you liked it, we would appreciate it if you could elaborate what you liked.
14+
15+
- type: textarea
16+
id: feedback
17+
validations:
18+
required: true
19+
attributes:
20+
label: What can be improved about the current solution?
21+
description: |
22+
Let us know the things you would like to see improved. Note that we will work optimizing the solution once the pilot is over and we have usage.
23+
24+
- type: textarea
25+
id: others
26+
validations:
27+
required: true
28+
attributes:
29+
label: What other VAEs you would like to see if the pilot goes well?
30+
description: |
31+
Provide a list of the VAEs you would like to see in the future if the pilot goes well.
32+
33+
- type: textarea
34+
id: additional-info
35+
attributes:
36+
label: Notify the members of the team
37+
description: |
38+
Tag the following folks when submitting this feedback: @hlky @sayakpaul

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3939
python -m uv pip install -e [quality,test]
4040
python -m uv pip install pandas peft
41+
python -m uv pip uninstall transformers && python -m uv pip install transformers==4.48.0
4142
- name: Environment
4243
run: |
4344
python utils/print_env.py

.github/workflows/nightly_tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,16 @@ jobs:
414414
config:
415415
- backend: "bitsandbytes"
416416
test_location: "bnb"
417+
additional_deps: ["peft"]
417418
- backend: "gguf"
418419
test_location: "gguf"
420+
additional_deps: ["peft"]
419421
- backend: "torchao"
420422
test_location: "torchao"
423+
additional_deps: []
424+
- backend: "optimum_quanto"
425+
test_location: "quanto"
426+
additional_deps: []
421427
runs-on:
422428
group: aws-g6e-xlarge-plus
423429
container:
@@ -435,6 +441,9 @@ jobs:
435441
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
436442
python -m uv pip install -e [quality,test]
437443
python -m uv pip install -U ${{ matrix.config.backend }}
444+
if [ "${{ join(matrix.config.additional_deps, ' ') }}" != "" ]; then
445+
python -m uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
446+
fi
438447
python -m uv pip install pytest-reportlog
439448
- name: Environment
440449
run: |

.github/workflows/pr_style_bot.yml

Lines changed: 6 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -9,119 +9,9 @@ permissions:
99
pull-requests: write
1010

1111
jobs:
12-
run-style-bot:
13-
if: >
14-
contains(github.event.comment.body, '@bot /style') &&
15-
github.event.issue.pull_request != null
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- name: Extract PR details
20-
id: pr_info
21-
uses: actions/github-script@v6
22-
with:
23-
script: |
24-
const prNumber = context.payload.issue.number;
25-
const { data: pr } = await github.rest.pulls.get({
26-
owner: context.repo.owner,
27-
repo: context.repo.repo,
28-
pull_number: prNumber
29-
});
30-
31-
// We capture both the branch ref and the "full_name" of the head repo
32-
// so that we can check out the correct repository & branch (including forks).
33-
core.setOutput("prNumber", prNumber);
34-
core.setOutput("headRef", pr.head.ref);
35-
core.setOutput("headRepoFullName", pr.head.repo.full_name);
36-
37-
- name: Check out PR branch
38-
uses: actions/checkout@v3
39-
env:
40-
HEADREPOFULLNAME: ${{ steps.pr_info.outputs.headRepoFullName }}
41-
HEADREF: ${{ steps.pr_info.outputs.headRef }}
42-
with:
43-
# Instead of checking out the base repo, use the contributor's repo name
44-
repository: ${{ env.HEADREPOFULLNAME }}
45-
ref: ${{ env.HEADREF }}
46-
# You may need fetch-depth: 0 for being able to push
47-
fetch-depth: 0
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- name: Debug
51-
env:
52-
HEADREPOFULLNAME: ${{ steps.pr_info.outputs.headRepoFullName }}
53-
HEADREF: ${{ steps.pr_info.outputs.headRef }}
54-
PRNUMBER: ${{ steps.pr_info.outputs.prNumber }}
55-
run: |
56-
echo "PR number: ${{ env.PRNUMBER }}"
57-
echo "Head Ref: ${{ env.HEADREF }}"
58-
echo "Head Repo Full Name: ${{ env.HEADREPOFULLNAME }}"
59-
60-
- name: Set up Python
61-
uses: actions/setup-python@v4
62-
63-
- name: Install dependencies
64-
run: |
65-
pip install .[quality]
66-
67-
- name: Download Makefile from main branch
68-
run: |
69-
curl -o main_Makefile https://raw.githubusercontent.com/huggingface/diffusers/main/Makefile
70-
71-
- name: Compare Makefiles
72-
run: |
73-
if ! diff -q main_Makefile Makefile; then
74-
echo "Error: The Makefile has changed. Please ensure it matches the main branch."
75-
exit 1
76-
fi
77-
echo "No changes in Makefile. Proceeding..."
78-
rm -rf main_Makefile
79-
80-
- name: Run make style and make quality
81-
run: |
82-
make style && make quality
83-
84-
- name: Commit and push changes
85-
id: commit_and_push
86-
env:
87-
HEADREPOFULLNAME: ${{ steps.pr_info.outputs.headRepoFullName }}
88-
HEADREF: ${{ steps.pr_info.outputs.headRef }}
89-
PRNUMBER: ${{ steps.pr_info.outputs.prNumber }}
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91-
run: |
92-
echo "HEADREPOFULLNAME: ${{ env.HEADREPOFULLNAME }}, HEADREF: ${{ env.HEADREF }}"
93-
# Configure git with the Actions bot user
94-
git config user.name "github-actions[bot]"
95-
git config user.email "github-actions[bot]@users.noreply.github.com"
96-
97-
# Make sure your 'origin' remote is set to the contributor's fork
98-
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ env.HEADREPOFULLNAME }}.git"
99-
100-
# If there are changes after running style/quality, commit them
101-
if [ -n "$(git status --porcelain)" ]; then
102-
git add .
103-
git commit -m "Apply style fixes"
104-
# Push to the original contributor's forked branch
105-
git push origin HEAD:${{ env.HEADREF }}
106-
echo "changes_pushed=true" >> $GITHUB_OUTPUT
107-
else
108-
echo "No changes to commit."
109-
echo "changes_pushed=false" >> $GITHUB_OUTPUT
110-
fi
111-
112-
- name: Comment on PR with workflow run link
113-
if: steps.commit_and_push.outputs.changes_pushed == 'true'
114-
uses: actions/github-script@v6
115-
with:
116-
script: |
117-
const prNumber = parseInt(process.env.prNumber, 10);
118-
const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`
119-
120-
await github.rest.issues.createComment({
121-
owner: context.repo.owner,
122-
repo: context.repo.repo,
123-
issue_number: prNumber,
124-
body: `Style fixes have been applied. [View the workflow run here](${runUrl}).`
125-
});
126-
env:
127-
prNumber: ${{ steps.pr_info.outputs.prNumber }}
12+
style:
13+
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
14+
with:
15+
python_quality_dependencies: "[quality]"
16+
secrets:
17+
bot_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Fast tests for PRs
33
on:
44
pull_request:
55
branches: [main]
6-
types: [synchronize]
76
paths:
87
- "src/diffusers/**.py"
98
- "benchmarks/**.py"
@@ -64,6 +63,7 @@ jobs:
6463
run: |
6564
python utils/check_copies.py
6665
python utils/check_dummies.py
66+
python utils/check_support_list.py
6767
make deps_table_check_updated
6868
- name: Check if failure
6969
if: ${{ failure() }}
@@ -120,7 +120,8 @@ jobs:
120120
run: |
121121
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
122122
python -m uv pip install -e [quality,test]
123-
python -m uv pip install accelerate
123+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
124+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
124125
125126
- name: Environment
126127
run: |

0 commit comments

Comments
 (0)