Lengyue 2 anni fa
parent
commit
0282451dff
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      speech_lm/train.py

+ 1 - 1
speech_lm/train.py

@@ -84,7 +84,7 @@ def train(
                     {
                         "model": model,
                         "optimizer": optimizer,
-                        "scheduler": scheduler,
+                        "scheduler": scheduler.state_dict(),
                         "global_step": global_step,
                     },
                 )