Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes #160

Merged
merged 44 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f4a44b7
Simplify `platform_info` assignment in `diffusers-cli env` (#8298)
tolgacangoz May 29, 2024
f7a4626
[docs] DeepFloyd training (#8224)
stevhliu May 29, 2024
9e00b72
[docs] Files and formats (#7874)
stevhliu May 29, 2024
a2ecce2
Fix Copying Mechanism typo/bug (#8232)
tolgacangoz May 29, 2024
42cae93
Fix StableDiffusionPipeline when `text_encoder=None` (#8297)
DN6 May 29, 2024
3511a96
fix(training): lr scheduler doesn't work properly in distributed scen…
geniuspatrick May 30, 2024
352d96e
Modularize train_text_to_image_lora_sdxl inferencing during and after…
satani99 May 30, 2024
05be622
Fix depth pipeline "input/weight type should be the same" error at fp…
jonahclarsen May 30, 2024
f9fa8a8
Change checkpoint key used to identify CLIP models in single file che…
DN6 May 31, 2024
983dec3
[Core] Introduce class variants for `Transformer2DModel` (#7647)
sayakpaul May 31, 2024
86555c9
Fix marigold documentation (#8372)
toshas May 31, 2024
bc108e1
Fix DREAM training (#8302)
AmericanPresidentJimmyCarter Jun 1, 2024
4136044
Tencent Hunyuan Team: add HunyuanDiT related updates (#8240)
gnobitab Jun 1, 2024
174cf86
Tencent Hunyuan Team - Updated Doc for HunyuanDiT (#8383)
gnobitab Jun 3, 2024
4d633bf
Update slow test actions (#8381)
DN6 Jun 3, 2024
dc89434
Update transformer2d.md title (#8375)
salcc Jun 4, 2024
6be43bd
Fix AsymmetricAutoencoderKL forward (#8378)
townwish4git Jun 4, 2024
3ff39e8
[HunyuanDiT] minor docs changes in hunyuandit (#8395)
sayakpaul Jun 4, 2024
6ddbf62
[Transformer2DModel] Handle `norm_type` safely while remapping (#8370)
sayakpaul Jun 4, 2024
07cd200
Update code example in pipeline_stable_unclip_img2img.py EXAMPLE_DOC_…
ltejedor Jun 5, 2024
14f7b54
[Hunyuan DiT] feat: enable fusing qkv projections when doing attentio…
sayakpaul Jun 5, 2024
a8ad666
[Hunyuan] feat: support chunked ff. (#8397)
sayakpaul Jun 5, 2024
a0542c1
[LoRA] Remove legacy LoRA code and related adjustments (#8316)
sayakpaul Jun 5, 2024
2f6f426
[Hunyuan] allow Hunyuan DiT to run under 6GB for GPU VRAM (#8399)
sayakpaul Jun 5, 2024
48207d6
[Scheduler] fix: EDM schedulers when using the exp sigma schedule. (#…
sayakpaul Jun 5, 2024
d3881f3
Gligen training (#7906)
Hzzone Jun 5, 2024
7ebd359
Update tailscale action to main (#8403)
glegendre01 Jun 5, 2024
98730c5
Errata (#8322)
tolgacangoz Jun 5, 2024
867a2b0
[Hunyuan] add optimization related sections to the hunyuan dit docs. …
sayakpaul Jun 6, 2024
a3faf3f
[Core] fix: legacy model mapping (#8416)
sayakpaul Jun 6, 2024
151a56b
[docs] Single file usage (#8412)
stevhliu Jun 6, 2024
ec1aded
Optimize test files by fixing CPU-offloading usage (#8409)
tolgacangoz Jun 6, 2024
e0fae6f
Mirror `./examples/community` folder on HF (#8417)
Wauplin Jun 7, 2024
5fd6825
Fix mirror_community_pipeline.yml name (#8425)
Wauplin Jun 7, 2024
716b206
Fix mirror community pipeline (#8426)
Wauplin Jun 7, 2024
b63c956
Final fix for mirror community pipeline (#8427)
Wauplin Jun 7, 2024
7d88711
[Core] support saving and loading of sharded checkpoints (#7830)
sayakpaul Jun 7, 2024
0d68ddf
Move away from `cached_download` (#8419)
Wauplin Jun 7, 2024
83bc6c9
feat(ci): add trufflehog secrets detection (#8430)
McPatate Jun 8, 2024
4e0984d
fix(ci): remove unnecessary permissions (#8457)
McPatate Jun 10, 2024
1d9a6a8
🔧 chore: use modeling_outputs.Transformer2DModelOutput (#8436)
Jannchie Jun 10, 2024
d457bee
Update README.md to update the MaPO project (#8470)
sayakpaul Jun 11, 2024
0028c34
fix SEGA pipeline (#8467)
yiyixuxu Jun 11, 2024
0a1c13a
image_processor.py: Fixed an error in ValueError's message (#8447)
sirpaddy Jun 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/mirror_community_pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Mirror Community Pipeline

on:
# Push changes on the main branch
push:
branches:
- main
paths:
- 'examples/community/**.py'

# And on tag creation (e.g. `v0.28.1`)
tags:
- '*'

# Manual trigger with ref input
workflow_dispatch:
inputs:
ref:
description: "Either 'main' or a tag ref"
required: true
default: 'main'

jobs:
mirror_community_pipeline:
runs-on: ubuntu-latest
steps:
# Checkout to correct ref
# If workflow dispatch
# If ref is 'main', set:
# CHECKOUT_REF=refs/heads/main
# PATH_IN_REPO=main
# Else it must be a tag. Set:
# CHECKOUT_REF=refs/tags/{tag}
# PATH_IN_REPO={tag}
# If not workflow dispatch
# If ref is 'refs/heads/main' => set 'main'
# Else it must be a tag => set {tag}
- name: Set checkout_ref and path_in_repo
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.ref }}" ]; then
echo "Error: Missing ref input"
exit 1
elif [ "${{ github.event.inputs.ref }}" == "main" ]; then
echo "CHECKOUT_REF=refs/heads/main" >> $GITHUB_ENV
echo "PATH_IN_REPO=main" >> $GITHUB_ENV
else
echo "CHECKOUT_REF=refs/tags/${{ github.event.inputs.ref }}" >> $GITHUB_ENV
echo "PATH_IN_REPO=${{ github.event.inputs.ref }}" >> $GITHUB_ENV
fi
elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
echo "PATH_IN_REPO=main" >> $GITHUB_ENV
else
# e.g. refs/tags/v0.28.1 -> v0.28.1
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
echo "PATH_IN_REPO=${${{ github.ref }}#refs/tags/}" >> $GITHUB_ENV
fi
- name: Print env vars
run: |
echo "CHECKOUT_REF: ${{ env.CHECKOUT_REF }}"
echo "PATH_IN_REPO: ${{ env.PATH_IN_REPO }}"
- uses: actions/checkout@v3
with:
ref: ${{ env.CHECKOUT_REF }}

# Setup + install dependencies
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade huggingface_hub

# Check secret is set
- name: whoami
run: huggingface-cli whoami
env:
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}

# Push to HF! (under subfolder based on checkout ref)
# https://huggingface.co/datasets/diffusers/community-pipelines-mirror
- name: Mirror community pipeline to HF
run: huggingface-cli upload diffusers/community-pipelines-mirror ./examples/community ${PATH_IN_REPO} --repo-type dataset
env:
PATH_IN_REPO: ${{ env.PATH_IN_REPO }}
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}
2 changes: 1 addition & 1 deletion .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: [single-gpu, nvidia-gpu, t4, ci]
container:
image: diffusers/diffusers-pytorch-cuda
options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --gpus 0
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0
steps:
- name: Checkout diffusers
uses: actions/checkout@v3
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pr_test_peft_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,21 @@ jobs:
-s -v \
--make-reports=tests_${{ matrix.config.report }} \
tests/lora/
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
-s -v \
--make-reports=tests_models_lora_${{ matrix.config.report }} \
tests/models/ -k "lora"
- name: Failure short reports
if: ${{ failure() }}
run: |
cat reports/tests_${{ matrix.config.report }}_failures_short.txt
cat reports/tests_models_lora_${{ matrix.config.report }}_failures_short.txt
- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pr_${{ matrix.config.report }}_test_reports
path: reports
20 changes: 6 additions & 14 deletions .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
runs-on: [single-gpu, nvidia-gpu, t4, ci]
container:
image: diffusers/diffusers-pytorch-cuda
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0 --privileged
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0
steps:
- name: Checkout diffusers
uses: actions/checkout@v3
Expand All @@ -71,12 +71,6 @@ jobs:
- name: NVIDIA-SMI
run: |
nvidia-smi
- name: Tailscale
uses: huggingface/tailscale-action@v1
with:
authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }}
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
- name: Install dependencies
run: |
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
Expand All @@ -95,18 +89,11 @@ jobs:
-s -v -k "not Flax and not Onnx" \
--make-reports=tests_pipeline_${{ matrix.module }}_cuda \
tests/pipelines/${{ matrix.module }}
- name: Tailscale Wait
if: ${{ failure() || runner.debug == '1' }}
uses: huggingface/tailscale-action@v1
with:
waitForSSH: true
authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }}
- name: Failure short reports
if: ${{ failure() }}
run: |
cat reports/tests_pipeline_${{ matrix.module }}_cuda_stats.txt
cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -202,12 +189,17 @@ jobs:
-s -v -k "not Flax and not Onnx and not PEFTLoRALoading" \
--make-reports=tests_peft_cuda \
tests/lora/
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
-s -v -k "lora and not Flax and not Onnx and not PEFTLoRALoading" \
--make-reports=tests_peft_cuda_models_lora \
tests/models/
- name: Failure short reports
if: ${{ failure() }}
run: |
cat reports/tests_peft_cuda_stats.txt
cat reports/tests_peft_cuda_failures_short.txt
cat reports/tests_peft_cuda_models_lora_failures_short.txt
- name: Test suite reports artifacts
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ssh-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: [single-gpu, nvidia-gpu, "${{ github.event.inputs.runner_type }}", ci]
container:
image: ${{ github.event.inputs.docker_image }}
options: --gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0 --privileged

steps:
- name: Checkout diffusers
Expand All @@ -38,7 +38,7 @@ jobs:
nvidia-smi
- name: Tailscale # In order to be able to SSH when a test fails
uses: huggingface/tailscale-action@v1
uses: huggingface/tailscale-action@main
with:
authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }}
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:

name: Secret Leaks

jobs:
trufflehog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
22 changes: 14 additions & 8 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
title: Load community pipelines and components
- local: using-diffusers/schedulers
title: Load schedulers and models
- local: using-diffusers/using_safetensors
title: Load safetensors
- local: using-diffusers/other-formats
title: Load different Stable Diffusion formats
title: Model files and layouts
- local: using-diffusers/loading_adapters
title: Load adapters
- local: using-diffusers/push_to_hub
Expand Down Expand Up @@ -239,13 +237,19 @@
- local: api/models/consistency_decoder_vae
title: ConsistencyDecoderVAE
- local: api/models/transformer2d
title: Transformer2D
title: Transformer2DModel
- local: api/models/pixart_transformer2d
title: PixArtTransformer2DModel
- local: api/models/dit_transformer2d
title: DiTTransformer2DModel
- local: api/models/hunyuan_transformer2d
title: HunyuanDiT2DModel
- local: api/models/transformer_temporal
title: Transformer Temporal
title: TransformerTemporalModel
- local: api/models/prior_transformer
title: Prior Transformer
title: PriorTransformer
- local: api/models/controlnet
title: ControlNet
title: ControlNetModel
title: Models
isExpanded: false
- sections:
Expand Down Expand Up @@ -287,6 +291,8 @@
title: DiffEdit
- local: api/pipelines/dit
title: DiT
- local: api/pipelines/hunyuandit
title: Hunyuan-DiT
- local: api/pipelines/i2vgenxl
title: I2VGen-XL
- local: api/pipelines/pix2pix
Expand Down Expand Up @@ -455,4 +461,4 @@
title: Video Processor
title: Internal classes
isExpanded: false
title: API
title: API
Loading
Loading