# Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed

**URL:** <https://forum.comfy.org/t/warning-could-not-load-sageattention-no-module-named-sageattention-sageattention-package-is-not-installed/1898>\
**Category:** Custom Nodes\
**Created:** [March 13, 2025, 5:15pm UTC](https://forum.comfy.org/t/warning-could-not-load-sageattention-no-module-named-sageattention-sageattention-package-is-not-installed/1898 "2025-03-13T17:15:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joonienyc](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@joonienyc](https://forum.comfy.org/u/joonienyc)\
**Post date:** [March 13, 2025, 5:15pm UTC](https://forum.comfy.org/t/warning-could-not-load-sageattention-no-module-named-sageattention-sageattention-package-is-not-installed/1898/1 "2025-03-13T17:15:22Z")

</div>

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)
