llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Fixed tokenizer.model not found error when model dir is symlink

Open mqy opened this issue 2 years ago • 0 comments

In convert-pth-to-ggml.py, dir_model is something like models/7B or models/7B/. tokenizer.model is expected under model's parent dir.

When dir_model is a symlink, f"{dir_model}/../tokenizer.model" would not be found. Let's use the model's parent dir directly.

mqy avatar Mar 20 '23 12:03 mqy