diffusers
Add Photon model and pipeline support
#12456
Merged

Add Photon model and pipeline support #12456

sayakpaul merged 52 commits into huggingface:main from Photoroom:photon
DavidBert
DavidBert
DavidBert commented on 2025-10-09
DavidBert
DavidBert commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
sayakpaul
sayakpaul commented on 2025-10-09
DavidBert DavidBert force pushed from fafd7747 to 33961430 64 days ago
sayakpaul
sayakpaul commented on 2025-10-13
DavidBert DavidBert force pushed from 52b585fe to 4aeccfea 59 days ago
DavidBert DavidBert force pushed from 4aeccfea to ff28f65f 59 days ago
DavidBert DavidBert requested a review from sayakpaul sayakpaul 59 days ago
sayakpaul sayakpaul removed review request from sayakpaul sayakpaul 59 days ago
sayakpaul sayakpaul requested a review from dg845 dg845 59 days ago
sayakpaul sayakpaul requested a review from stevhliu stevhliu 59 days ago
DavidBert DavidBert requested a review from sayakpaul sayakpaul 59 days ago
stevhliu
stevhliu commented on 2025-10-15
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
dg845
dg845 commented on 2025-10-16
DavidBert
DavidBert DavidBert requested a review from stevhliu stevhliu 58 days ago
DavidBert DavidBert requested a review from dg845 dg845 58 days ago
stevhliu
stevhliu approved these changes on 2025-10-16
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
DavidBert DavidBert force pushed from 141337cd to bef08450 57 days ago
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
dg845
dg845 commented on 2025-10-17
DavidBert
dg845
dg845 commented on 2025-10-20
DavidBert DavidBert requested a review from dg845 dg845 54 days ago
DavidBert
dg845
DavidBert
HuggingFaceDocBuilderDev
dg845
dg845 commented on 2025-10-20
dg845
dg845 approved these changes on 2025-10-21
dg845
sayakpaul
dg845
dg845 commented on 2025-10-21
dg845
dg845 commented on 2025-10-21
dg845
dg845 commented on 2025-10-21
DavidBert DavidBert force pushed from f105dff7 to 8de7b924 53 days ago
sayakpaul
sayakpaul
Add Photon model and pipeline support
c46a6491
just store the T5Gemma encoder
8e78a99c
enhance_vae_properties if vae is provided only
3aeada78
remove autocast for text encoder forwad
d5c32727
david-PHR BF16 example
234c5e35
conditioned CFG
49528a4b
remove enhance vae and use vae.config directly when possible
0a4183cf
move PhotonAttnProcessor2_0 in transformer_photon
7f1199b0
remove einops dependency and now inherits from AttentionMixin
cabde58b
unify the structure of the forward block
bca1f7ce
update doc
cdfa6361
update doc
03a7df3a
fix T5Gemma loading from hub
c2488359
fix timestep shift
94f469a3
remove lora support from doc
ec2381e0
DavidBert Rename EmbedND for PhotoEmbedND
b445016b
DavidBert remove modulation dataclass
7ae1af97
DavidBert put _attn_forward and _ffn_forward logic in PhotonBlock's forward
a8216f77
DavidBert renam LastLayer for FinalLayer
73261c8e
DavidBert remove lora related code
f8f45fdc
DavidBert rename vae_spatial_compression_ratio for vae_scale_factor
e65de5fc
DavidBert support prompt_embeds in call
b765031f
DavidBert move xattention conditionning out computation out of the denoising loop
87cd6d26
DavidBert add negative prompts
1b61bb26
DavidBert Use _import_structure for lazy loading
9ca25fa3
DavidBert make quality + style
98ed7477
update doc
cdfa6361
fix T5Gemma loading from hub
c2488359
remove lora support from doc
ec2381e0
DavidBert Rename EmbedND for PhotoEmbedND
b445016b
DavidBert put _attn_forward and _ffn_forward logic in PhotonBlock's forward
a8216f77
DavidBert remove lora related code
f8f45fdc
DavidBert rename vae_spatial_compression_ratio for vae_scale_factor
e65de5fc
DavidBert support prompt_embeds in call
b765031f
DavidBert Use _import_structure for lazy loading
9ca25fa3
DavidBert built-in RMSNorm
cd780320
DavidBert parameter names match the standard diffusers conventions
c92ee55b
DavidBert Update docs/source/en/api/pipelines/photon.md
d219e8cf
DavidBert Update docs/source/en/api/pipelines/photon.md
f7f516fa
DavidBert Update docs/source/en/api/pipelines/photon.md
fb98a3ac
DavidBert Update docs/source/en/api/pipelines/photon.md
f8913230
DavidBert naming changes
23392b02
DavidBert make fix copy
1f88313a
DavidBert Update docs/source/en/api/pipelines/photon.md
167030cd
DavidBert Add PhotonTransformer2DModel to TYPE_CHECKING imports
8b551d24
DavidBert make fix-copies
7f6bb8a4
DavidBert Use Tuple instead of tuple
42646066
DavidBert restrict the version of transformers
756fe953
DavidBert Update tests/pipelines/photon/test_pipeline_photon.py
4402b41c
DavidBert Update tests/pipelines/photon/test_pipeline_photon.py
3b953ff0
DavidBert change | for Optional
fda1f782
sayakpaul fix nits.
3e2d292e
DavidBert DavidBert force pushed from 90e79de2 to 3e2d292e 53 days ago
DavidBert use typing Dict
803d0d1e
DavidBert
sayakpaul
DavidBert
sayakpaul sayakpaul merged cefc2cf8 into main 53 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone