mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-10 11:35:40 +00:00
Add warning when using old pytorch. (#9347)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import torch
|
import torch
|
||||||
import comfy.model_management
|
import comfy.model_management
|
||||||
import numbers
|
import numbers
|
||||||
|
import logging
|
||||||
|
|
||||||
RMSNorm = None
|
RMSNorm = None
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ try:
|
|||||||
RMSNorm = torch.nn.RMSNorm
|
RMSNorm = torch.nn.RMSNorm
|
||||||
except:
|
except:
|
||||||
rms_norm_torch = None
|
rms_norm_torch = None
|
||||||
|
logging.warning("Please update pytorch to use native RMSNorm")
|
||||||
|
|
||||||
|
|
||||||
def rms_norm(x, weight=None, eps=1e-6):
|
def rms_norm(x, weight=None, eps=1e-6):
|
||||||
|
Reference in New Issue
Block a user