Aryan
bd4df2856a
[refactor] remove conv_cache from CogVideoX VAE ( #9524 )
...
* remove conv cache from the layer and pass as arg instead
* make style
* yiyi's cleaner implementation
Co-Authored-By: YiYi Xu <yixu310@gmail.com >
* sayak's compiled implementation
Co-Authored-By: Sayak Paul <spsayakpaul@gmail.com >
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-28 17:09:30 +05:30
Sayak Paul
11542431a5
[Core] fix variant-identification. ( #9253 )
...
* fix variant-idenitification.
* fix variant
* fix sharded variant checkpoint loading.
* Apply suggestions from code review
* fixes.
* more fixes.
* remove print.
* fixes
* fixes
* comments
* fixes
* apply suggestions.
* hub_utils.py
* fix test
* updates
* fixes
* fixes
* Apply suggestions from code review
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* updates.
* removep patch file.
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-28 09:57:31 +05:30
Sayak Paul
81cf3b2f15
[Tests] [LoRA] clean up the serialization stuff. ( #9512 )
...
* clean up the serialization stuff.
* better
2024-09-27 07:57:09 -10:00
PromeAI
534848c370
[examples] add train flux-controlnet scripts in example. ( #9324 )
...
* add train flux-controlnet scripts in example.
* fix error
* fix subfolder error
* fix preprocess error
* Update examples/controlnet/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update examples/controlnet/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* fix readme
* fix note error
* add some Tutorial for deepspeed
* fix some Format Error
* add dataset_path example
* remove print, add guidance_scale CLI, readable apply
* Update examples/controlnet/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* update,push_to_hub,save_weight_dtype,static method,clear_objs_and_retain_memory,report_to=wandb
* add push to hub in readme
* apply weighting schemes
* add note
* Update examples/controlnet/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* make code style and quality
* fix some unnoticed error
* make code style and quality
* add example controlnet in readme
* add test controlnet
* rm Remove duplicate notes
* Fix formatting errors
* add new control image
* add model cpu offload
* update help for adafactor
* make quality & style
* make quality and style
* rename flux_controlnet_model_name_or_path
* fix back src/diffusers/pipelines/flux/pipeline_flux_controlnet.py
* fix dtype error by pre calculate text emb
* rm image save
* quality fix
* fix test
* fix tiny flux train error
* change report to to tensorboard
* fix save name error when test
* Fix shrinking errors
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Your Name <you@example.com >
2024-09-27 13:31:47 +05:30
Sayak Paul
2daedc0ad3
[LoRA] make set_adapters() method more robust. ( #9535 )
...
* make set_adapters() method more robust.
* remove patch
* better and concise code.
* Update src/diffusers/loaders/lora_base.py
Co-authored-by: YiYi Xu <yixu310@gmail.com >
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-27 07:32:43 +05:30
Aryan
665c6b47a2
[bug] Precedence of operations in VAE should be slicing -> tiling ( #9342 )
...
* bugfix: precedence of operations should be slicing -> tiling
* fix typo
* fix another typo
* deprecate current implementation of tiled_encode and use new impl
* Update src/diffusers/models/autoencoders/autoencoder_kl.py
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* Update src/diffusers/models/autoencoders/autoencoder_kl.py
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-26 22:12:07 +05:30
Álvaro Somoza
066ea374c8
[Tests] Fix ChatGLMTokenizer ( #9536 )
...
fix
2024-09-25 22:10:15 -10:00
YiYi Xu
9cd37557d5
flux controlnet fix (control_modes batch & others) ( #9507 )
...
* flux controlnet mode to take into account batch size
* incorporate yiyixuxu's suggestions (cleaner logic) as well as clean up control mode handling for multi case
* fix
* fix use_guidance when controlnet is a multi and does not have config
---------
Co-authored-by: Christopher Beckham <christopher.j.beckham@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-09-25 19:09:54 -10:00
hlky
1c6ede9371
[Schedulers] Add beta sigmas / beta noise schedule ( #9509 )
...
Add beta sigmas / beta noise schedule
2024-09-25 13:30:32 -10:00
v2ray
aa3c46d99a
[Doc] Improved level of clarity for latents_to_rgb. ( #9529 )
...
Fixed latents_to_rgb doc.
Co-authored-by: Álvaro Somoza <asomoza@users.noreply.github.com >
2024-09-25 19:26:58 -03:00
YiYi Xu
c76e88405c
update get_parameter_dtype ( #9526 )
...
* up
* Update src/diffusers/models/modeling_utils.py
Co-authored-by: Aryan <aryan@huggingface.co >
---------
Co-authored-by: Aryan <aryan@huggingface.co >
2024-09-25 11:00:57 -10:00
Steven Liu
d9c969172d
[docs] Model sharding ( #9521 )
...
* flux shard
* feedback
2024-09-25 09:33:54 -07:00
Lee Penkman
065ce07ac3
Update community_projects.md ( #9266 )
2024-09-25 08:54:36 -07:00
Sayak Paul
6ca5a58e43
[Community Pipeline] Batched implementation of Flux with CFG ( #9513 )
...
* batched implementation of flux cfg.
* style.
* readme
* remove comments.
2024-09-25 15:25:15 +05:30
hlky
b52684c3ed
Add exponential sigmas to other schedulers and update docs ( #9518 )
2024-09-24 14:50:12 -10:00
YiYi Xu
bac8a2412d
a few fix for SingleFile tests ( #9522 )
...
* update sd15 repo
* update more
2024-09-24 13:36:53 -10:00
Sayak Paul
28f9d84549
[CI] allow faster downloads from the Hub in CI. ( #9478 )
...
* allow faster downloads from the Hub in CI.
* HF_HUB_ENABLE_HF_TRANSFER: 1
* empty
* empty
* remove ENV HF_HUB_ENABLE_HF_TRANSFER=1.
* empty
2024-09-24 09:42:11 +05:30
LukeLin
2b5bc5be0b
[Doc] Fix path and and also import imageio ( #9506 )
...
* Fix bug
* import imageio
2024-09-23 16:47:34 -07:00
captainzz
bab17789b5
fix bugs for sd3 controlnet training ( #9489 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-23 13:40:44 -10:00
hlky
19547a5734
Add Noise Schedule/Schedule Type to Schedulers Overview documentation ( #9504 )
...
* Add Noise Schedule/Schedule Type to Schedulers Overview docs
* Update docs/source/en/api/schedulers/overview.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-09-23 16:39:55 -07:00
Seongbin Lim
3e69e241f7
Allow DDPMPipeline half precision ( #9222 )
...
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-23 13:28:14 -10:00
hlky
65f9439b56
[Schedulers] Add exponential sigmas / exponential noise schedule ( #9499 )
...
* exponential sigmas
* Apply suggestions from code review
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* make style
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-23 13:12:51 -10:00
pibbo88
00f5b41862
Fix the bug of sd3 controlnet training when using gradient checkpointing. ( #9498 )
...
Fix the bug of sd3 controlnet training when using gradient_checkpointing. Refer to issue #9496
2024-09-23 12:30:24 -10:00
M Saqlain
14f6464bef
[Tests] Reduce the model size in the lumina test ( #8985 )
...
* Reduced model size for lumina-tests
* Handled failing tests
2024-09-23 20:35:50 +05:30
Sayak Paul
ba5af5aebb
[Cog] some minor fixes and nits ( #9466 )
...
* fix positional arguments in check_inputs().
* add video and latetns to check_inputs().
* prep latents_in_channels.
* quality
* multiple fixes.
* fix
2024-09-23 11:27:05 +05:30
Sayak Paul
aa73072f1f
[CI] fix nightly model tests ( #9483 )
...
* check if default attn procs fix it.
* print
* print
* replace
* style./
* replace revision with variant.
* replace with stable-diffusion-v1-5/stable-diffusion-inpainting.
* replace with stable-diffusion-v1-5/stable-diffusion-v1-5.
* fix
2024-09-21 07:44:47 +05:30
Aryan
e5d0a328d6
[refactor] LoRA tests ( #9481 )
...
* refactor scheduler class usage
* reorder to make tests more readable
* remove pipeline specific checks and skip tests directly
* rewrite denoiser conditions cleaner
* bump tolerance for cog test
2024-09-21 07:10:36 +05:30
Vladimir Mandic
14a1b86fc7
Several fixes to Flux ControlNet pipelines ( #9472 )
...
* fix flux controlnet pipelines
---------
Co-authored-by: yiyixuxu <yixu310@gmail.com >
2024-09-19 15:49:36 -10:00
Aryan
2b443a5d62
[training] CogVideoX Lora ( #9302 )
...
* cogvideox lora training draft
* update
* update
* update
* update
* update
* make fix-copies
* update
* update
* apply suggestions from review
* apply suggestions from reveiw
* fix typo
* Update examples/cogvideo/train_cogvideox_lora.py
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* fix lora alpha
* use correct lora scaling for final test pipeline
* Update examples/cogvideo/train_cogvideox_lora.py
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* apply suggestions from review; prodigy optimizer
YiYi Xu <yixu310@gmail.com >
* add tests
* make style
* add README
* update
* update
* make style
* fix
* update
* add test skeleton
* revert lora utils changes
* add cleaner modifications to lora testing utils
* update lora tests
* deepspeed stuff
* add requirements.txt
* deepspeed refactor
* add lora stuff to img2vid pipeline to fix tests
* fight tests
* add co-authors
Co-Authored-By: Fu-Yun Wang <1697256461@qq.com >
Co-Authored-By: zR <2448370773@qq.com >
* fight lora runner tests
* import Dummy optim and scheduler only wheh required
* update docs
* add coauthors
Co-Authored-By: Fu-Yun Wang <1697256461@qq.com >
* remove option to train text encoder
Co-Authored-By: bghira <bghira@users.github.com >
* update tests
* fight more tests
* update
* fix vid2vid
* fix typo
* remove lora tests; todo in follow-up PR
* undo img2vid changes
* remove text encoder related changes in lora loader mixin
* Revert "remove text encoder related changes in lora loader mixin"
This reverts commit f8a8444487 .
* update
* round 1 of fighting tests
* round 2 of fighting tests
* fix copied from comment
* fix typo in lora test
* update styling
Co-Authored-By: YiYi Xu <yixu310@gmail.com >
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: zR <2448370773@qq.com >
Co-authored-by: Fu-Yun Wang <1697256461@qq.com >
Co-authored-by: bghira <bghira@users.github.com >
2024-09-19 14:37:57 +05:30
Sayak Paul
d13b0d63c0
[Flux] add lora integration tests. ( #9353 )
...
* add lora integration tests.
* internal note
* add a skip marker.
2024-09-19 09:21:28 +05:30
Anatoly Belikov
5d476f57c5
adapt masked im2im pipeline for SDXL ( #7790 )
...
* adapt masked im2im pipeline for SDXL
* usage for masked im2im stable diffusion XL pipeline
* style
* style
* style
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-17 16:55:49 -10:00
Aryan
da18fbd54c
set max_shard_size to None for pipeline save_pretrained ( #9447 )
...
* update default max_shard_size
* add None check to fix tests
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-17 10:15:18 -10:00
Aryan
ba06124e4a
Remove CogVideoX mentions from single file docs; Test updates ( #9444 )
...
* remove mentions from single file
* update tests
* update
2024-09-17 10:05:45 -10:00
Subho Ghosh
bb1b0fa1f9
Feature flux controlnet img2img and inpaint pipeline ( #9408 )
...
* Implemented FLUX controlnet support to Img2Img pipeline
2024-09-17 09:43:54 -10:00
Linoy Tsaban
8fcfb2a456
[Flux with CFG] add flux pipeline with cfg support ( #9445 )
...
* true_cfg
* add check negative prompt/embeds inputs
* move to community pipelines
* move to community pipelines
* revert true cfg changes to the orig pipline
* style
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-16 12:09:34 -10:00
Sayak Paul
5440cbd34e
[CI] updates to the CI report naming, and accelerate installation ( #9429 )
...
* chore: id accordingly to avoid duplicates.
* update properly.
* updates
* updates
* empty
* updates
* changing order helps?
2024-09-16 11:29:07 -10:00
suzukimain
b52119ae92
[docs] Replace runwayml/stable-diffusion-v1-5 with Lykon/dreamshaper-8 ( #9428 )
...
* [docs] Replace runwayml/stable-diffusion-v1-5 with Lykon/dreamshaper-8
Updated documentation as runwayml/stable-diffusion-v1-5 has been removed from Huggingface.
* Update docs/source/en/using-diffusers/inpaint.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Replace with stable-diffusion-v1-5/stable-diffusion-v1-5
* Update inpaint.md
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-09-16 10:18:45 -07:00
Yuxuan.Zhang
8336405e50
CogVideoX-5b-I2V support ( #9418 )
...
* draft Init
* draft
* vae encode image
* make style
* image latents preparation
* remove image encoder from conversion script
* fix minor bugs
* make pipeline work
* make style
* remove debug prints
* fix imports
* update example
* make fix-copies
* add fast tests
* fix import
* update vae
* update docs
* update image link
* apply suggestions from review
* apply suggestions from review
* add slow test
* make use of learned positional embeddings
* apply suggestions from review
* doc change
* Update convert_cogvideox_to_diffusers.py
* make style
* final changes
* make style
* fix tests
---------
Co-authored-by: Aryan <aryan@huggingface.co >
2024-09-16 14:46:24 +05:30
Sayak Paul
2171f77ac5
[CI] make runner_type restricted. ( #9441 )
...
make runner_type restricted.
2024-09-16 12:09:31 +05:30
Aryan
2454b98af4
Allow max shard size to be specified when saving pipeline ( #9440 )
...
allow max shard size to be specified when saving pipeline
2024-09-16 08:36:07 +05:30
Linoy Tsaban
37e3603c4a
[Flux Dreambooth lora] add latent caching ( #9160 )
...
* add ostris trainer to README & add cache latents of vae
* add ostris trainer to README & add cache latents of vae
* style
* readme
* add test for latent caching
* add ostris noise scheduler
9ee1ef2a0a/toolkit/samplers/custom_flowmatch_sampler.py (L95)
* style
* fix import
* style
* fix tests
* style
* --change upcasting of transformer?
* update readme according to main
* keep only latent caching
* add configurable param for final saving of trained layers- --upcast_before_saving
* style
* Update examples/dreambooth/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update examples/dreambooth/README_flux.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* use clear_objs_and_retain_memory from utilities
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-09-15 15:30:31 +03:00
Leo Jiang
e2ead7cdcc
Fix the issue on sd3 dreambooth w./w.t. lora training ( #9419 )
...
* Fix dtype error
* [bugfix] Fixed the issue on sd3 dreambooth training
* [bugfix] Fixed the issue on sd3 dreambooth training
---------
Co-authored-by: 蒋硕 <jiangshuo9@h-partners.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-09-14 16:29:38 +05:30
Benjamin Bossan
48e36353d8
MAINT Permission for GH token in stale.yml ( #9427 )
...
* MAINT Permission for GH token in stale.yml
See https://github.com/huggingface/peft/pull/2061 for the equivalent PR
in PEFT.
This restores the functionality of the stale bot after permissions for
the token have been limited. The action still shows errors for PEFT but
the bot appears to work fine.
* Also add write permissions for PRs
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-09-13 21:00:57 +05:30
Sayak Paul
6dc6486565
[LoRA] fix adapter movement when using DoRA. ( #9411 )
...
fix adapter movement when using DoRA.
2024-09-13 07:31:53 +05:30
Dhruv Nair
1e8cf2763d
[CI] Nightly Test Updates ( #9380 )
...
* update
* update
* update
* update
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-12 20:21:28 +05:30
Sayak Paul
6cf8d98ce1
[CI] update artifact uploader version ( #9426 )
...
update artifact uploader version
2024-09-12 19:26:09 +05:30
Juan Acevedo
45aa8bb187
Ptxla sd training ( #9381 )
...
* enable pxla training of stable diffusion 2.x models.
* run linter/style and run pipeline test for stable diffusion and fix issues.
* update xla libraries
* fix read me newline.
* move files to research folder.
* update per comments.
* rename readme.
---------
Co-authored-by: Juan Acevedo <jfacevedo@google.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-09-12 08:35:06 +05:30
Aryan
5e1427a7da
[docs] AnimateDiff FreeNoise ( #9414 )
...
* update docs
* apply suggestions from review
* Update docs/source/en/api/pipelines/animatediff.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/animatediff.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/animatediff.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* apply suggestions from review
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-09-11 12:59:58 -07:00
asfiyab-nvidia
b9e2f886cd
FluxPosEmbed: Remove Squeeze No-op ( #9409 )
...
Remove Squeeze op
Signed-off-by: Asfiya Baig <asfiyab@nvidia.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-10 19:12:36 -10:00
dianyo
b19827f6b4
Migrate the BrownianTree to BrownianInterval in DPM solver ( #9335 )
...
migrate the BrownianTree to BrownianInterval
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-09-10 18:29:15 -10:00