fix the ability to disable fp8_base

This commit is contained in:
kijai
2024-08-31 16:50:18 +03:00
parent 2e745a2612
commit 7095626d6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -539,7 +539,7 @@ class NetworkTrainer:
accelerator.print("enable fp8 training for U-Net.")
unet_weight_dtype = torch.float8_e4m3fn
if not args.fp8_base_unet:
if not args.fp8_base_unet and not args.network_train_unet_only:
accelerator.print("enable fp8 training for Text Encoder.")
te_weight_dtype = weight_dtype if args.fp8_base_unet else torch.float8_e4m3fn