Sentence Similarity
sentence-transformers
PyTorch
Transformers
roberta
feature-extraction
text-embeddings-inference
Run this model with HF Jobs
Run AnnaWegmann/Style-Embedding 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/AnnaWegmann/Style-Embedding. 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/AnnaWegmann/Style-Embedding 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 AnnaWegmann/Style-Embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AnnaWegmann/Style-Embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AnnaWegmann/Style-Embedding") 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] - Transformers
How to use AnnaWegmann/Style-Embedding with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AnnaWegmann/Style-Embedding") model = AutoModel.from_pretrained("AnnaWegmann/Style-Embedding", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files12 unmodified lines13141516171812 unmodified linesfor more info see [Style-Embeddings](https://github.com/nlpsoc/Style-Embeddings)## Usage (Sentence-Transformers)Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:12 unmodified lines131415161718192012 unmodified linesfor more info see [Style-Embeddings](https://github.com/nlpsoc/Style-Embeddings)see paper at [https://aclanthology.org/2022.repl4nlp-1.26/](https://aclanthology.org/2022.repl4nlp-1.26/)## Usage (Sentence-Transformers)Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
README.md+2