Downloads · 30 days
155
39% of all-time downloads
suproteem/RepresentLM-v2
RepresentLM-v2 is a sentence similarity model from suproteem. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model: It maps sentences and paragraphs to a 768-dimensional dense vector space and can be used for tasks like clustering or semantic search.
Downloads · 30 days
155
39% of all-time downloads
All-time downloads
401
Public
Parameters
149M
596 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors596 MB · 99%
From the Hugging Face model README
This is a sentence-transformers model: It maps sentences and paragraphs to a 768-dimensional dense vector space and can be used for tasks like clustering or semantic search.
The model is trained on the HEADLINES semantic similarity dataset, using the StoriesLM-v2-1979 model as a base.
First install the sentence-transformers package:
pip install -U sentence-transformers
The model can then be used to encode language sequences:
from sentence_transformers import SentenceTransformer
sequences = ["This is an example sequence", "Each sequence is embedded"]
model = SentenceTransformer("suproteem/RepresentLM-v2")
embeddings = model.encode(sequences)
print(embeddings)