You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to load on multiple GPUS, I get the following error:
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-reranker-base')
model = AutoModelForSequenceClassification.from_pretrained('BAAI/bge-reranker-base', device_map='auto')
error: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)
The text was updated successfully, but these errors were encountered:
mohammad-yousuf
changed the title
Unable to load on multiple GPUS using HuggingFace Transformers
Unable to load on multiple GPUs using HuggingFace Transformers
May 12, 2024
When I try to load on multiple GPUS, I get the following error:
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-reranker-base')
model = AutoModelForSequenceClassification.from_pretrained('BAAI/bge-reranker-base', device_map='auto')
error:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)
The text was updated successfully, but these errors were encountered: