Downloads · 30 days
1.5K
1% of all-time downloads
sentence-transformers/gtr-t5-xl
gtr-t5-xl is a sentence similarity model from sentence-transformers. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space. The model was specifically trained for the task of sematic search.
Downloads · 30 days
1.5K
1% of all-time downloads
All-time downloads
204K
Public
Parameters
1.2B
5 GB on disk
Likes
18
Public
Click a slice to open those files.
.bin2.5 GB · 50%
From the Hugging Face model README
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space. The model was specifically trained for the task of sematic search.
This model was converted from the Tensorflow model gtr-xl-1 to PyTorch. When using this model, have a look at the publication: Large Dual Encoders Are Generalizable Retrievers. The tfhub model and this PyTorch model can produce slightly different embeddings, however, when run on the same benchmarks, they produce identical results.
The model uses only the encoder from a T5-3B model. The weights are stored in FP16.
Using this model becomes easy when you have sentence-transformers installed:
pip install -U sentence-transformers
Then you can use the model like this:
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/gtr-t5-xl')
embeddings = model.encode(sentences)
print(embeddings)
The model requires sentence-transformers version 2.2.0 or newer.
If you find this model helpful, please cite the respective publication: Large Dual Encoders Are Generalizable Retrievers