Skip to content

Conversation

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

No description provided.

@a-r-r-o-w a-r-r-o-w requested a review from yiyixuxu April 12, 2025 05:25
self.caption_projection = nn.ModuleList(caption_projection)
self.max_seq = max_resolution[0] * max_resolution[1] // (patch_size * patch_size)

def expand_timesteps(self, timesteps, batch_size, device):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not needed because:

  • we already pass tensors from the pipeline
  • we already expand the shape based on batch_size in MPS friendly manner
  • we already pass torch.int64 timesteps

@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.

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@yiyixuxu
Copy link
Collaborator

@bot /style

@github-actions
Copy link
Contributor

Style fixes have been applied. View the workflow run here.

@a-r-r-o-w a-r-r-o-w merged commit 97e0ef4 into main Apr 13, 2025
2 checks passed
@a-r-r-o-w a-r-r-o-w deleted the refactor/hidream branch April 13, 2025 04:15
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