Closed trengrj closed 1 year ago
When running on a NVIDIA GPU the below line
https://github.com/weaviate/t2v-transformers-models/blob/4a38a7b4f1d66d2bd91b7db45c043a099a63f462/vectorizer.py#L178
Needs to be changed to
labels = torch.tensor(labels).to(device)
This change requires additional changes to the HFModel class to pass through the GPU device.
HFModel
When running on a NVIDIA GPU the below line
https://github.com/weaviate/t2v-transformers-models/blob/4a38a7b4f1d66d2bd91b7db45c043a099a63f462/vectorizer.py#L178
Needs to be changed to
This change requires additional changes to the
HFModel
class to pass through the GPU device.