This commit is contained in:
Josh Hawkins 2024-10-10 17:33:36 -05:00
parent 49fddeaeb3
commit cdb794ece8

View File

@ -54,7 +54,7 @@ class GenericONNXEmbedding:
self.embedding_function = embedding_function
self.model_type = model_type # 'text' or 'vision'
self.providers, self.provider_options = get_ort_providers(
force_cpu=self.config.device == "CPU",
force_cpu=device == "CPU",
requires_fp16=self.config.model_size == "large"
or self.model_type == "text",
openvino_device=device,