Comfy-Org / Comfy-Org/ComfyUI

Save Checkpoint Unable to save properly

Open
#14,082 1 comment 2 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Save Checkpoint Save completed

### Actual Behavior

Error saving And saving any model will result in an error

Image

### Steps to Reproduce

Image

### Debug Logs

```powershell
TypeError: empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

# ComfyUI Error Report
## Error Details
- **Node ID:** 813
- **Node Type:** CheckpointSave
- **Exception Type:** TypeError
- **Exception Message:** TypeError: empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

## Stack Trace

File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 248, in save
save_checkpoint(model, clip=clip, vae=vae, filename_prefix=filename_prefix, output_dir=self.output_dir, prompt=prompt, extra_pnginfo=extra_pnginfo)

File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 227, in save_checkpoint
comfy.sd.save_checkpoint(output_checkpoint, model, clip, vae, clip_vision, metadata=metadata, extra_keys=extra_keys)

File "D:\112\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1965, in save_checkpoint
sd = model.state_dict_for_saving(clip_sd, vae_sd, clip_vision_sd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_patcher.py", line 1535, in state_dict_for_saving
return self.model.state_dict_for_saving(unet_state_dict, clip_state_dict=clip_state_dict, vae_state_dict=vae_state_dict, clip_vision_state_dict=clip_vision_state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_base.py", line 361, in state_dict_for_saving
extra_sds.append(self.model_config.process_clip_state_dict_for_saving(clip_state_dict))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy\supported_models.py", line 246, in process_clip_state_dict_for_saving
state_dict_g = diffusers_convert.convert_text_enc_state_dict_v20(state_dict, "clip_g")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 177, in convert_text_enc_state_dict_v20
new_state_dict[relabelled_key + ".in_proj_weight"] = cat_tensors(tensors)
^^^^^^^^^^^^^^^^^^^^

File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 125, in cat_tensors
out = torch.empty(shape, device=tensors[0].device, dtype=tensors[0].dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

## System Information
- **ComfyUI Version:** 0.22.2
- **Arguments:** D:\112\ComfyUI\resources\ComfyUI\main.py --user-directory D:\122\user --input-directory D:\122\input --output-directory D:\122\output --front-end-root D:\112\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app --base-directory D:\122 --database-url sqlite:///D:/122/user/comfyui.db --extra-model-paths-config C:\Users\Administrator\AppData\Roaming\ComfyUI\extra_models_config.yaml --log-stdout --listen 127.0.0.1 --port 8000 --enable-manager
- **OS:** win32
- **Python Version:** 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.10.0+cu130
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 12884377600
- **VRAM Free:** 11791237120
- **Torch VRAM Total:** 0
- **Torch VRAM Free:** 0

## Logs

2026-05-24T04:19:26.889108 - setup plugin alembic.autogenerate.schemas
2026-05-24T04:19:26.889108 - setup plugin alembic.autogenerate.tables
2026-05-24T04:19:26.889108 - setup plugin alembic.autogenerate.types
2026-05-24T04:19:26.890105 - setup plugin alembic.autogenerate.constraints
2026-05-24T04:19:26.890105 - setup plugin alembic.autogenerate.defaults
2026-05-24T04:19:26.890105 - setup plugin alembic.autogenerate.comments
2026-05-24T04:19:27.230313 - Adding extra search path custom_nodes D:\122\custom_nodes
2026-05-24T04:19:27.230313 - Adding extra search path download_model_base D:\122\models
2026-05-24T04:19:27.230313 - Adding extra search path custom_nodes D:\112\ComfyUI\resources\ComfyUI\custom_nodes
2026-05-24T04:19:27.230313 - Setting output directory to: D:\122\output
2026-05-24T04:19:27.230313 - Setting input directory to: D:\122\input
2026-05-24T04:19:27.230313 - Setting user directory to: D:\122\user
2026-05-24T04:19:27.659513 - [START] Security scan2026-05-24T04:19:27.659513 -
2026-05-24T04:19:29.279999 - [DONE] Security scan2026-05-24T04:19:29.279999 -
2026-05-24T04:19:29.281989 - ** ComfyUI startup time:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - 2026-05-24 04:19:29.2802026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** Platform:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - Windows2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** Python version:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** Python executable:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\122\.venv\Scripts\python.exe2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** ComfyUI Path:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\112\ComfyUI\resources\ComfyUI2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** ComfyUI Base Folder Path:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\112\ComfyUI\resources\ComfyUI2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** User directory:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\122\user2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** ComfyUI-Manager config path:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\122\user\__manager\config.ini2026-05-24T04:19:29.281989 -
2026-05-24T04:19:29.281989 - ** Log path:2026-05-24T04:19:29.281989 - 2026-05-24T04:19:29.281989 - D:\122\user\comfyui.log2026-05-24T04:19:29.281989 -
2026-05-24T04:19:31.069409 - [ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
2026-05-24T04:19:31.069409 - [PRE] ComfyUI-Manager
2026-05-24T04:19:32.628055 - D:\122\.venv\Lib\site-packages\torch\cuda\__init__.py:65: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
import pynvml # type: ignore[import]
2026-05-24T04:19:35.493021 - Found comfy_kitchen backend cuda: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_nvfp4']}
2026-05-24T04:19:35.493021 - Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
2026-05-24T04:19:35.493021 - Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4']}
2026-05-24T04:19:35.504854 - Checkpoint files will always be loaded safely.
2026-05-24T04:19:35.617137 - Total VRAM 12288 MB, total RAM 32600 MB
2026-05-24T04:19:35.617137 - pytorch version: 2.10.0+cu130
2026-05-24T04:19:35.618133 - Set vram state to: NORMAL_VRAM
2026-05-24T04:19:35.618133 - Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
2026-05-24T04:19:35.636304 - Using async weight offloading with 2 streams
2026-05-24T04:19:35.639297 - Enabled pinned memory 13040.0
2026-05-24T04:19:35.644940 - working around nvidia conv3d memory bug.
2026-05-24T04:19:36.055261 - Using pytorch attention
2026-05-24T04:19:41.752370 - DynamicVRAM support detected and enabled
2026-05-24T04:19:41.752370 - Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
2026-05-24T04:19:41.752370 - ComfyUI version: 0.22.2
2026-05-24T04:19:41.753367 - comfy-aimdo version: 0.3.0
2026-05-24T04:19:41.755362 - comfy-kitchen version: 0.2.8
2026-05-24T04:19:41.757356 - [Prompt Server] web root: D:\112\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app
2026-05-24T04:19:41.757356 - Asset seeder disabled
2026-05-24T04:19:41.758354 - [START] ComfyUI-Manager
2026-05-24T04:19:42.022479 - [ComfyUI-Manager] Using GitPython backend2026-05-24T04:19:42.022479 -
2026-05-24T04:19:42.068800 - [ComfyUI-Manager] network_mode: public
2026-05-24T04:19:42.090815 - [ComfyUI-Manager] The matrix sharing feature has been disabled because the `matrix-nio` dependency is not installed.
To use this feature, please run the following command:
D:\122\.venv\Scripts\python.exe -m pip install matrix-nio

2026-05-24T04:19:43.912173 - ### Loading: ComfyUI-Impact-Pack (V8.28.2)
2026-05-24T04:19:44.145648 - [Impact Pack] Wildcard total size (0.00 MB) is within cache limit (50.00 MB). Using full cache mode.
2026-05-24T04:19:44.147647 - [Impact Pack] Wildcards loading done.
2026-05-24T04:19:44.154624 - Blocked by policy: D:\122\custom_nodes\ComfyUI-Manager-main
2026-05-24T04:19:44.480698 - [TIPO-KGen]-|04:19:44|-WARNING: Llama-cpp-python cannot be imported
2026-05-24T04:19:44.498117 - Traceback (most recent call last):
File "D:\122\.venv\Lib\site-packages\llama_cpp\_ctypes_extensions.py", line 67, in load_shared_library
return ctypes.CDLL(str(lib_path), **cdll_args) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\ctypes\__init__.py", line 379, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'D:\122\.venv\Lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\112\ComfyUI\resources\ComfyUI\nodes.py", line 2204, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "D:\122\custom_nodes\z-tipo-extension-main\__init__.py", line 1, in
from .nodes.tipo import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "D:\122\custom_nodes\z-tipo-extension-main\nodes\tipo.py", line 16, in
import kgen.executor.tipo as tipo
File "D:\122\.venv\Lib\site-packages\kgen\executor\tipo.py", line 5, in
from ..generate import generate
File "D:\122\.venv\Lib\site-packages\kgen\generate.py", line 11, in
from llama_cpp import Llama
File "D:\122\.venv\Lib\site-packages\llama_cpp\__init__.py", line 1, in
from .llama_cpp import *
File "D:\122\.venv\Lib\site-packages\llama_cpp\llama_cpp.py", line 38, in
_lib = load_shared_library(_lib_base_name, _base_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\122\.venv\Lib\site-packages\llama_cpp\_ctypes_extensions.py", line 69, in load_shared_library
raise RuntimeError(f"Failed to load shared library '{lib_path}': {e}")
RuntimeError: Failed to load shared library 'D:\122\.venv\Lib\site-packages\llama_cpp\lib\llama.dll': Could not find module 'D:\122\.venv\Lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.

2026-05-24T04:19:44.498117 - Cannot import D:\122\custom_nodes\z-tipo-extension-main module for custom nodes: Failed to load shared library 'D:\122\.venv\Lib\site-packages\llama_cpp\lib\llama.dll': Could not find module 'D:\122\.venv\Lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.
2026-05-24T04:19:44.500114 -
Import times for custom nodes:
2026-05-24T04:19:44.500114 - 0.0 seconds: D:\112\ComfyUI\resources\ComfyUI\custom_nodes\websocket_image_save.py
2026-05-24T04:19:44.500114 - 0.0 seconds: D:\122\custom_nodes\sdxl_prompt_styler-main
2026-05-24T04:19:44.500114 - 0.0 seconds: D:\122\custom_nodes\ComfyUI-DD-Translation-main
2026-05-24T04:19:44.500114 - 0.2 seconds: D:\122\custom_nodes\ComfyUI-Impact-Pack-Main
2026-05-24T04:19:44.500114 - 0.3 seconds (IMPORT FAILED): D:\122\custom_nodes\z-tipo-extension-main
2026-05-24T04:19:44.500114 -
2026-05-24T04:19:44.514613 - Context impl SQLiteImpl.
2026-05-24T04:19:44.514613 - Will assume non-transactional DDL.
2026-05-24T04:19:44.726386 - Starting server

2026-05-24T04:19:44.727383 - To see the GUI go to: http://127.0.0.1:8000
2026-05-24T04:19:52.009278 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-24T04:19:52.010275 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/clipspace.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-24T04:19:53.309655 - [ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
2026-05-24T04:19:53.412368 - FETCH DATA from: D:\122\.venv\Lib\site-packages\comfyui_manager\custom-node-list.json2026-05-24T04:19:53.412368 - 2026-05-24T04:19:53.427331 - [DONE]2026-05-24T04:19:53.427331 -
2026-05-24T04:20:43.379822 - got prompt
2026-05-24T04:20:43.380819 - invalid prompt: {'type': 'missing_node_type', 'message': "Node 'ID #624:235' has no class_type. The workflow may be corrupted or a custom node is missing.", 'details': "Node ID '#624:235'", 'extra_info': {'node_id': '624:235', 'class_type': None, 'node_title': None}}
2026-05-24T04:20:59.697837 - got prompt
2026-05-24T04:20:59.713793 - Using pytorch attention in VAE
2026-05-24T04:20:59.714792 - Using pytorch attention in VAE
2026-05-24T04:20:59.805535 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-05-24T04:20:59.952123 - model weight dtype torch.float16, manual cast: None
2026-05-24T04:20:59.963092 - model_type EPS
2026-05-24T04:21:00.003979 - Using pytorch attention in VAE
2026-05-24T04:21:00.004976 - Using pytorch attention in VAE
2026-05-24T04:21:00.086745 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-05-24T04:21:00.292169 - CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2026-05-24T04:21:00.431777 - model weight dtype torch.float16, manual cast: None
2026-05-24T04:21:00.438758 - model_type EPS
2026-05-24T04:21:00.479643 - Using pytorch attention in VAE
2026-05-24T04:21:00.481638 - Using pytorch attention in VAE
2026-05-24T04:21:00.560416 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-05-24T04:21:00.771824 - CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2026-05-24T04:21:01.055037 - model weight dtype torch.float16, manual cast: None
2026-05-24T04:21:01.060021 - model_type EPS
2026-05-24T04:21:01.091905 - Using pytorch attention in VAE
2026-05-24T04:21:01.092899 - Using pytorch attention in VAE
2026-05-24T04:21:01.171679 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-05-24T04:21:01.379095 - CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2026-05-24T04:21:18.860228 - Requested to load SDXLClipModel
2026-05-24T04:21:18.919018 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:21:18.930987 - Requested to load SDXL
2026-05-24T04:21:19.007774 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:21:19.078575 - Model SDXL prepared for dynamic VRAM loading. 4897MB Staged. 1680 patches attached.
2026-05-24T04:21:19.108492 - !!! Exception during processing !!! empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:21:19.114476 - Traceback (most recent call last):
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 248, in save
save_checkpoint(model, clip=clip, vae=vae, filename_prefix=filename_prefix, output_dir=self.output_dir, prompt=prompt, extra_pnginfo=extra_pnginfo)
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 227, in save_checkpoint
comfy.sd.save_checkpoint(output_checkpoint, model, clip, vae, clip_vision, metadata=metadata, extra_keys=extra_keys)
File "D:\112\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1965, in save_checkpoint
sd = model.state_dict_for_saving(clip_sd, vae_sd, clip_vision_sd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_patcher.py", line 1535, in state_dict_for_saving
return self.model.state_dict_for_saving(unet_state_dict, clip_state_dict=clip_state_dict, vae_state_dict=vae_state_dict, clip_vision_state_dict=clip_vision_state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_base.py", line 361, in state_dict_for_saving
extra_sds.append(self.model_config.process_clip_state_dict_for_saving(clip_state_dict))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\supported_models.py", line 246, in process_clip_state_dict_for_saving
state_dict_g = diffusers_convert.convert_text_enc_state_dict_v20(state_dict, "clip_g")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 177, in convert_text_enc_state_dict_v20
new_state_dict[relabelled_key + ".in_proj_weight"] = cat_tensors(tensors)
^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 125, in cat_tensors
out = torch.empty(shape, device=tensors[0].device, dtype=tensors[0].dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:21:19.116470 - Prompt executed in 19.42 seconds
2026-05-24T04:24:22.335971 - got prompt
2026-05-24T04:24:22.403783 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:24:22.488578 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:24:22.557357 - Model SDXL prepared for dynamic VRAM loading. 4897MB Staged. 1680 patches attached.
2026-05-24T04:24:22.594260 - !!! Exception during processing !!! empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:24:22.595252 - Traceback (most recent call last):
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 248, in save
save_checkpoint(model, clip=clip, vae=vae, filename_prefix=filename_prefix, output_dir=self.output_dir, prompt=prompt, extra_pnginfo=extra_pnginfo)
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 227, in save_checkpoint
comfy.sd.save_checkpoint(output_checkpoint, model, clip, vae, clip_vision, metadata=metadata, extra_keys=extra_keys)
File "D:\112\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1965, in save_checkpoint
sd = model.state_dict_for_saving(clip_sd, vae_sd, clip_vision_sd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_patcher.py", line 1535, in state_dict_for_saving
return self.model.state_dict_for_saving(unet_state_dict, clip_state_dict=clip_state_dict, vae_state_dict=vae_state_dict, clip_vision_state_dict=clip_vision_state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_base.py", line 361, in state_dict_for_saving
extra_sds.append(self.model_config.process_clip_state_dict_for_saving(clip_state_dict))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\supported_models.py", line 246, in process_clip_state_dict_for_saving
state_dict_g = diffusers_convert.convert_text_enc_state_dict_v20(state_dict, "clip_g")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 177, in convert_text_enc_state_dict_v20
new_state_dict[relabelled_key + ".in_proj_weight"] = cat_tensors(tensors)
^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 125, in cat_tensors
out = torch.empty(shape, device=tensors[0].device, dtype=tensors[0].dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:24:22.597247 - Prompt executed in 0.26 seconds
2026-05-24T04:24:25.202510 - FETCH ComfyRegistry Data [DONE]
2026-05-24T04:24:25.412927 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2026-05-24T04:24:25.459799 - FETCH DATA from: D:\122\user\__manager\cache\1514988643_custom-node-list.json2026-05-24T04:24:25.459799 - 2026-05-24T04:24:25.469772 - [DONE]2026-05-24T04:24:25.469772 -
2026-05-24T04:24:25.509660 - [ComfyUI-Manager] All startup tasks have been completed.
2026-05-24T04:27:38.446540 - got prompt
2026-05-24T04:27:38.504380 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:27:38.516346 - Requested to load SDXL
2026-05-24T04:27:38.604103 - Model SDXLClipModel prepared for dynamic VRAM loading. 1560MB Staged. 0 patches attached.
2026-05-24T04:27:38.669923 - Model SDXL prepared for dynamic VRAM loading. 4897MB Staged. 0 patches attached.
2026-05-24T04:27:38.700836 - !!! Exception during processing !!! empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:27:38.701860 - Traceback (most recent call last):
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\112\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 248, in save
save_checkpoint(model, clip=clip, vae=vae, filename_prefix=filename_prefix, output_dir=self.output_dir, prompt=prompt, extra_pnginfo=extra_pnginfo)
File "D:\112\ComfyUI\resources\ComfyUI\comfy_extras\nodes_model_merging.py", line 227, in save_checkpoint
comfy.sd.save_checkpoint(output_checkpoint, model, clip, vae, clip_vision, metadata=metadata, extra_keys=extra_keys)
File "D:\112\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1965, in save_checkpoint
sd = model.state_dict_for_saving(clip_sd, vae_sd, clip_vision_sd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_patcher.py", line 1535, in state_dict_for_saving
return self.model.state_dict_for_saving(unet_state_dict, clip_state_dict=clip_state_dict, vae_state_dict=vae_state_dict, clip_vision_state_dict=clip_vision_state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\model_base.py", line 361, in state_dict_for_saving
extra_sds.append(self.model_config.process_clip_state_dict_for_saving(clip_state_dict))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\supported_models.py", line 246, in process_clip_state_dict_for_saving
state_dict_g = diffusers_convert.convert_text_enc_state_dict_v20(state_dict, "clip_g")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 177, in convert_text_enc_state_dict_v20
new_state_dict[relabelled_key + ".in_proj_weight"] = cat_tensors(tensors)
^^^^^^^^^^^^^^^^^^^^
File "D:\112\ComfyUI\resources\ComfyUI\comfy\diffusers_convert.py", line 125, in cat_tensors
out = torch.empty(shape, device=tensors[0].device, dtype=tensors[0].dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: empty() received an invalid combination of arguments - got (list, dtype=torch.dtype, device=FakeDevice), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)
* (tuple of ints size, *, torch.memory_format memory_format = None, Tensor out = None, torch.dtype dtype = None, torch.layout layout = None, torch.device device = None, bool pin_memory = False, bool requires_grad = False)

2026-05-24T04:27:38.703874 - Prompt executed in 0.25 seconds

## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

## Additional Context
(Please add any additional context or steps to reproduce the error here)
```

### Other

It only appeared after the 0.22 update

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.