Sentence Similarity
sentence-transformers
Safetensors
modernbert
semantic-similarity
representlm
text-embeddings-inference
Run this model with HF Jobs
Run suproteem/RepresentLM-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/suproteem/RepresentLM-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/suproteem/RepresentLM-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use suproteem/RepresentLM-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use suproteem/RepresentLM-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("suproteem/RepresentLM-v2") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
RepresentLM-v2
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.
Usage
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)
- Downloads last month
- 6
Model tree for suproteem/RepresentLM-v2
Base model
suproteem/StoriesLM-v2-1979