-
Notifications
You must be signed in to change notification settings - Fork 96
Description
I have CPU based windows system and while running the below code I get the "Torch not compiled with CUDA enabled error".
Code:-
RAG = RAGMultiModalModel.from_pretrained("vidore/colpali")
Error:-
AssertionError Traceback (most recent call last)
Cell In[20], line 1
----> 1 RAG = RAGMultiModalModel.from_pretrained("vidore/colpali")
File ~\AppData\Roaming\Python\Python310\site-packages\byaldi\RAGModel.py:59, in RAGMultiModalModel.from_pretrained(cls, pretrained_model_name_or_path, index_root, device, verbose)
49 """Load a ColPali model from a pre-trained checkpoint.
50
51 Parameters:
(...)
56 cls (RAGMultiModalModel): The current instance of RAGMultiModalModel, with the model initialised.
57 """
58 instance = cls()
---> 59 instance.model = ColPaliModel.from_pretrained(
60 pretrained_model_name_or_path,
61 index_root=index_root,
62 device=device,
63 verbose=verbose,
64 )
65 return instance
File ~\AppData\Roaming\Python\Python310\site-packages\byaldi\colpali.py:209, in ColPaliModel.from_pretrained(cls, pretrained_model_name_or_path, n_gpu, verbose, device, index_root, **kwargs)
199 @classmethod
200 def from_pretrained(
201 cls,
...
312 raise AssertionError(
313 "libcudart functions unavailable. It looks like you have a broken build?"
314 )
AssertionError: Torch not compiled with CUDA enabled