Skip to content

Commit 61ecbd9

Browse files
jfacevedo-googleksikiric
authored andcommitted
comment out post_training_steps
1 parent f0a1904 commit 61ecbd9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/maxdiffusion/trainers/flux_trainer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def start_training(self):
107107

108108
# don't need this anymore, clear some memory.
109109
del pipeline.t5_encoder
110-
111110
flux_state, flux_state_mesh_shardings, flux_learning_rate_scheduler = self.create_flux_state(
112111
# ambiguous here, but if self.params.get("unet") doesn't exist
113112
# Then its 1 of 2 scenarios:
@@ -120,7 +119,7 @@ def start_training(self):
120119
)
121120
train_states["flux_state"] = flux_state
122121
state_shardings["flux_state_shardings"] = flux_state_mesh_shardings
123-
self.post_training_steps(pipeline, params, train_states, msg="before_training")
122+
#self.post_training_steps(pipeline, params, train_states, msg="before_training")
124123

125124
# Create scheduler
126125
noise_scheduler, noise_scheduler_state = self.create_scheduler(pipeline, params)

0 commit comments

Comments
 (0)