Skip to content

Commit

Permalink
Update flux_train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Aug 17, 2024
1 parent a5af5a0 commit 843e7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flux_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def train(args):
logger.info(f"using {len(optimizers)} optimizers for fused optimizer groups")

else:
_, _, optimizer = train_util.get_optimizer(args, trainable_params=params_to_optimize)
_, _, optimizer = train_util.get_optimizer(args, trainable_params=params_to_optimize, model=flux)

# prepare dataloader
# strategies are set here because they cannot be referenced in another process. Copy them with the dataset
Expand Down

0 comments on commit 843e7e6

Please sign in to comment.