Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
bert
feature-extraction
text-embeddings-inference

Run this model with HF Jobs

Run RepresentLM/RepresentLM-v1 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/RepresentLM/RepresentLM-v1. 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/RepresentLM/RepresentLM-v1 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.
How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("RepresentLM/RepresentLM-v1")

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]

RepresentLM-v1

This is a sentence-transformers model: It maps sentences & 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-v1-1963 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('RepresentLM/RepresentLM-v1')
embeddings = model.encode(sequences)
print(embeddings)
Downloads last month
15
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for RepresentLM/RepresentLM-v1

Finetuned
(1)
this model

Datasets used to train RepresentLM/RepresentLM-v1