Open n28div opened 1 month ago
Getting the same error, related to this:
cannot import name 'GoldenRetriever'
from relik.retriever.pytorch_modules.model import GoldenRetriever ImportError: cannot import name 'GoldenRetriever' from partially initialized module 'relik.retriever.pytorch_modules.model' (most likely due to a circular import) in retriever\pytorch_modules\model.py
It seems that the class is missing, while GoldenRetrieverModel is there.
Getting the same error when trying to run this on my fine-tuned model :
retriever.retrieve("Michael Jordan was one of the best players in the NBA.", top_k=100)
We just updated ReLiK to 1.0.7
which contains a fix for the issue. Let us know if it works now!
Getting the same error, related to this:
cannot import name 'GoldenRetriever'
from relik.retriever.pytorch_modules.model import GoldenRetriever ImportError: cannot import name 'GoldenRetriever' from partially initialized module 'relik.retriever.pytorch_modules.model' (most likely due to a circular import) in retriever\pytorch_modules\model.py
It seems that the class is missing, while GoldenRetrieverModel is there.
@csaiedu I can't replicate this problem in a fresh local environment. Let me know if the problem persists.
Thank you Riccorl, Upgrading leads to that error "ValueError: source code string cannot contain null bytes" on windows with fresh environment
Fixed with installation on a Linux machine and new envirnoment. Could be a corrupt conda env on windows
Thank you @Riccorl, it works just fine now
Thank you @Riccorl , it's also working for my fine-tuned model !
Thank you Riccorl, Upgrading leads to that error "ValueError: source code string cannot contain null bytes" on windows with fresh environment
@csaiedu Can you share the full error stack?
When running the snippet on the README file
the code breaks with error
here's the full stacktrace
running everything on Python 3.10.12 with torch 2.1.2+cu121.