mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 21:12:36 +08:00
Fix crash.
This commit is contained in:
parent
828b1b9953
commit
508a6bedfe
@ -87,6 +87,7 @@ def load_mistral_tokenizer(data):
|
||||
vocab = {}
|
||||
|
||||
max_vocab = mistral_vocab["config"]["default_vocab_size"]
|
||||
max_vocab -= len(mistral_vocab["special_tokens"])
|
||||
|
||||
for w in mistral_vocab["vocab"]:
|
||||
r = w["rank"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user