File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ def eval_step(self, prompt: str = "A photo of a cat"):
226
226
try :
227
227
trainer = FluxTrainer (config )
228
228
if config .checkpoint .create_seed_checkpoint :
229
- assert int (
230
- os .environ ["WORLD_SIZE" ]
229
+ assert (
230
+ int ( os .environ ["WORLD_SIZE" ]) == 1
231
231
), "Must create seed checkpoint using a single device, to disable sharding."
232
232
assert (
233
233
config .checkpoint .enable_checkpoint
Original file line number Diff line number Diff line change @@ -455,8 +455,8 @@ def close(self) -> None:
455
455
trainer = Trainer (config )
456
456
457
457
if config .checkpoint .create_seed_checkpoint :
458
- assert int (
459
- os .environ ["WORLD_SIZE" ]
458
+ assert (
459
+ int ( os .environ ["WORLD_SIZE" ]) == 1
460
460
), "Must create seed checkpoint using a single device, to disable sharding."
461
461
assert (
462
462
config .checkpoint .enable_checkpoint
You can’t perform that action at this time.
0 commit comments