Skip to content

Commit

Permalink
update (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-r-o-w authored Oct 8, 2024
1 parent d792cbb commit 0937e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion training/cogvideox_text_to_video_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def load_model_hook(models, input_dir):
)
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(
Expand Down
2 changes: 1 addition & 1 deletion training/cogvideox_text_to_video_sft.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def load_model_hook(models, input_dir):
)
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(
Expand Down

0 comments on commit 0937e92

Please sign in to comment.