Downloads · 30 days
5
9% of all-time downloads
onnx-models/gtr-t5-base-onnx
gtr-t5-base-onnx is a sentence similarity model from onnx-models. Use it when you need a score for how close two texts are. It is set up for light-embed.
This is the ONNX-ported version of the sentence-transformers/gtr-t5-base for generating text embeddings.
Downloads · 30 days
5
9% of all-time downloads
All-time downloads
56
Public
Repo size
441 MB
Likes
0
Public
Click a slice to open those files.
.onnx441 MB · 99%
From the Hugging Face model README
This is the ONNX-ported version of the sentence-transformers/gtr-t5-base for generating text embeddings.
Using this model becomes easy when you have light-embed installed:
pip install -U light-embed
Then you can use the model by specifying the original model name like this:
from light_embed import TextEmbedding
sentences = [
"This is an example sentence",
"Each sentence is converted"
]
model = TextEmbedding('sentence-transformers/gtr-t5-base')
embeddings = model.encode(sentences)
print(embeddings)
or by specifying the onnx model name like this:
from light_embed import TextEmbedding
sentences = [
"This is an example sentence",
"Each sentence is converted"
]
model = TextEmbedding('onnx-models/gtr-t5-base-onnx')
embeddings = model.encode(sentences)
print(embeddings)
Binh Nguyen / [email protected]