Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

sentence-transformers
/
sentence-t5-xl

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
English
t5
feature-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use sentence-transformers/sentence-t5-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/sentence-t5-xl with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/sentence-t5-xl")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
sentence-t5-xl
4.97 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 6 commits
tomaarsen's picture
tomaarsen HF Staff
Remove deprecated (SEB) evaluation results section
92e0743 verified about 1 year ago
  • 1_Pooling
    upload over 4 years ago
  • 2_Dense
    Adding `safetensors` variant of this model (#2) about 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#2) about 2 years ago
  • README.md
    1.76 kB
    Remove deprecated (SEB) evaluation results section about 1 year ago
  • config.json
    1.39 kB
    upload over 4 years ago
  • config_sentence_transformers.json
    122 Bytes
    upload over 4 years ago
  • model.safetensors
    2.48 GB
    xet
    Adding `safetensors` variant of this model (#2) about 2 years ago
  • modules.json
    461 Bytes
    upload over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.HalfStorage"

    What is a pickle import?

    2.48 GB
    xet
    upload over 4 years ago
  • sentence_bert_config.json
    53 Bytes
    upload over 4 years ago
  • special_tokens_map.json
    1.79 kB
    upload over 4 years ago
  • spiece.model
    792 kB
    xet
    upload over 4 years ago
  • tokenizer.json
    1.39 MB
    upload over 4 years ago
  • tokenizer_config.json
    1.92 kB
    upload over 4 years ago