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
/
distilroberta-base-paraphrase-v1

Sentence Similarity
sentence-transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
Transformers
roberta
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use sentence-transformers/distilroberta-base-paraphrase-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/distilroberta-base-paraphrase-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/distilroberta-base-paraphrase-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/distilroberta-base-paraphrase-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/distilroberta-base-paraphrase-v1")
    model = AutoModel.from_pretrained("sentence-transformers/distilroberta-base-paraphrase-v1", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
distilroberta-base-paraphrase-v1
988 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 8 commits
tomaarsen's picture
tomaarsen HF Staff
Remove deprecated (SEB) evaluation results section
c68bdef verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model. about 5 years ago
  • .gitattributes
    744 Bytes
    Adding `safetensors` variant of this model (#2) over 2 years ago
  • README.md
    3.55 kB
    Remove deprecated (SEB) evaluation results section over 1 year ago
  • config.json
    718 Bytes
    Add new SentenceTransformer model. about 5 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add new SentenceTransformer model. about 5 years ago
  • merges.txt
    456 kB
    Add new SentenceTransformer model. about 5 years ago
  • model.safetensors
    328 MB
    xet
    Adding `safetensors` variant of this model (#2) over 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. about 5 years ago
  • pytorch_model.bin
    329 MB
    xet
    Add new SentenceTransformer model. about 5 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. about 5 years ago
  • special_tokens_map.json
    239 Bytes
    Add new SentenceTransformer model. about 5 years ago
  • tf_model.h5
    329 MB
    xet
    Add TF weights about 4 years ago
  • tokenizer.json
    1.36 MB
    Add new SentenceTransformer model. about 5 years ago
  • tokenizer_config.json
    1.35 kB
    Add new SentenceTransformer model. about 5 years ago
  • vocab.json
    798 kB
    Add new SentenceTransformer model. about 5 years ago