Skip to content

Commit eb23a95

Browse files
committed
rm inp/out files for models not having gguf
1 parent ac5449b commit eb23a95

File tree

81 files changed

+7
-6274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+7
-6274
lines changed

convert_hf_to_gguf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,9 @@ def get_vocab_base_pre(self, tokenizer) -> str:
794794
if chkhsh == "d353350c764d8c3b39c763113960e4fb4919bea5fbf208a0e3b22e8469dc7406":
795795
# ref: https://huggingface.co/meta-llama/Llama-4-Scout-17B-16E-Instruct
796796
res = "llama4"
797+
if chkhsh == "81d72c7348a9f0ebe86f23298d37debe0a5e71149e29bd283904c02262b27516":
798+
# ref: https://huggingface.co/THUDM/glm-4-9b-chat
799+
res = "chatglm-bpe"
797800
if chkhsh == "b6e8e1518dc4305be2fe39c313ed643381c4da5db34a98f6a04c093f8afbe99b":
798801
# ref: https://huggingface.co/THUDM/glm-4-9b-hf
799802
res = "glm4"

convert_hf_to_gguf_update.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ def get_vocab_base_pre(self, tokenizer) -> str:
417417
logger.error(f"Failed to load tokenizer for model {name}. Error: {e}")
418418
continue # Skip this model and continue with the next one in the loop
419419

420+
if not os.path.exists(f"models/ggml-vocab-{name}.gguf"):
421+
logger.info(f"Skip vocab files for model {name}, no GGUF file found")
422+
continue
423+
420424
with open(f"models/ggml-vocab-{name}.gguf.inp", "w", encoding="utf-8") as f:
421425
for text in tests:
422426
f.write(f"{text}")

models/ggml-vocab-bailingmoe.gguf.inp

Lines changed: 0 additions & 112 deletions
This file was deleted.

models/ggml-vocab-bailingmoe.gguf.out

Lines changed: 0 additions & 46 deletions
This file was deleted.

models/ggml-vocab-bert-bge-large.gguf.inp

Lines changed: 0 additions & 112 deletions
This file was deleted.

models/ggml-vocab-bert-bge-large.gguf.out

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)