Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions nodes_model_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,9 +1124,11 @@ def loadmodel(self, model, base_precision, load_device, quantization,
if "sage" in attention_mode:
try:
from sageattention import sageattn
except Exception as e:
raise ValueError(f"Can't import SageAttention: {str(e)}")

use_sageattn = True
except ImportError as e:
print(f"SageAttention is not available ->falling back to default attention: {e}")
use_sageattn = False

gguf = False
if model.endswith(".gguf"):
if quantization != "disabled":
Expand Down