mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-06-09 17:44:26 +08:00
Update nodes.py
This commit is contained in:
parent
fb5aa296ae
commit
44620cb566
@ -2172,10 +2172,11 @@ class CheckpointLoaderKJ:
|
|||||||
def patch(self, ckpt_name, patch_cublaslinear, sage_attention):
|
def patch(self, ckpt_name, patch_cublaslinear, sage_attention):
|
||||||
from comfy.ops import disable_weight_init, CastWeightBiasOp, cast_bias_weight
|
from comfy.ops import disable_weight_init, CastWeightBiasOp, cast_bias_weight
|
||||||
from nodes import CheckpointLoaderSimple
|
from nodes import CheckpointLoaderSimple
|
||||||
try:
|
if patch_cublaslinear:
|
||||||
from cublas_ops import CublasLinear
|
try:
|
||||||
except ImportError:
|
from cublas_ops import CublasLinear
|
||||||
raise Exception("Can't import 'torch-cublas-hgemm', install it from here https://github.com/aredden/torch-cublas-hgemm")
|
except ImportError:
|
||||||
|
raise Exception("Can't import 'torch-cublas-hgemm', install it from here https://github.com/aredden/torch-cublas-hgemm")
|
||||||
|
|
||||||
if sage_attention:
|
if sage_attention:
|
||||||
from sageattention import sageattn
|
from sageattention import sageattn
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user