Ishan Modi
f59df3bb8b
[Refactor] Minor Improvement for import utils ( #11161 )
...
* update
* update
* addressed PR comments
* update
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2025-04-21 09:56:55 -10:00
josephrocca
a00c73a5e1
Support different-length pos/neg prompts for FLUX.1-schnell variants like Chroma ( #11120 )
...
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2025-04-21 09:28:19 -10:00
OleehyO
0434db9a99
[cogview4][feat] Support attention mechanism with variable-length support and batch packing ( #11349 )
...
* [cogview4] Enhance attention mechanism with variable-length support and batch packing
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-21 09:27:55 -10:00
Aamir Nazir
aff574fb29
Add Serialized Type Name kwarg in Model Output ( #10502 )
...
* Update outputs.py
2025-04-21 08:45:28 -10:00
Ishan Modi
79ea8eb258
[BUG] fixes in kadinsky pipeline ( #11080 )
...
* bug fix kadinsky pipeline
2025-04-21 08:41:09 -10:00
Aryan
e7f3a73786
Fix Wan I2V prepare_latents dtype ( #11371 )
...
update
2025-04-21 08:18:50 -10:00
PromeAI
7a4a126db8
fix issue that training flux controlnet was unstable and validation r… ( #11373 )
...
* fix issue that training flux controlnet was unstable and validation results were unstable
* del unused code pieces, fix grammar
---------
Co-authored-by: Your Name <you@example.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2025-04-21 08:16:05 -10:00
Kenneth Gerald Hamilton
0dec414d5b
[train_dreambooth_lora_sdxl.py] Fix the LR Schedulers when num_train_epochs is passed in a distributed training env ( #11240 )
...
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com >
2025-04-21 12:51:03 +05:30
Linoy Tsaban
44eeba07b2
[Flux LoRAs] fix lr scheduler bug in distributed scenarios ( #11242 )
...
* add fix
* add fix
* Apply style fixes
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-21 10:08:45 +03:00
YiYi Xu
5873377a66
[Wan2.1-FLF2V] update conversion script ( #11365 )
...
update scheuler config in conversion sript
2025-04-18 14:08:44 -10:00
YiYi Xu
5a2e0f715c
update output for Hidream transformer ( #11366 )
...
up
2025-04-18 14:07:21 -10:00
Kazuki Yoda
ef47726e2d
Fix: StableDiffusionXLControlNetAdapterInpaintPipeline incorrectly inherited StableDiffusionLoraLoaderMixin ( #11357 )
...
Fix: Inherit `StableDiffusionXLLoraLoaderMixin`
`StableDiffusionXLControlNetAdapterInpaintPipeline`
used to incorrectly inherit
`StableDiffusionLoraLoaderMixin`
instead of `StableDiffusionXLLoraLoaderMixin`
2025-04-18 12:46:06 -10:00
YiYi Xu
0021bfa1e1
support Wan-FLF2V ( #11353 )
...
* update transformer
---------
Co-authored-by: Aryan <aryan@huggingface.co >
2025-04-18 10:27:50 -10:00
Marc Sun
bbd0c161b5
[BNB] Fix test_moving_to_cpu_throws_warning ( #11356 )
...
fix
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2025-04-18 09:44:51 +05:30
Yao Matrix
eef3d65954
enable 2 test cases on XPU ( #11332 )
...
* enable 2 test cases on XPU
Signed-off-by: YAO Matrix <matrix.yao@intel.com >
* Apply style fixes
---------
Signed-off-by: YAO Matrix <matrix.yao@intel.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2025-04-17 13:27:41 -10:00
Frank (Haofan) Wang
ee6ad51d96
Update controlnet_flux.py ( #11350 )
2025-04-17 10:05:01 -10:00
Sayak Paul
4397f59a37
[bitsandbytes] improve dtype mismatch handling for bnb + lora. ( #11270 )
...
* improve dtype mismatch handling for bnb + lora.
* add a test
* fix and updates
* update
2025-04-17 19:51:49 +05:30
YiYi Xu
056793295c
[Hi Dream] follow-up ( #11296 )
...
* add
2025-04-17 01:17:44 -10:00
Sayak Paul
29d2afbfe2
[LoRA] Propagate hotswap better ( #11333 )
...
* propagate hotswap to other load_lora_weights() methods.
* simplify documentations.
* updates
* propagate to load_lora_into_text_encoder.
* empty commit
2025-04-17 10:35:38 +05:30
Sayak Paul
b00a564dac
[docs] add note about use_duck_shape in auraflow docs. ( #11348 )
...
add note about use_duck_shape in auraflow docs.
2025-04-17 10:25:39 +05:30
Sayak Paul
efc9d68b15
[chore] fix lora docs utils ( #11338 )
...
fix lora docs utils
2025-04-17 09:25:53 +05:30
nPeppon
3e59d531d1
Fix wrong dtype argument name as torch_dtype ( #11346 )
2025-04-16 16:00:25 -04:00
Ishan Modi
d63e6fccb1
[BUG] fixed _toctree.yml alphabetical ordering ( #11277 )
...
update
2025-04-16 09:04:22 -07:00
Dhruv Nair
59f1b7b1c8
Hunyuan I2V fast tests fix ( #11341 )
...
* update
* update
2025-04-16 18:40:33 +05:30
Sayak Paul
ce1063acfa
[docs] add a snippet for compilation in the auraflow docs. ( #11327 )
...
* add a snippet for compilation in the auraflow docs.
* include speedups.
2025-04-16 11:12:09 +05:30
Sayak Paul
7212f35de2
[single file] enable telemetry for single file loading when using GGUF. ( #11284 )
...
* enable telemetry for single file loading when using GGUF.
* quality
2025-04-16 08:33:52 +05:30
Sayak Paul
3252d7ad11
unpin torch versions for onnx Dockerfile ( #11290 )
...
unpin torch versions for onnx
2025-04-16 08:16:38 +05:30
Dhruv Nair
b316104ddd
Fix Hunyuan I2V for transformers>4.47.1 ( #11293 )
...
* update
* update
2025-04-16 07:53:32 +05:30
Álvaro Somoza
d3b2699a7f
another fix for FlowMatchLCMScheduler forgotten import ( #11330 )
...
fix
2025-04-15 13:53:16 -10:00
Sayak Paul
4b868f14c1
post release 0.33.0 ( #11255 )
...
* post release
* update
* fix deprecations
* remaining
* update
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2025-04-15 06:50:08 -10:00
AstraliteHeart
b6156aafe9
Rewrite AuraFlowPatchEmbed.pe_selection_index_based_on_dim to be torch.compile compatible ( #11297 )
...
* Update pe_selection_index_based_on_dim
* Make pe_selection_index_based_on_dim work with torh.compile
* Fix AuraFlowTransformer2DModel's dpcstring default values
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2025-04-15 19:30:30 +05:30
Sayak Paul
7ecfe29160
[docs] fix hidream docstrings. ( #11325 )
...
* fix hidream docstrings.
* fix
* empty commit
2025-04-15 16:26:21 +05:30
Yao Matrix
7edace9a05
fix CPU offloading related fail cases on XPU ( #11288 )
...
* fix CPU offloading related fail cases on XPU
Signed-off-by: YAO Matrix <matrix.yao@intel.com >
* fix style
Signed-off-by: YAO Matrix <matrix.yao@intel.com >
* Apply style fixes
* trigger tests
* test_pipe_same_device_id_offload
---------
Signed-off-by: YAO Matrix <matrix.yao@intel.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: hlky <hlky@hlky.ac >
2025-04-15 09:06:56 +01:00
hlky
6e80d240d3
Fix vae.Decoder prev_output_channel ( #11280 )
2025-04-15 08:03:50 +01:00
Hameer Abbasi
9352a5ca56
[LoRA] Add LoRA support to AuraFlow ( #10216 )
...
* Add AuraFlowLoraLoaderMixin
* Add comments, remove qkv fusion
* Add Tests
* Add AuraFlowLoraLoaderMixin to documentation
* Add Suggested changes
* Change attention_kwargs->joint_attention_kwargs
* Rebasing derp.
* fix
* fix
* Quality fixes.
* make style
* `make fix-copies`
* `ruff check --fix`
* Attept 1 to fix tests.
* Attept 2 to fix tests.
* Attept 3 to fix tests.
* Address review comments.
* Rebasing derp.
* Get more tests passing by copying from Flux. Address review comments.
* `joint_attention_kwargs`->`attention_kwargs`
* Add `lora_scale` property for te LoRAs.
* Make test better.
* Remove useless property.
* Skip TE-only tests for AuraFlow.
* Support LoRA for non-CLIP TEs.
* Restore LoRA tests.
* Undo adding LoRA support for non-CLIP TEs.
* Undo support for TE in AuraFlow LoRA.
* `make fix-copies`
* Sync with upstream changes.
* Remove unneeded stuff.
* Mirror `Lumina2`.
* Skip for MPS.
* Address review comments.
* Remove duplicated code.
* Remove unnecessary code.
* Remove repeated docs.
* Propagate attention.
* Fix TE target modules.
* MPS fix for LoRA tests.
* Unrelated TE LoRA tests fix.
* Fix AuraFlow LoRA tests by applying to the right denoiser layers.
Co-authored-by: AstraliteHeart <81396681+AstraliteHeart@users.noreply.github.com >
* Apply style fixes
* empty commit
* Fix the repo consistency issues.
* Remove unrelated changes.
* Style.
* Fix `test_lora_fuse_nan`.
* fix quality issues.
* `pytest.xfail` -> `ValueError`.
* Add back `skip_mps`.
* Apply style fixes
* `make fix-copies`
---------
Co-authored-by: Warlord-K <warlordk28@gmail.com >
Co-authored-by: hlky <hlky@hlky.ac >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: AstraliteHeart <81396681+AstraliteHeart@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-15 10:41:28 +05:30
Sayak Paul
cefa28f449
[docs] Promote AutoModel usage ( #11300 )
...
* docs: promote the usage of automodel.
* bitsandbytes
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2025-04-15 09:25:40 +05:30
Beinsezii
8819cda6c0
Add skrample section to community_projects.md ( #11319 )
...
Update community_projects.md
https://github.com/huggingface/diffusers/discussions/11158#discussioncomment-12681691
2025-04-14 12:12:59 -10:00
hlky
dcf836cf47
Use float32 on mps or npu in transformer_hidream_image's rope ( #11316 )
2025-04-14 20:19:21 +01:00
Álvaro Somoza
1cb73cb19f
import for FlowMatchLCMScheduler ( #11318 )
...
* add
* fix-copies
2025-04-14 06:28:57 -10:00
Linoy Tsaban
ba6008abfe
[HiDream] code example ( #11317 )
2025-04-14 16:19:30 +01:00
Sayak Paul
a8f5134c11
[LoRA] support more SDXL loras. ( #11292 )
...
* support more SDXL loras.
* update
---------
Co-authored-by: hlky <hlky@hlky.ac >
2025-04-14 17:09:59 +05:30
Fanli Lin
c7f2d239fe
make KolorsPipelineFastTests::test_inference_batch_single_identical pass on XPU ( #11313 )
...
adjust diff
2025-04-14 11:02:02 +01:00
Yao Matrix
fa1ac50a66
make test_stable_diffusion_karras_sigmas pass on XPU ( #11310 )
...
Signed-off-by: Matrix Yao <matrix.yao@intel.com >
2025-04-14 08:15:38 +01:00
Yao Matrix
aa541b9fab
make KandinskyV22PipelineInpaintCombinedFastTests::test_float16_inference pass on XPU ( #11308 )
...
loose expected_max_diff from 5e-1 to 8e-1 to make
KandinskyV22PipelineInpaintCombinedFastTests::test_float16_inference
pass on XPU
Signed-off-by: Matrix Yao <matrix.yao@intel.com >
2025-04-14 07:49:20 +01:00
Ishan Modi
f1f38ffbee
[ControlNet] Adds controlnet for SanaTransformer ( #11040 )
...
* added controlnet for sana transformer
* improve code quality
* addressed PR comments
* bug fixes
* added test cases
* update
* added dummy objects
* addressed PR comments
* update
* Forcing update
* add to docs
* code quality
* addressed PR comments
* addressed PR comments
* update
* addressed PR comments
* added proper styling
* update
* Revert "added proper styling"
This reverts commit 344ee8a701 .
* manually ordered
* Apply suggestions from code review
---------
Co-authored-by: Aryan <contact.aryanvs@gmail.com >
2025-04-13 19:19:39 +05:30
Tuna Tuncer
36538e1135
Fix incorrect tile_latent_min_width calculations ( #11305 )
2025-04-13 18:21:50 +05:30
Aryan
97e0ef4db4
Hidream refactoring follow ups ( #11299 )
...
* HiDream Image
* update
* -einops
* py3.8
* fix -einops
* mixins, offload_seq, option_components
* docs
* Apply style fixes
* trigger tests
* Apply suggestions from code review
Co-authored-by: Aryan <contact.aryanvs@gmail.com >
* joint_attention_kwargs -> attention_kwargs, fixes
* fast tests
* -_init_weights
* style tests
* move reshape logic
* update slice 😴
* supports_dduf
* 🤷🏻♂️
* Update src/diffusers/models/transformers/transformer_hidream_image.py
Co-authored-by: Aryan <contact.aryanvs@gmail.com >
* address review comments
* update tests
* doc updates
* update
* Update src/diffusers/models/transformers/transformer_hidream_image.py
* Apply style fixes
---------
Co-authored-by: hlky <hlky@hlky.ac >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-13 09:45:19 +05:30
Adrien B
ed41db8525
Update autoencoderkl_allegro.md ( #11303 )
...
Correction typo
2025-04-13 09:41:30 +05:30
Nikita Starodubcev
ec0b2b3947
flow matching lcm scheduler ( #11170 )
...
* add flow matching lcm scheduler
* stochastic sampling
* upscaling for scale-wise generation
* Apply style fixes
* Apply suggestions from code review
Co-authored-by: hlky <hlky@hlky.ac >
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: hlky <hlky@hlky.ac >
2025-04-12 11:14:57 -10:00
hlky
0ef29355c9
HiDream Image ( #11231 )
...
* HiDream Image
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aryan <contact.aryanvs@gmail.com >
Co-authored-by: Aryan <aryan@huggingface.co >
2025-04-11 06:31:34 -10:00