Skip to content

Conversation

@a-r-r-o-w
Copy link
Contributor

@a-r-r-o-w a-r-r-o-w commented Jan 1, 2025

  • 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 a-r-r-o-w requested review from hlky and stevhliu January 1, 2025 21:44
):
super().__init__()
self.out_channels = out_channels or in_channels
self.inner_dim = self.config.num_attention_heads * self.config.attention_head_dim
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@HuggingFaceDocBuilderDev

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.

@yiyixuxu yiyixuxu merged commit 476795c into main Jan 2, 2025
15 checks passed
@yiyixuxu yiyixuxu deleted the flux-docstrings-update branch January 2, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants