Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

sentence-transformers
/
all-roberta-large-v1

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
Transformers
English
roberta
fill-mask
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use sentence-transformers/all-roberta-large-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/all-roberta-large-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/all-roberta-large-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]
  • Transformers

    How to use sentence-transformers/all-roberta-large-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/all-roberta-large-v1")
    model = AutoModelForMaskedLM.from_pretrained("sentence-transformers/all-roberta-large-v1", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
all-roberta-large-v1
12.4 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 18 commits
tomaarsen's picture
tomaarsen HF Staff
Remove deprecated (SEB) evaluation results section
cf74d8a verified over 1 year ago
  • 1_Pooling
    upload almost 5 years ago
  • onnx
    Add exported ONNX model 'model_qint8_avx512_vnni.onnx' almost 2 years ago
  • openvino
    Add exported openvino model 'openvino_model_qint8_quantized.xml' almost 2 years ago
  • .gitattributes
    791 Bytes
    Adding `safetensors` variant of this model (#3) over 2 years ago
  • README.md
    9.68 kB
    Remove deprecated (SEB) evaluation results section over 1 year ago
  • config.json
    650 Bytes
    upload almost 5 years ago
  • config_sentence_transformers.json
    116 Bytes
    upload almost 5 years ago
  • data_config.json
    15.7 kB
    upload almost 5 years ago
  • merges.txt
    456 kB
    upload almost 5 years ago
  • model.safetensors
    1.42 GB
    xet
    Adding `safetensors` variant of this model (#3) over 2 years ago
  • modules.json
    349 Bytes
    upload almost 5 years ago
  • pytorch_model.bin
    1.42 GB
    xet
    upload almost 5 years ago
  • sentence_bert_config.json
    53 Bytes
    up almost 5 years ago
  • special_tokens_map.json
    239 Bytes
    upload almost 5 years ago
  • tokenizer.json
    1.36 MB
    upload almost 5 years ago
  • tokenizer_config.json
    328 Bytes
    upload almost 5 years ago
  • train_script.py
    13.1 kB
    upload almost 5 years ago
  • vocab.json
    798 kB
    upload almost 5 years ago