diffusers
Update Flux docstrings
#10423
Merged

Update Flux docstrings #10423

yiyixuxu merged 1 commit into main from flux-docstrings-update
a-r-r-o-w
a-r-r-o-w260 days ago (edited 259 days ago)
  • Updates some docs and type hints
  • Removes the access of attributes via config in transformer init
  • torch.FloatTensor -> torch.Tensor because FloatTensor only exists for backward-compatibility reasons
a-r-r-o-w update
4ccc7329
a-r-r-o-w a-r-r-o-w requested a review from stevhliu stevhliu 260 days ago
a-r-r-o-w a-r-r-o-w requested a review from hlky hlky 260 days ago
a-r-r-o-w
a-r-r-o-w commented on 2025-01-01
src/diffusers/models/transformers/transformer_flux.py
259280 ):
260281 super().__init__()
261282 self.out_channels = out_channels or in_channels
262
self.inner_dim = self.config.num_attention_heads * self.config.attention_head_dim
a-r-r-o-w260 days ago

don't really prefer accessing readily available init attributes via the config. I think we were okay with doing this here

HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev259 days ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

hlky
hlky approved these changes on 2025-01-02
yiyixuxu yiyixuxu merged 476795c5 into main 259 days ago
yiyixuxu yiyixuxu deleted the flux-docstrings-update branch 259 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone