Skip to content
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

Flux torch compile fix #5082

Merged
merged 1 commit into from
Sep 28, 2024
Merged

Conversation

city96
Copy link
Contributor

@city96 city96 commented Sep 27, 2024

This fixes torch.compile with GGUF on flux1. (Also might fix bf16 but I can't test on volta). Based on a quick test the results are 1:1.
Ref: city96/ComfyUI-GGUF#118

  • Changed [...] to [:, :] since we know how many dimensions img_ids has.
  • Removed the addition since img_ids is zeros anyway
  • Changed [None] to unsqueeze

@comfyanonymous comfyanonymous merged commit 8733191 into comfyanonymous:master Sep 28, 2024
5 checks passed
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.

2 participants