Skip to content

Commit 80a0400

Browse files
committed
update bge recipe
Signed-off-by: Praneeth Bedapudi <[email protected]>
1 parent 21c0517 commit 80a0400

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

recipes/text_embeddings/predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
sentences = ['That is a happy person', 'That is a very happy person']
44

5-
model = SentenceTransformer('Alibaba-NLP/gte-base-en-v1.5', trust_remote_code=True)
5+
model = SentenceTransformer('Alibaba-NLP/gte-base-en-v1.5', trust_remote_code=True, backend="onnx", model_kwargs={"file_name": "model.onnx", "provider": "CPUExecutionProvider"})
66

77
from time import time
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sentence-transformers
1+
sentence-transformers[onnx]

0 commit comments

Comments
 (0)