Skip to content

Commit dff996c

Browse files
Fix crash. (#10885)
1 parent 828b1b9 commit dff996c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

comfy/text_encoders/flux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def load_mistral_tokenizer(data):
8787
vocab = {}
8888

8989
max_vocab = mistral_vocab["config"]["default_vocab_size"]
90+
max_vocab -= len(mistral_vocab["special_tokens"])
9091

9192
for w in mistral_vocab["vocab"]:
9293
r = w["rank"]

0 commit comments

Comments
 (0)