From ae8bd1de278712e01453d0ec2e57d6b3340b052b Mon Sep 17 00:00:00 2001 From: bghira Date: Fri, 6 Dec 2024 00:35:38 +0000 Subject: [PATCH] update sd3 seqlen to 154 max for t5 --- helpers/configuration/cmd_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/configuration/cmd_args.py b/helpers/configuration/cmd_args.py index c862eb6b..fb8a3db6 100644 --- a/helpers/configuration/cmd_args.py +++ b/helpers/configuration/cmd_args.py @@ -2314,7 +2314,7 @@ def parse_cmdline_args(input_args=None, exit_on_error: bool = False): args.pretrained_vae_model_name_or_path = None args.disable_compel = True - t5_max_length = 256 + t5_max_length = 154 if args.model_family == "sd3" and ( args.tokenizer_max_length is None or int(args.tokenizer_max_length) > t5_max_length