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

Issue with 1.5 model #29

Closed
AmanKishore opened this issue Oct 17, 2023 · 6 comments
Closed

Issue with 1.5 model #29

AmanKishore opened this issue Oct 17, 2023 · 6 comments
Assignees

Comments

@AmanKishore
Copy link

>>> Embedding("BAAI/bge-small-en-v1.5")
Was not able to download fast-bge-small-en-v1.5.tar.gz, trying BAAI-bge-small-en-v1.5.tar.gz
Traceback (most recent call last):
  File "/Users/amankishore/Library/Python/3.9/lib/python/site-packages/fastembed/embedding.py", line 339, in retrieve_model
    self.download_file_from_gcs(
  File "/Users/amankishore/Library/Python/3.9/lib/python/site-packages/fastembed/embedding.py", line 245, in download_file_from_gcs
    raise PermissionError(
PermissionError: Authentication Error: You do not have permission to access this resource. Please check your credentials.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/amankishore/Library/Python/3.9/lib/python/site-packages/fastembed/embedding.py", line 422, in __init__
    self._model_dir = self.retrieve_model(model_name, cache_dir)
  File "/Users/amankishore/Library/Python/3.9/lib/python/site-packages/fastembed/embedding.py", line 346, in retrieve_model
    self.download_file_from_gcs(
  File "/Users/amankishore/Library/Python/3.9/lib/python/site-packages/fastembed/embedding.py", line 245, in download_file_from_gcs
    raise PermissionError(
PermissionError: Authentication Error: You do not have permission to access this resource. Please check your credentials.
@NirantK NirantK self-assigned this Oct 18, 2023
@NirantK
Copy link
Contributor

NirantK commented Oct 18, 2023

Hey @AmanKishore, I am unable to reproduce this right now. Can you sharing a Colab notebook which reproduces this? Should be 2-5 lines of code which you can copy paste perhaps?

@NirantK
Copy link
Contributor

NirantK commented Oct 18, 2023

Closing this for the moment. Please re-open this issue with a clean reproduction.

@NirantK NirantK closed this as completed Oct 18, 2023
@AmanKishore
Copy link
Author

Looks like it's working now

@ernests
Copy link

ernests commented Jan 9, 2024

@NirantK I actually got the same error message

Installed and tried to run it

from fastembed.embedding import FlagEmbedding as Embedding

embedding_model = Embedding(model_name="BAAI/bge-large-en-v1.5", max_length=512)

Got this message:
Was not able to download fast-bge-large-en-v1.5.tar.gz, trying BAAI-bge-large-en-v1.5.tar.gz

I think the error is because of permissions on googleapis. It can't access the tar file for bge-large-en

image

@ernests
Copy link

ernests commented Jan 9, 2024

Sorry, checked with "BAAI/bge-base-en-v1.5" and it works. I tried "large" and it is not in supported model list.

By the way, why not support "large" :)

@NirantK
Copy link
Contributor

NirantK commented Jan 10, 2024

Large isn't fast enough on CPU yet 😥

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