We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71d6975 commit ebb4746Copy full SHA for ebb4746
convert-falcon-hf-to-gguf.py
@@ -131,7 +131,9 @@ def parse_args() -> argparse.Namespace:
131
132
print("gguf: get gpt2 tokenizer vocab")
133
134
-vocab_size = len(tokenizer_json["model"]["vocab"])
+# The number of tokens in tokenizer.json can differ from the expected vocab size.
135
+# This causes downstream issues with mismatched tensor sizes when running the inference
136
+vocab_size = hparams["vocab_size"]
137
138
# ref: https://github.com/cmp-nct/ggllm.cpp/blob/master/falcon_convert.py
139
tokenizer = AutoTokenizer.from_pretrained(dir_model)
0 commit comments