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
File size: 354 Bytes
0539af9 | 1 | {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "special_tokens_map_file": null, "name_or_path": "/hpc/uu_cs_nlpsoc/02-awegmann/sentence_transformers/roberta-base", "tokenizer_class": "RobertaTokenizer"} |