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

  • Log In
  • Sign Up

sergioburdisso
/
space-2

Sentence Similarity
sentence-transformers
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use sergioburdisso/space-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sergioburdisso/space-2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sergioburdisso/space-2")
    
    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 sergioburdisso/space-2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("sergioburdisso/space-2")
    model = AutoModel.from_pretrained("sergioburdisso/space-2")
  • Notebooks
  • Google Colab
  • Kaggle
space-2
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
sergioburdisso's picture
sergioburdisso
Update config.json
d538871 verified 8 months ago
  • 1_Pooling
    Push model to huggingface over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    1.6 kB
    Update README.md over 1 year ago
  • config.json
    625 Bytes
    Update config.json 8 months ago
  • config_sentence_transformers.json
    123 Bytes
    Push model to huggingface over 1 year ago
  • model.safetensors
    438 MB
    xet
    Push model to huggingface over 1 year ago
  • modules.json
    229 Bytes
    Push model to huggingface over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Push model to huggingface over 1 year ago
  • special_tokens_map.json
    125 Bytes
    Push model to huggingface over 1 year ago
  • tokenizer.json
    711 kB
    Push model to huggingface over 1 year ago
  • tokenizer_config.json
    1.19 kB
    Push model to huggingface over 1 year ago
  • vocab.txt
    232 kB
    Push model to huggingface over 1 year ago