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

Launching throws error with Exllamav2 stating "Tokenizers" are not found #47

Open
Adzeiros opened this issue Apr 15, 2024 · 2 comments
Open

Comments

@Adzeiros
Copy link

Adzeiros commented Apr 15, 2024

Followed the install instructions, launching the server.py in exui throws the below error:

  File "G:\_AI\exui\server.py", line 11, in <module>
    from backend.models import update_model, load_models, get_model_info, list_models, remove_model, load_model, unload_model, get_loaded_model
  File "G:\_AI\exui\backend\models.py", line 5, in <module>
    from exllamav2 import(
  File "C:\Users\Adzei\AppData\Local\Programs\Python\Python310\lib\site-packages\exllamav2\__init__.py", line 9, in <module>
    from exllamav2.tokenizer.tokenizer import ExLlamaV2Tokenizer
  File "C:\Users\Adzei\AppData\Local\Programs\Python\Python310\lib\site-packages\exllamav2\tokenizer\__init__.py", line 5, in <module>
    from exllamav2.tokenizer.hf import ExLlamaV2TokenizerHF
  File "C:\Users\Adzei\AppData\Local\Programs\Python\Python310\lib\site-packages\exllamav2\tokenizer\hf.py", line 4, in <module>
    from tokenizers import Tokenizer
ModuleNotFoundError: No module named 'tokenizers'```
@SirTurlock
Copy link

SirTurlock commented May 14, 2024

Workaround is to install the "tokenizers" package which does not seem to be included in the provided requirements.txt.
So just do a pip install tokenizers in your venv.

@turboderp
Copy link
Member

tokenizers isn't included as a requirement because it isn't needed for all models, only the ones that aren't made with SentencePiece or don't include the tokenizer.model SPM file. I guess I could add a check and a more helpful error message.

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

No branches or pull requests

3 participants