mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-08 19:57:03 +08:00
Fix fp8 model training
This commit is contained in:
parent
eea608e48f
commit
4a976adcd7
@ -336,6 +336,7 @@ class fp8_ops(manual_cast):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def forward_comfy_cast_weights(self, input):
|
def forward_comfy_cast_weights(self, input):
|
||||||
|
if not self.training:
|
||||||
try:
|
try:
|
||||||
out = fp8_linear(self, input)
|
out = fp8_linear(self, input)
|
||||||
if out is not None:
|
if out is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user