byaldi icon indicating copy to clipboard operation
byaldi copied to clipboard

How to Load Locally Downloaded Models (vidore/colqwen2-v1.0-hf or vidore/colqwen2-v1.0) in byaldi?

Open Sammy42779 opened this issue 4 months ago • 2 comments

Thank you for your excellent work on byaldi! 🙏 I’ve manually downloaded the vidore/colqwen2-v1.0-hfand vidore/colqwen2-v1.0models from Hugging Face (link) to my server. Could you clarify how to properly integrate these models into byaldi? When I use: model_name = "/model_zoo/vidore/colpali-v1.3" docs_retrieval_model = RAGMultiModalModel.from_pretrained(model_name, verbose=1), it will show the error message: from colpali_engine.models import ColPali, ColPaliProcessor, ColQwen2, ColQwen2Processor ImportError: cannot import name 'ColQwen2' from 'colpali_engine.models' (/root/anaconda3/envs/rag/lib/python3.10/site-packages/colpali_engine/models/__init__.py) Thanks for your time!

Sammy42779 avatar Aug 15 '25 09:08 Sammy42779

I meet the same question too. Do you solve the problem? If you do, could you tell me the tips? Thanks.

Galaxy1248 avatar Sep 04 '25 11:09 Galaxy1248

I found the solution from the closed issue #16. Thank you.

Galaxy1248 avatar Sep 05 '25 02:09 Galaxy1248