Logo
Explore Help
Register Sign In
zlei6/ComfyUI
1
0
Fork 0
You've already forked ComfyUI
mirror of https://github.com/Comfy-Org/ComfyUI.git synced 2026-08-12 04:43:45 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
d202c2ba7404affd58a2199aeb514b3cc48e0ef3
ComfyUI/comfy_api/torch_helpers/__init__.py

6 lines
101 B
Python
Raw Normal View History

Make torch.compile LoRA/key-compatible (#8213) * Make torch compile node use wrapper instead of object_patch for the entire diffusion_models object, allowing key assotiations on diffusion_models to not break (loras, getting attributes, etc.) * Moved torch compile code into comfy_api so it can be used by custom nodes with a degree of confidence * Refactor set_torch_compile_wrapper to support a list of keys instead of just diffusion_model, as well as additional torch.compile args * remove unused import * Moved torch compile kwargs to be stored in model_options instead of attachments; attachments are more intended for things to be 'persisted', AKA not deepcopied * Add some comments * Remove random line of code, not sure how it got there
2025-05-21 01:56:56 -07:00
from .torch_compile import set_torch_compile_wrapper
__all__ = [
"set_torch_compile_wrapper",
]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 614ms Template: 23ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API