[gguf] Refactor __torch_function__ to avoid unnecessary computation (… · sffej/huggingface-diffusers@3a6caba · GitHub
Skip to content

Commit 3a6caba

Browse files
anijain2305sayakpaulgithub-actions[bot]
authored
[gguf] Refactor __torch_function__ to avoid unnecessary computation (huggingface#11551)
* [gguf] Refactor __torch_function__ to avoid unnecessary computation This helps with torch.compile compilation lantency. Avoiding unnecessary computation should also lead to a slightly improved eager latency. * Apply style fixes --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4267d8f commit 3a6caba

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

‎src/diffusers/quantizers/gguf/utils.py‎

Lines changed: 15 additions & 12 deletions

0 commit comments

Comments
 (0)