Skip to content

Commit e08ecfb

Browse files
Add warning when using old pytorch. (Comfy-Org#9347)
1 parent 4e5c230 commit e08ecfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

comfy/rmsnorm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import torch
22
import comfy.model_management
33
import numbers
4+
import logging
45

56
RMSNorm = None
67

@@ -9,6 +10,7 @@
910
RMSNorm = torch.nn.RMSNorm
1011
except:
1112
rms_norm_torch = None
13+
logging.warning("Please update pytorch to use native RMSNorm")
1214

1315

1416
def rms_norm(x, weight=None, eps=1e-6):

0 commit comments

Comments
 (0)