-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Install issue]: Chromadb and transformers require different versions of tokenizer. #3265
Comments
Hey there! I see you're running into a dependency conflict with tokenizers. This is actually a known issue when using newer versions of chromadb with certain package combinations. Let me help you resolve this. Here's what I recommend:
python3.10 -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
pip install --upgrade pip
pip install tokenizers==0.22.0
pip install transformers
pip install chromadb==0.5.23 If you absolutely need to use Python 3.12, you can try this alternative approach: pip install chromadb==0.5.23 --no-deps
pip install tokenizers==0.22.0
pip install -r requirements.txt # if you have one Important Notes:
The reason this happens is that chromadb and transformers both depend on tokenizers but sometimes require different versions. By installing tokenizers first with a compatible version, we can avoid the conflict. Let me know if you run into any issues with these steps, and I'll help you troubleshoot further! References:
Would you like me to provide more specific guidance about any of these steps? |
Pretty sure it is fixed with #3322 |
Facing the same issue for the past few days; even after two weeks since this post. Got the following errors when using normal chromadb 0.5.23 requires tokenizers<=0.20.3,>=0.13.2 This makes it nearly impossible to use chromadb. Tried @Cirr0e's solution:
Didn't work: Maybe this required downgrading the transformers version, such that tokenizers is in line with transformers and chromadb requirements. If anyone knows such a version, please comment. |
I'm confused, as of right now when I'm looking at the tokenizer project page, the latest release is still 0.21.0 (https://pypi.org/project/tokenizers/0.21.0/ ) Why is 0.22.0 put down in the solution above?! |
i can fix this by downgrade the tranformers to version 4.45.0 my tokenizers version is 0.20.3 and chromadb version is 0.5.23 |
Yea for me the following config works for now:
|
What happened?
Upgrading tokenizer then gives me the same warning for Chromadb
Versions
chromadb-0.5.23
pip 24.3.1
python 3.12
Relevant log output
No response
The text was updated successfully, but these errors were encountered: