Skip to content

Commit

Permalink
Fix token max length
Browse files Browse the repository at this point in the history
  • Loading branch information
guaneec authored and AUTOMATIC1111 committed Sep 25, 2022
1 parent b8eae5d commit 615b2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sd_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def forward(self, text):
remade_batch_tokens = []
id_start = self.wrapped.tokenizer.bos_token_id
id_end = self.wrapped.tokenizer.eos_token_id
maxlen = self.wrapped.max_length - 2
maxlen = self.wrapped.max_length
used_custom_terms = []

cache = {}
Expand Down

0 comments on commit 615b2fc

Please sign in to comment.