Fix fp8 model training

This commit is contained in:
Kohaku-Blueleaf 2025-09-14 11:29:39 +08:00
parent eea608e48f
commit 4a976adcd7

View File

@ -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: