Warning: Could not load sageattention: No module named ‘sageattention’
sageattention package is not installed
Traceback (most recent call last):
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py”, line 920, in get_module
return importlib.import_module(“.” + module_name, self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\loaders\peft.py”, line 38, in
from .lora_base import fetch_state_dict, func_optionally_disable_offloading
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\loaders\lora_base.py”, line 56, in
from peft.tuners.tuners_utils import BaseTunerLayer
File "D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\peft_init.py", line 22, in
from .auto import (
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\peft\auto.py”, line 32, in
from .mapping import MODEL_TYPE_TO_PEFT_MODEL_MAPPING
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\peft\mapping.py”, line 25, in
from .mixed_model import PeftMixedModel
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\peft\mixed_model.py”, line 29, in
from .peft_model import PeftModel
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\peft\peft_model.py”, line 37, in
from transformers import Cache, DynamicCache, EncoderDecoderCache, PreTrainedModel
ImportError: cannot import name ‘EncoderDecoderCache’ from ‘transformers’ (D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers_init.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “D:\COMFYUI\ComfyUI_windows_portable\ComfyUI\nodes.py”, line 2147, in load_custom_node
module_spec.loader.exec_module(module)
File “”, line 940, in exec_module
File “”, line 241, in call_with_frames_removed
File "D:\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\teacache_init.py", line 2, in
from .nodes_diffusers import NODE_CLASS_MAPPINGS as DIFFUSERS_NODE_CLASS, NODE_DISPLAY_NAME_MAPPINGS as DIFFUSERS_NODES_DISPLAY
File “D:\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\teacache\nodes_diffusers.py”, line 8, in
from .models.cogvideox.custom_cogvideox_transformer_3d import CogVideoXTransformer3DModel
File “D:\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\teacache\models\cogvideox\custom_cogvideox_transformer_3d.py”, line 34, in
from diffusers.loaders import PeftAdapterMixin
File “”, line 1229, in _handle_fromlist
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py”, line 910, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py”, line 922, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.peft because of the following error (look up to see its traceback):
cannot import name ‘EncoderDecoderCache’ from ‘transformers’ (D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers_init.py)
Cannot import D:\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\teacache module for custom nodes: Failed to import diffusers.loaders.peft because of the following error (look up to see its traceback):
cannot import name ‘EncoderDecoderCache’ from ‘transformers’ (D:\COMFYUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers_init_.py)