The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Support releases all unoccupied cached memory from XPU
藍+85CDd63705d9199b
diff --git a/execution.py b/execution.pyindex 79c9a3ac0..9d9ca5f68 100644--- a/execution.py+++ b/execution.py@@ -10,6 +10,8 @@ import gcimport torchimport nodes+from model_management import xpu_available+def get_input_data(inputs, class_def, unique_id, outputs={}, prompt={}, extra_data={}):valid_inputs = class_def.INPUT_TYPES()input_data_all = {}@@ -206,6 +208,8 @@ class PromptExecutor:if torch.version.cuda: #This seems to make things worse on ROCm so I only do it for cudatorch.cuda.empty_cache()torch.cuda.ipc_collect()+ elif xpu_available:+ torch.xpu.empty_cache()def validate_inputs(prompt, item):