Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Fix issue with device call

davidmezzetti28273d03699c
diff --git a/src/python/txtai/pipeline/text/lateencoder.py b/src/python/txtai/pipeline/text/lateencoder.py
index 442aaa53..4f264a89 100644
--- a/src/python/txtai/pipeline/text/lateencoder.py
+++ b/src/python/txtai/pipeline/text/lateencoder.py
@@ -16,7 +16,7 @@ class LateEncoder(Pipeline):
def __init__(self, path=None, **kwargs):
# Get device
- self.device = Models.deviceid(kwargs.get("gpu", True))
+ self.device = Models.device(Models.deviceid(kwargs.get("gpu", True)))
# Load model
self.model = PoolingFactory.create(