Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

mqy
Copy link
Contributor

@mqy mqy commented Mar 20, 2023

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.

@gjmulder gjmulder added the bug Something isn't working label Mar 20, 2023
@sw sw merged commit 6b6d5b5 into ggml-org:master Mar 20, 2023
Deadsg pushed a commit to Deadsg/llama.cpp that referenced this pull request Dec 19, 2023
….96.0

Bump fastapi from 0.95.1 to 0.96.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants