Skip to content

Commit

Permalink
schnell can be trained w/o fast schedule if user provides --i_know_wh…
Browse files Browse the repository at this point in the history
…at_i_am_doing
  • Loading branch information
bghira committed Oct 10, 2024
1 parent 6f5b31e commit 2ba13b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helpers/configuration/cmd_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -2179,8 +2179,10 @@ def parse_cmdline_args(input_args=None):
"schnell" in args.pretrained_model_name_or_path.lower()
or args.flux_fast_schedule
):
if not args.flux_fast_schedule:
error_log("Schnell requires --flux_fast_schedule.")
if not args.flux_fast_schedule and not args.i_know_what_i_am_doing:
error_log(
"Schnell requires --flux_fast_schedule (or --i_know_what_i_am_doing)."
)
sys.exit(1)
flux_version = "schnell"
model_max_seq_length = 256
Expand Down

0 comments on commit 2ba13b1

Please sign in to comment.