-
Couldn't load subscription status.
- Fork 6.5k
Hidream refactoring follow ups #11299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Aryan <[email protected]>
Co-authored-by: Aryan <[email protected]>
| 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): |
There was a problem hiding this comment.
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
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
|
@bot /style |
|
Style fixes have been applied. View the workflow run here. |
No description provided.