Lengyue 1 год назад
Родитель
Сommit
39a79a2c98
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      fish_speech/models/text2semantic/lit_module.py

+ 9 - 0
fish_speech/models/text2semantic/lit_module.py

@@ -244,6 +244,7 @@ class TextToSemantic(L.LightningModule):
                 on_epoch=not is_train,
                 prog_bar=False,
                 logger=True,
+                sync_dist=not is_train,
             )
 
             self.log(
@@ -253,6 +254,7 @@ class TextToSemantic(L.LightningModule):
                 on_epoch=not is_train,
                 prog_bar=False,
                 logger=True,
+                sync_dist=not is_train,
             )
 
             self.log(
@@ -262,6 +264,7 @@ class TextToSemantic(L.LightningModule):
                 on_epoch=not is_train,
                 prog_bar=False,
                 logger=True,
+                sync_dist=not is_train,
             )
 
             self.log(
@@ -271,6 +274,7 @@ class TextToSemantic(L.LightningModule):
                 on_epoch=not is_train,
                 prog_bar=False,
                 logger=True,
+                sync_dist=not is_train,
             )
 
         self.log(
@@ -280,6 +284,7 @@ class TextToSemantic(L.LightningModule):
             on_epoch=not is_train,
             prog_bar=True,
             logger=True,
+            sync_dist=not is_train,
         )
 
         self.log(
@@ -289,6 +294,7 @@ class TextToSemantic(L.LightningModule):
             on_epoch=not is_train,
             prog_bar=False,
             logger=True,
+            sync_dist=not is_train,
         )
 
         self.log(
@@ -298,6 +304,7 @@ class TextToSemantic(L.LightningModule):
             on_epoch=not is_train,
             prog_bar=False,
             logger=True,
+            sync_dist=not is_train,
         )
 
         # Top-5 accuracy
@@ -309,6 +316,7 @@ class TextToSemantic(L.LightningModule):
             on_epoch=not is_train,
             prog_bar=True,
             logger=True,
+            sync_dist=not is_train,
         )
 
         if self.model.config.num_codebooks != self.model.config.num_in_codebooks:
@@ -324,6 +332,7 @@ class TextToSemantic(L.LightningModule):
                 on_epoch=not is_train,
                 prog_bar=True,
                 logger=True,
+                sync_dist=not is_train,
             )
 
         return loss