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

Custom tokenizer does not work with setup script #1695

Closed
forestoak777 opened this issue Mar 10, 2024 · 2 comments · Fixed by #1709
Closed

Custom tokenizer does not work with setup script #1695

forestoak777 opened this issue Mar 10, 2024 · 2 comments · Fixed by #1709

Comments

@forestoak777
Copy link

Setting a custom tokenizer in the llm section of the settings-local.yaml file did not change the value in the privateGPT/settings/settings python script, so the setup script ended up setting the tokenizer name to 'None', and so the setup script crashed. I did a temporary fix by just putting in the literal string right into the private_gpt/settings/settings.py LLMSettings class in the tokenizer field, where None was.

LLM model downloaded!
Downloading tokenizer None

...
(A BUNCH OF PYTHON ERROR STUFF)
...

Repository Not Found for url: https://huggingface.co/None/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.
@forestoak777
Copy link
Author

forestoak777 commented Mar 10, 2024

If you are looking for a temporary fix to this, see the last sentence in the issue above.

@ItsCRC
Copy link

ItsCRC commented Mar 10, 2024

I added tokenizer: mistralai/Mistral-7B-Instruct-v0.2 in settings.yaml under llm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants