This commit is contained in:
Aryan
2024-10-08 16:04:22 +05:30
committed by GitHub
parent d792cbbb64
commit 0937e923e3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ def main(args):
)
use_deepspeed_scheduler = (
accelerator.state.deepspeed_plugin is not None
and "scheduler" not in accelerator.state.deepspeed_plugin.deepspeed_config
and "scheduler" in accelerator.state.deepspeed_plugin.deepspeed_config
)
optimizer = get_optimizer(
+1 -1
View File
@@ -367,7 +367,7 @@ def main(args):
)
use_deepspeed_scheduler = (
accelerator.state.deepspeed_plugin is not None
and "scheduler" not in accelerator.state.deepspeed_plugin.deepspeed_config
and "scheduler" in accelerator.state.deepspeed_plugin.deepspeed_config
)
optimizer = get_optimizer(