Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
f842396
Post release for 0.16.0 (#3244)
patrickvonplaten Apr 26, 2023
c399de3
[docs] only mention one stage (#3246)
pcuenca Apr 26, 2023
e0a2bd1
Write model card in controlnet training script (#3229)
pcuenca Apr 26, 2023
fd512d7
[2064]: Add stochastic sampler (sample_dpmpp_sde) (#3020)
nipunjindal Apr 27, 2023
0b64c2c
[Stochastic Sampler][Slow Test]: Cuda test fixes (#3257)
nipunjindal Apr 27, 2023
70ef774
Remove required from tracker_project_name (#3260)
pcuenca Apr 27, 2023
77bfb56
adding required parameters while calling the get_up_block and get_dow…
init-22 Apr 27, 2023
fa31da2
[docs] Update interface in repaint.mdx (#3119)
ernestchu Apr 27, 2023
eade430
Update IF name to XL (#3262)
apolinario Apr 27, 2023
d92c4d5
fix typo in score sde pipeline (#3132)
fecet Apr 27, 2023
eb29dba
Fix typo in textual inversion JAX training script (#3123)
jairtrejo Apr 27, 2023
b63419a
AudioDiffusionPipeline - fix encode method after config changes (#3114)
teticio Apr 27, 2023
2ced899
Revert "Revert "[Community Pipelines] Update lpw_stable_diffusion pip…
patrickvonplaten Apr 27, 2023
364d59d
Fix community pipelines (#3266)
patrickvonplaten Apr 27, 2023
329d1df
update notebook (#3259)
yiyixuxu Apr 27, 2023
256e696
[docs] add notes for stateful model changes (#3252)
williamberman Apr 27, 2023
71de5b7
[LoRA] quality of life improvements in the loading semantics and docs…
sayakpaul Apr 28, 2023
462b4ed
[Community Pipelines] EDICT pipeline implementation (#3153)
Joqsan Apr 28, 2023
0614fd2
[Docs]zh translated docs update (#3245)
DrDavidS Apr 28, 2023
73cc431
Update logging.mdx (#2863)
tolgacangoz Apr 28, 2023
6290668
Add multiple conditions to StableDiffusionControlNetInpaintPipeline (…
timegate Apr 28, 2023
d464214
Let's make sure that dreambooth always uploads to the Hub (#3272)
patrickvonplaten Apr 28, 2023
be0bfce
Diffedit Zero-Shot Inpainting Pipeline (#2837)
clarencechen Apr 28, 2023
a7b0671
add constant learning rate with custom rule (#3133)
jason9075 Apr 28, 2023
4d35d7f
Allow disabling torch 2_0 attention (#3273)
patrickvonplaten Apr 28, 2023
14b4606
[doc] add link to training script (#3271)
yiyixuxu Apr 28, 2023
384c83a
temp disable spectogram diffusion tests (#3278)
williamberman Apr 28, 2023
536684e
Changed sample[0] to images[0] (#3304)
IliaLarchenko May 1, 2023
709cf55
Typo in tutorial (#3295)
IliaLarchenko May 1, 2023
0e82fb1
Torch compile graph fix (#3286)
patrickvonplaten May 1, 2023
a7f25b4
Postprocessing refactor img2img (#3268)
yiyixuxu May 1, 2023
5c7a35a
[Torch 2.0 compile] Fix more torch compile breaks (#3313)
patrickvonplaten May 2, 2023
efc48da
fix: scale_lr and sync example readme and docs. (#3299)
sayakpaul May 3, 2023
0ccad2a
Update stable_diffusion.mdx (#3310)
mu94-csl May 3, 2023
63a8ef7
Fix missing variable assign in DeepFloyd-IF-II (#3315)
gitmylo May 3, 2023
79bd909
Correct doc build for patch releases (#3316)
patrickvonplaten May 3, 2023
2dd4085
Add Stable Diffusion RePaint to community pipelines (#3320)
Markus-Pobitzer May 3, 2023
0224794
Fix multistep dpmsolver for cosine schedule (suitable for deepfloyd-i…
LuChengTHU May 3, 2023
4bae76e
[docs] Improve LoRA docs (#3311)
stevhliu May 4, 2023
fa9e35f
Added input pretubation (#3292)
isamu-isozaki May 4, 2023
79c0e24
Update write_own_pipeline.mdx (#3323)
csaybar May 4, 2023
379197a
update controlling generation doc with latest goodies. (#3321)
sayakpaul May 5, 2023
29ad75d
[Quality] Make style (#3341)
patrickvonplaten May 5, 2023
8d4c7d0
Fix config dpm (#3343)
patrickvonplaten May 5, 2023
27522b5
Add the SDE variant of DPM-Solver and DPM-Solver++ (#3344)
LuChengTHU May 5, 2023
36f43ea
Add upsample_size to AttnUpBlock2D, AttnDownBlock2D (#3275)
will-rice May 5, 2023
e9aa092
Rename --only_save_embeds to --save_as_full_pipeline (#3206)
arrufat May 6, 2023
abd86d1
[AudioLDM] Generalise conversion script (#3328)
sanchit-gandhi May 6, 2023
7ce3fa0
Fix TypeError when using prompt_embeds and negative_prompt (#2982)
At-sushi May 6, 2023
0407c3e
Fix pipeline class on README (#3345)
themrzmaster May 6, 2023
b0966f5
Inpainting: typo in docs (#3331)
LysandreJik May 6, 2023
0ffac97
Add `use_Karras_sigmas` to LMSDiscreteScheduler (#3351)
Isotr0py May 6, 2023
3d8b3d7
Batched load of textual inversions (#3277)
pdoane May 8, 2023
f381402
make fix-copies
patrickvonplaten May 8, 2023
571bc1e
[docs] Fix docstring (#3334)
stevhliu May 8, 2023
a757b2d
if dreambooth lora (#3360)
williamberman May 9, 2023
c559479
Postprocessing refactor all others (#3337)
yiyixuxu May 9, 2023
26832aa
[docs] Improve safetensors docstring (#3368)
stevhliu May 9, 2023
94a0c64
add: a warning message when using xformers in a PT 2.0 env. (#3365)
sayakpaul May 10, 2023
edb087a
StableDiffusionInpaintingPipeline - resize image w.r.t height and wid…
rupertmenneer May 10, 2023
82e6fa5
make style
patrickvonplaten May 10, 2023
c49e9ed
[docs] Adapt a model (#3326)
stevhliu May 10, 2023
5e74675
[docs] Load safetensors (#3333)
stevhliu May 11, 2023
f740d35
make style
patrickvonplaten May 11, 2023
e0b56d2
[Docs] Fix stable_diffusion.mdx typo (#3398)
sudowind May 11, 2023
01c056f
Support ControlNet v1.1 shuffle properly (#3340)
takuma104 May 11, 2023
90f5f3c
[Tests] better determinism (#3374)
sayakpaul May 11, 2023
d71db89
[docs] Add transformers to install (#3388)
stevhliu May 11, 2023
af2a237
[deepspeed] partial ZeRO-3 support (#3076)
stas00 May 11, 2023
58c6f9c
Add omegaconf for tests (#3400)
patrickvonplaten May 11, 2023
f922530
Fix various bugs with LoRA Dreambooth and Dreambooth script (#3353)
patrickvonplaten May 11, 2023
1a5797c
Fix docker file (#3402)
patrickvonplaten May 11, 2023
3a237f4
fix: deepseepd_plugin retrieval from accelerate state (#3410)
sayakpaul May 12, 2023
7f6373d
[Docs] Add `sigmoid` beta_scheduler to docstrings of relevant Schedul…
Laurent2916 May 12, 2023
b1b92f4
Don't install accelerate and transformers from source (#3415)
patrickvonplaten May 12, 2023
03e5126
Don't install transformers and accelerate from source (#3414)
patrickvonplaten May 12, 2023
28f4043
Improve fast tests (#3416)
patrickvonplaten May 12, 2023
909742d
attention refactor: the trilogy (#3387)
williamberman May 12, 2023
bdefabd
[Docs] update the PT 2.0 optimization doc with latest findings (#3370)
sayakpaul May 13, 2023
7a32b6b
Fix style rendering (#3433)
pcuenca May 15, 2023
29b1325
unCLIP scheduler do not use note (#3417)
williamberman May 15, 2023
326f326
Replace deprecated command with environment file (#3409)
jongwooo May 16, 2023
d2285f5
fix warning message pipeline loading (#3446)
patrickvonplaten May 16, 2023
9d44e2f
add stable diffusion tensorrt img2img pipeline (#3419)
asfiyab-nvidia May 16, 2023
886575e
Refactor controlnet and add img2img and inpaint (#3386)
patrickvonplaten May 16, 2023
17f9aed
[Scheduler] DPM-Solver (++) Inverse Scheduler (#3335)
clarencechen May 16, 2023
754fac8
[Docs] Fix incomplete docstring for resnet.py (#3438)
Laurent2916 May 16, 2023
92ea5ba
fix tiled vae blend extent range (#3384)
superlabs-dev May 16, 2023
0392ece
Small update to "Next steps" section (#3443)
pcuenca May 16, 2023
6070b32
Allow arbitrary aspect ratio in IFSuperResolutionPipeline (#3298)
devxpy May 17, 2023
c09c4f3
Adding 'strength' parameter to StableDiffusionInpaintingPipeline (#3…
rupertmenneer May 17, 2023
415c616
[WIP] Bugfix - Pipeline.from_pretrained is broken when the pipeline i…
vimarshc May 17, 2023
15f1bab
Fix gradient checkpointing bugs in freezing part of models (requires_…
IrisRainbowNeko May 17, 2023
3ebd2d1
Make dreambooth lora more robust to orig unet (#3462)
patrickvonplaten May 17, 2023
bd78f63
Reduce peak VRAM by releasing large attention tensors (as soon as the…
cmdr2 May 17, 2023
2faf91d
Add min snr to text2img lora training script (#3459)
wfng92 May 17, 2023
88295f9
Add inpaint lora scale support (#3460)
Glaceon-Hyy May 17, 2023
2858d7e
[From ckpt] Fix from_ckpt (#3466)
patrickvonplaten May 17, 2023
c9f939b
Update full dreambooth script to work with IF (#3425)
williamberman May 17, 2023
7200985
Add IF dreambooth docs (#3470)
williamberman May 17, 2023
49b7ccf
parameterize pass single args through tuple (#3477)
williamberman May 18, 2023
8917769
attend and excite tests disable determinism on the class level (#3478)
williamberman May 18, 2023
8d646f2
dreambooth docs torch.compile note (#3471)
williamberman May 19, 2023
e343443
add: if entry in the dreambooth training docs. (#3472)
sayakpaul May 19, 2023
00c76f6
[docs] Textual inversion inference (#3473)
stevhliu May 19, 2023
e589bdb
[docs] Distributed inference (#3376)
stevhliu May 19, 2023
85eff63
[{Up,Down}sample1d] explicit view kernel size as number elements in f…
williamberman May 19, 2023
f7b4f51
mps & onnx tests rework (#3449)
pcuenca May 20, 2023
4bbc51d
[Attention processor] Better warning message when shifting to `AttnPr…
sayakpaul May 21, 2023
49ad61c
[Docs] add note on local directory path. (#3397)
sayakpaul May 21, 2023
51843fd
Refactor full determinism (#3485)
patrickvonplaten May 22, 2023
6dd3871
Fix DPM single (#3413)
patrickvonplaten May 22, 2023
194b0a4
Add `use_Karras_sigmas` to DPMSolverSinglestepScheduler (#3476)
Isotr0py May 22, 2023
0160e51
Adds local_files_only bool to prevent forced online connection (#3486)
w4ffl35 May 22, 2023
a2874af
make style
patrickvonplaten May 22, 2023
229fd8c
[Docs] Korean translation (optimization, training) (#3488)
tjdtnsu May 22, 2023
b8b5daa
DataLoader respecting EXIF data in Training Images (#3465)
Ambrosiussen May 22, 2023
2b56e8c
make style
patrickvonplaten May 22, 2023
f3d570c
feat: allow disk offload for diffuser models (#3285)
hari10599 May 22, 2023
c4359d6
[Community] reference only control (#3435)
okotaku May 22, 2023
64bf5d3
Support for cross-attention bias / mask (#2634)
Birch-san May 22, 2023
67cd460
do not scale the initial global step by gradient accumulation steps w…
williamberman May 22, 2023
2f997f3
Fix bug in panorama pipeline when using dpmsolver scheduler (#3499)
Isotr0py May 23, 2023
edc6505
[Community Pipelines]Accelerate inference of stable diffusion by IPEX…
yingjie-han May 23, 2023
b134f6a
[Community] ControlNet Reference (#3508)
okotaku May 23, 2023
d4197bf
Allow custom pipeline loading (#3504)
patrickvonplaten May 23, 2023
9e2734a
Make sure Diffusers works even if Hub is down (#3447)
patrickvonplaten May 23, 2023
84ce50f
Improve README (#3524)
patrickvonplaten May 23, 2023
b402604
Update README.md (#3525)
patrickvonplaten May 23, 2023
abab61d
Update README.md
patrickvonplaten May 23, 2023
bde2cb5
Run `torch.compile` tests in separate subprocesses (#3503)
pcuenca May 23, 2023
c13dbd5
fix attention mask pad check (#3531)
williamberman May 23, 2023
db56f8a
explicit broadcasts for assignments (#3535)
williamberman May 24, 2023
8e69708
[Examples/DreamBooth] refactor save_model_card utility in dreambooth …
sayakpaul May 24, 2023
a94977b
Fix panorama to support all schedulers (#3546)
Isotr0py May 24, 2023
f19f128
Add open parti prompts to docs (#3549)
patrickvonplaten May 25, 2023
03b7a84
Add Kandinsky 2.1 (#3308)
yiyixuxu May 25, 2023
e5215de
fix broken change for vq pipeline (#3563)
yiyixuxu May 26, 2023
d114d80
[Stable Diffusion Inpainting] Allow standard text-to-img checkpoints …
patrickvonplaten May 26, 2023
d8ce53a
Fix loaded_token reference before definition (#3523)
eminn May 26, 2023
ffa33d6
renamed variable to input_ and output_ (#3507)
vikasmech May 26, 2023
66356e7
Correct inpainting controlnet docs (#3572)
patrickvonplaten May 26, 2023
bf16a97
Fix controlnet guess mode euler (#3571)
patrickvonplaten May 26, 2023
7948db8
[docs] Add AttnProcessor to docs (#3474)
stevhliu May 26, 2023
352ca31
[WIP] Add UniDiffuser model and pipeline (#2963)
dg845 May 26, 2023
67cf044
Fix to apply LoRAXFormersAttnProcessor instead of LoRAAttnProcessor w…
takuma104 May 26, 2023
1d1f648
fix dreambooth attention mask (#3541)
linbo0518 May 26, 2023
bdc75e7
[IF super res] correctly normalize PIL input (#3536)
williamberman May 26, 2023
ab98676
[docs] Maintenance (#3552)
stevhliu May 26, 2023
9917c32
[docs] update the broken links (#3568)
brandonJY May 26, 2023
5559d04
[docs] Working with different formats (#3534)
stevhliu May 26, 2023
c6ae883
remove print statements from attention processor. (#3592)
sayakpaul May 29, 2023
c0f867a
Fix temb attention (#3607)
patrickvonplaten May 30, 2023
c059cc0
[docs] update the broken links (#3577)
kadirnar May 30, 2023
0612f48
[UniDiffuser Tests] Fix some tests (#3609)
sayakpaul May 30, 2023
35a7404
#3487 Fix inpainting strength for various samplers (#3532)
rupertmenneer May 30, 2023
6cbddf5
[Community] Support StableDiffusionTilingPipeline (#3586)
kadirnar May 30, 2023
07ef485
[Community, Enhancement] Add reference tricks in README (#3589)
okotaku May 30, 2023
799f5b4
[Feat] Enable State Dict For Textual Inversion Loader (#3439)
ghunkins May 30, 2023
bb22d54
[Community] CLIP Guided Images Mixing with Stable DIffusion Pipeline …
TheDenk May 30, 2023
160c377
Make style
patrickvonplaten May 30, 2023
a359ab4
Update README.md
patrickvonplaten May 30, 2023
9d3ff07
fix tests (#3614)
patrickvonplaten May 30, 2023
0cc3a7a
Make sure we also change the config when setting `encoder_hid_dim_typ…
patrickvonplaten May 30, 2023
7d0ac4e
goodbye frog (#3617)
williamberman May 30, 2023
abb89da
update code to reflect latest changes as of May 30th (#3616)
prathikr May 31, 2023
f751b88
update dreambooth lora to work with IF stage II (#3560)
williamberman May 31, 2023
4f14b36
Full Dreambooth IF stage II upscaling (#3561)
williamberman May 31, 2023
55dbfa0
[Docs] include the instruction-tuning blog link in the InstructPix2Pi…
sayakpaul Jun 2, 2023
32ea214
[Kandinsky] Improve kandinsky API a bit (#3636)
patrickvonplaten Jun 2, 2023
8e552bb
Support Kohya-ss style LoRA file format (in a limited capacity) (#3437)
takuma104 Jun 2, 2023
a6c7b5b
Iterate over unique tokens to avoid duplicate replacements for multiv…
lachlan-nicholson Jun 2, 2023
f1d4743
fixed typo in example train_text_to_image.py (#3608)
kashif Jun 2, 2023
0e86881
fix inpainting pipeline when providing initial latents (#3641)
yiyixuxu Jun 2, 2023
0dbdc0c
[Community Doc] Updated the filename and readme file. (#3634)
kadirnar Jun 2, 2023
d3717e6
add Stable Diffusion TensorRT Inpainting pipeline (#3642)
asfiyab-nvidia Jun 2, 2023
b7af946
set config from original module but set compiled module on class (#3650)
williamberman Jun 2, 2023
5911a3a
dreambooth if docs - stage II, more info (#3628)
williamberman Jun 2, 2023
7a39691
linting fix (#3653)
williamberman Jun 2, 2023
b95cbdf
Set step_rules correctly for piecewise_constant scheduler (#3605)
0x1355 Jun 5, 2023
de45af4
Allow setting num_cycles for cosine_with_restarts lr scheduler (#3606)
0x1355 Jun 5, 2023
523a50a
[docs] Load A1111 LoRA (#3629)
stevhliu Jun 5, 2023
0fc2fb7
dreambooth upscaling fix added latents (#3659)
williamberman Jun 5, 2023
262d539
Correct multi gpu dreambooth (#3673)
patrickvonplaten Jun 5, 2023
1994dbc
Fix from_ckpt not working properly on windows (#3666)
LyubimovVladislav Jun 5, 2023
d0416ab
Update Compel documentation for textual inversions (#3663)
pdoane Jun 5, 2023
995bbcb
[UniDiffuser test] fix one test so that it runs correctly on V100 (#3…
sayakpaul Jun 5, 2023
1a6a647
[docs] More API fixes (#3640)
stevhliu Jun 5, 2023
5990014
[WIP]Vae preprocessor refactor (PR1) (#3557)
yiyixuxu Jun 5, 2023
462956b
small tweaks for parsing thibaudz controlnet checkpoints (#3657)
williamberman Jun 5, 2023
41ae670
move activation dispatches into helper function (#3656)
williamberman Jun 5, 2023
a8b0f42
[docs] Fix link to loader method (#3680)
stevhliu Jun 6, 2023
b45204e
Add function to remove monkey-patch for text encoder LoRA (#3649)
takuma104 Jun 6, 2023
8669e83
[LoRA] feat: add lora attention processor for pt 2.0. (#3594)
sayakpaul Jun 6, 2023
017ee16
refactor Image processor for x4 upscaler (#3692)
yiyixuxu Jun 6, 2023
de16f64
feat: when using PT 2.0 use LoRAAttnProcessor2_0 for text enc LoRA. (…
sayakpaul Jun 6, 2023
10f4ecd
Fix the Kandinsky docstring examples (#3695)
freespirit Jun 6, 2023
11b3002
Support views batch for panorama (#3632)
Isotr0py Jun 6, 2023
2de9e2d
Fix from_ckpt for Stable Diffusion 2.x (#3662)
ctrysbita Jun 6, 2023
74fd735
Add draft for lora text encoder scale (#3626)
patrickvonplaten Jun 6, 2023
12a232e
Fix schedulers zero SNR and rescale classifier free guidance (#3664)
Max-We Jun 7, 2023
fdec231
[Tests] Run slow matrix sequentially (#3500)
pcuenca Jun 7, 2023
cd9d091
Fixes eval generator init in `train_text_to_image_lora.py` (#3678)
vvvm23 Jun 7, 2023
7ddc4a1
Fix custom releases (#3708)
patrickvonplaten Jun 7, 2023
5916743
Fix loading if unexpected keys are present (#3720)
patrickvonplaten Jun 8, 2023
6bbde99
Release: v0.17.0
patrickvonplaten Jun 8, 2023
a6238e5
Merge branch 'main' of https://github.com/Pseudo-Lab/diffusers into v…
tjdtnsu Jun 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/actions/setup-miniconda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
- name: Get date
id: get-date
shell: bash
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')d"
run: echo "today=$(/bin/date -u '+%Y%m%d')d" >> $GITHUB_OUTPUT
- name: Setup miniconda cache
id: miniconda-cache
uses: actions/cache@v2
Expand Down Expand Up @@ -143,4 +143,4 @@ runs:
echo "There is ${AVAIL}KB free space left in $MOUNT, continue"
fi
fi
done
done
2 changes: 1 addition & 1 deletion .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
- doc-builder*
- v*-release
- v*-patch

jobs:
build:
Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ jobs:
runner: docker-cpu
image: diffusers/diffusers-flax-cpu
report: flax_cpu
- name: Fast ONNXRuntime CPU tests
framework: onnxruntime
runner: docker-cpu
image: diffusers/diffusers-onnxruntime-cpu
report: onnx_cpu
- name: PyTorch Example CPU tests
framework: pytorch_examples
runner: docker-cpu
Expand Down Expand Up @@ -69,8 +64,6 @@ jobs:
run: |
apt-get update && apt-get install libsndfile1-dev -y
python -m pip install -e .[quality,test]
python -m pip install -U git+https://github.com/huggingface/transformers
python -m pip install git+https://github.com/huggingface/accelerate

- name: Environment
run: |
Expand Down Expand Up @@ -100,14 +93,6 @@ jobs:
--make-reports=tests_${{ matrix.config.report }} \
tests

- name: Run fast ONNXRuntime CPU tests
if: ${{ matrix.config.framework == 'onnxruntime' }}
run: |
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
-s -v -k "Onnx" \
--make-reports=tests_${{ matrix.config.report }} \
tests/

- name: Run example PyTorch CPU tests
if: ${{ matrix.config.framework == 'pytorch_examples' }}
run: |
Expand All @@ -125,56 +110,3 @@ jobs:
with:
name: pr_${{ matrix.config.report }}_test_reports
path: reports

run_fast_tests_apple_m1:
name: Fast PyTorch MPS tests on MacOS
runs-on: [ self-hosted, apple-m1 ]

steps:
- name: Checkout diffusers
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Clean checkout
shell: arch -arch arm64 bash {0}
run: |
git clean -fxd

- name: Setup miniconda
uses: ./.github/actions/setup-miniconda
with:
python-version: 3.9

- name: Install dependencies
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python -m pip install --upgrade pip
${CONDA_RUN} python -m pip install -e .[quality,test]
${CONDA_RUN} python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
${CONDA_RUN} python -m pip install git+https://github.com/huggingface/accelerate
${CONDA_RUN} python -m pip install -U git+https://github.com/huggingface/transformers

- name: Environment
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python utils/print_env.py

- name: Run fast PyTorch tests on M1 (MPS)
shell: arch -arch arm64 bash {0}
env:
HF_HOME: /System/Volumes/Data/mnt/cache
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
run: |
${CONDA_RUN} python -m pytest -n 0 -s -v --make-reports=tests_torch_mps tests/

- name: Failure short reports
if: ${{ failure() }}
run: cat reports/tests_torch_mps_failures_short.txt

- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pr_torch_mps_test_reports
path: reports
8 changes: 4 additions & 4 deletions .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run_slow_tests:
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- name: Slow PyTorch CUDA tests on Ubuntu
Expand Down Expand Up @@ -61,8 +62,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -e .[quality,test]
python -m pip install -U git+https://github.com/huggingface/transformers
python -m pip install git+https://github.com/huggingface/accelerate

- name: Environment
run: |
Expand All @@ -72,6 +71,9 @@ jobs:
if: ${{ matrix.config.framework == 'pytorch' }}
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG: :16:8

run: |
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
-s -v -k "not Flax and not Onnx" \
Expand Down Expand Up @@ -131,8 +133,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -e .[quality,test,training]
python -m pip install git+https://github.com/huggingface/accelerate
python -m pip install -U git+https://github.com/huggingface/transformers

- name: Environment
run: |
Expand Down
57 changes: 1 addition & 56 deletions .github/workflows/push_tests_fast.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Slow tests on main
name: Fast tests on main

on:
push:
Expand Down Expand Up @@ -62,8 +62,6 @@ jobs:
run: |
apt-get update && apt-get install libsndfile1-dev -y
python -m pip install -e .[quality,test]
python -m pip install -U git+https://github.com/huggingface/transformers
python -m pip install git+https://github.com/huggingface/accelerate

- name: Environment
run: |
Expand Down Expand Up @@ -110,56 +108,3 @@ jobs:
with:
name: pr_${{ matrix.config.report }}_test_reports
path: reports

run_fast_tests_apple_m1:
name: Fast PyTorch MPS tests on MacOS
runs-on: [ self-hosted, apple-m1 ]

steps:
- name: Checkout diffusers
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Clean checkout
shell: arch -arch arm64 bash {0}
run: |
git clean -fxd

- name: Setup miniconda
uses: ./.github/actions/setup-miniconda
with:
python-version: 3.9

- name: Install dependencies
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python -m pip install --upgrade pip
${CONDA_RUN} python -m pip install -e .[quality,test]
${CONDA_RUN} python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
${CONDA_RUN} python -m pip install git+https://github.com/huggingface/accelerate
${CONDA_RUN} python -m pip install -U git+https://github.com/huggingface/transformers

- name: Environment
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python utils/print_env.py

- name: Run fast PyTorch tests on M1 (MPS)
shell: arch -arch arm64 bash {0}
env:
HF_HOME: /System/Volumes/Data/mnt/cache
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
run: |
${CONDA_RUN} python -m pytest -n 0 -s -v --make-reports=tests_torch_mps tests/

- name: Failure short reports
if: ${{ failure() }}
run: cat reports/tests_torch_mps_failures_short.txt

- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pr_torch_mps_test_reports
path: reports
68 changes: 68 additions & 0 deletions .github/workflows/push_tests_mps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Fast mps tests on main

on:
push:
branches:
- main

env:
DIFFUSERS_IS_CI: yes
HF_HOME: /mnt/cache
OMP_NUM_THREADS: 8
MKL_NUM_THREADS: 8
PYTEST_TIMEOUT: 600
RUN_SLOW: no

jobs:
run_fast_tests_apple_m1:
name: Fast PyTorch MPS tests on MacOS
runs-on: [ self-hosted, apple-m1 ]

steps:
- name: Checkout diffusers
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Clean checkout
shell: arch -arch arm64 bash {0}
run: |
git clean -fxd

- name: Setup miniconda
uses: ./.github/actions/setup-miniconda
with:
python-version: 3.9

- name: Install dependencies
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python -m pip install --upgrade pip
${CONDA_RUN} python -m pip install -e .[quality,test]
${CONDA_RUN} python -m pip install torch torchvision torchaudio
${CONDA_RUN} python -m pip install accelerate --upgrade
${CONDA_RUN} python -m pip install transformers --upgrade

- name: Environment
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python utils/print_env.py

- name: Run fast PyTorch tests on M1 (MPS)
shell: arch -arch arm64 bash {0}
env:
HF_HOME: /System/Volumes/Data/mnt/cache
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
run: |
${CONDA_RUN} python -m pytest -n 0 -s -v --make-reports=tests_torch_mps tests/

- name: Failure short reports
if: ${{ failure() }}
run: cat reports/tests_torch_mps_failures_short.txt

- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pr_torch_mps_test_reports
path: reports
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ Awesome! Tell us what problem it solved for you.

You can open a feature request [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feature_request.md&title=).

#### 2.3 Feedback.
#### 2.3 Feedback.

Feedback about the library design and why it is good or not good helps the core maintainers immensely to build a user-friendly library. To understand the philosophy behind the current design philosophy, please have a look [here](https://huggingface.co/docs/diffusers/conceptual/philosophy). If you feel like a certain design choice does not fit with the current design philosophy, please explain why and how it should be changed. If a certain design choice follows the design philosophy too much, hence restricting use cases, explain why and how it should be changed.
If a certain design choice is very useful for you, please also leave a note as this is great feedback for future design decisions.

You can open an issue about feedback [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=).

#### 2.4 Technical questions.
#### 2.4 Technical questions.

Technical questions are mainly about why certain code of the library was written in a certain way, or what a certain part of the code does. Please make sure to link to the code in question and please provide detail on
why this part of the code is difficult to understand.
Expand Down Expand Up @@ -394,8 +394,8 @@ passes. You should run the tests impacted by your changes like this:
```bash
$ pytest tests/<TEST_TO_RUN>.py
```
Before you run the tests, please make sure you install the dependencies required for testing. You can do so

Before you run the tests, please make sure you install the dependencies required for testing. You can do so
with this command:

```bash
Expand Down
Loading