1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
Commit Graph

5763 Commits

Author SHA1 Message Date
yiyixuxu
3e46c86a93 fix links in the doc 2025-07-01 04:51:49 +02:00
yiyixuxu
8cb5b084b5 up upup 2025-07-01 03:22:27 +02:00
yiyixuxu
13fe248152 add modularpipelineblocks to be pushtohub mixin 2025-07-01 03:22:15 +02:00
yiyixuxu
2e2024152c up up 2025-07-01 03:07:08 +02:00
yiyixuxu
1987c07899 update docstree 2025-07-01 03:06:34 +02:00
yiyixuxu
4543d216ec rename quick start- it is really not quick 2025-07-01 03:06:13 +02:00
yiyixuxu
b5db8aaa6f developer_guide -> end-to-end guide 2025-07-01 03:05:38 +02:00
yiyixuxu
98ea5c9e86 Merge branch 'modular-diffusers' of github.com:huggingface/diffusers into modular-diffusers 2025-06-30 22:10:10 +02:00
yiyixuxu
f27fbceba1 more attemp to fix circular import 2025-06-30 22:09:57 +02:00
YiYi Xu
4b12a60c93 Merge branch 'main' into modular-diffusers 2025-06-30 09:46:44 -10:00
yiyixuxu
abf28d55fb update 2025-06-30 21:45:30 +02:00
Aryan
f064b3bf73 Remove print statement in SCM Scheduler (#11836)
remove print
2025-06-30 09:07:34 -10:00
yiyixuxu
db4b54cfab finish the autopipelines section! 2025-06-30 21:05:32 +02:00
yiyixuxu
0138e176ac remove the get_exeuction_blocks rec from AutoPipelineBlocks repr 2025-06-30 21:05:12 +02:00
Benjamin Bossan
3b079ec3fa ENH: Improve speed of function expanding LoRA scales (#11834)
* ENH Improve speed of expanding LoRA scales

Resolves #11816

The following call proved to be a bottleneck when setting a lot of LoRA
adapters in diffusers:

cdaf84a708/src/diffusers/loaders/peft.py (L482)

This is because we would repeatedly call unet.state_dict(), even though
in the standard case, it is not necessary:

cdaf84a708/src/diffusers/loaders/unet_loader_utils.py (L55)

This PR fixes this by deferring this call, so that it is only run when
it's necessary, not earlier.

* Small fix

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2025-06-30 20:25:56 +05:30
Sayak Paul
bc34fa8386 [lora]feat: use exclude modules to loraconfig. (#11806)
* feat: use exclude modules to loraconfig.

* version-guard.

* tests and version guard.

* remove print.

* describe the test

* more detailed warning message + shift to debug

* update

* update

* update

* remove test
2025-06-30 20:08:53 +05:30
yiyixuxu
bbd9340781 up 2025-06-30 11:30:06 +02:00
yiyixuxu
363737ec4b add loop sequential blocks 2025-06-30 11:09:08 +02:00
yiyixuxu
c5849ba9d5 more 2025-06-30 09:46:34 +02:00
yiyixuxu
f09b1ccfae start the section on sequential pipelines 2025-06-30 07:48:44 +02:00
yiyixuxu
285f877620 make InsertableDict importable from modular_pipelines 2025-06-30 07:48:26 +02:00
yiyixuxu
c75b88f86f up 2025-06-30 03:23:44 +02:00
YiYi Xu
b43e703fae Update docs/source/en/modular_diffusers/write_own_pipeline_block.md 2025-06-29 14:49:54 -10:00
YiYi Xu
9fae3828a7 Apply suggestions from code review 2025-06-29 14:49:31 -10:00
yiyixuxu
3a3441cb45 start the write your own pipeline block tutorial 2025-06-30 02:47:38 +02:00
yiyixuxu
fdd2bedae9 2024 -> 2025; fix a circular import 2025-06-29 03:00:46 +02:00
YiYi Xu
fedaa00bd5 Merge branch 'main' into modular-diffusers 2025-06-28 14:50:58 -10:00
yiyixuxu
8c680bc0b4 up 2025-06-28 14:11:17 +02:00
yiyixuxu
92b6b43805 add some visuals 2025-06-28 13:39:45 +02:00
yiyixuxu
49ea4d1bf5 style 2025-06-28 12:50:11 +02:00
yiyixuxu
58dbe0c29e finimsh the quickstart! 2025-06-28 12:46:21 +02:00
yiyixuxu
9aaec5b9bc up 2025-06-28 12:46:06 +02:00
yiyixuxu
93760b1888 InsertableOrderedDict -> InsertableDict 2025-06-28 09:15:13 +02:00
yiyixuxu
75540f42ee more blocks -> sub_blocks 2025-06-28 08:54:05 +02:00
yiyixuxu
b543bcc661 docstring blocks -> sub_blocks 2025-06-28 08:53:46 +02:00
yiyixuxu
885a596696 blocks -> sub_blocks; will not by default load all; add load_default_components method on modular_pipeline 2025-06-28 08:52:43 +02:00
yiyixuxu
655512e2cf components manager: change get -> search_models; add get_ids, get_components_by_ids, get_components_by_names 2025-06-28 08:35:50 +02:00
Sayak Paul
05e7a854d0 [lora] fix: lora unloading behvaiour (#11822)
* fix: lora unloading behvaiour

* fix

* update
2025-06-28 12:00:42 +05:30
Aryan
76ec3d1fee Support dynamically loading/unloading loras with group offloading (#11804)
* update

* add test

* address review comments

* update

* fixes

* change decorator order to fix tests

* try fix

* fight tests
2025-06-27 23:20:53 +05:30
Aryan
cdaf84a708 TorchAO compile + offloading tests (#11697)
* update

* update

* update

* update

* update

* user property instead
2025-06-27 18:31:57 +05:30
Sayak Paul
e8e44a510c [CI] disable onnx, mps, flax from the CI (#11803)
* disable onnx, mps, flax

* remove
2025-06-27 16:33:43 +05:30
yiyixuxu
f63d62e091 intermediates_inputs -> intermediate_inputs; component_manager -> components_manager, and more 2025-06-27 12:48:30 +02:00
Sayak Paul
21543de571 remove syncs before denoising in Kontext (#11818) 2025-06-27 15:57:55 +05:30
Aryan
d7dd924ece Kontext fixes (#11815)
fix
2025-06-26 13:03:44 -10:00
Sayak Paul
00f95b9755 Kontext training (#11813)
* support flux kontext

* make fix-copies

* add example

* add tests

* update docs

* update

* add note on integrity checker

* initial commit

* initial commit

* add readme section and fixes in the training script.

* add test

* rectify ckpt_id

* fix ckpt

* fixes

* change id

* update

* Update examples/dreambooth/train_dreambooth_lora_flux_kontext.py

Co-authored-by: Aryan <aryan@huggingface.co>

* Update examples/dreambooth/README_flux.md

---------

Co-authored-by: Aryan <aryan@huggingface.co>
Co-authored-by: linoytsaban <linoy@huggingface.co>
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com>
2025-06-26 19:31:42 +03:00
Aryan
eea76892e8 Flux Kontext (#11812)
* support flux kontext

* make fix-copies

* add example

* add tests

* update docs

* update

* add note on integrity checker

* make fix-copies issue

* add copied froms

* make style

* update repository ids

* more copied froms
2025-06-26 21:29:59 +05:30
yiyixuxu
7608d2eb9e style 2025-06-26 12:44:02 +02:00
yiyixuxu
449f299c63 move all the sequential pipelines & auto pipelines to the blocks_presets.py 2025-06-26 12:43:14 +02:00
yiyixuxu
84f4b27dfa modular_pipeline_presets.py -> modular_blocks_presets.py 2025-06-26 12:41:16 +02:00
yiyixuxu
9abac85f77 remove mapping file, move to preeset.py 2025-06-26 12:40:38 +02:00