Skip to content

Commit ae237cc

Browse files
authored
Merge pull request #1392 from bghira/bugfix/hidream-seq-len
add missing seq len
2 parents 4e7fa2d + 97eef84 commit ae237cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helpers/models/hidream/model.py

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def check_user_config(self):
308308
raise ValueError(
309309
f"{self.NAME} does not support fp8-quanto. Please use fp8-torchao or int8 precision level instead."
310310
)
311+
t5_max_length = 128
311312
if self.config.tokenizer_max_length is None or self.config.tokenizer_max_length == 0:
312313
logger.warning(
313314
f"Setting T5 XXL tokeniser max length to {t5_max_length} for {self.NAME}."

0 commit comments

Comments
 (0)