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

  • Log In
  • Sign Up

Ketan3101
/
sentensense

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

Instructions to use Ketan3101/sentensense with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Ketan3101/sentensense with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("Ketan3101/sentensense")
    model = AutoModel.from_pretrained("Ketan3101/sentensense")
  • Notebooks
  • Google Colab
  • Kaggle
sentensense
332 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
Ketan3101's picture
Ketan3101
Update README.md
ddafd67 almost 3 years ago
  • 1_Pooling
    Upload folder using huggingface_hub almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    4.27 kB
    Update README.md almost 3 years ago
  • config.json
    777 Bytes
    Pushing SentenSense almost 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Pushing SentenSense almost 3 years ago
  • merges.txt
    456 kB
    Pushing SentenSense almost 3 years ago
  • modules.json
    229 Bytes
    Pushing SentenSense almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    329 MB
    xet
    Pushing SentenSense almost 3 years ago
  • sentence_bert_config.json
    52 Bytes
    Pushing SentenSense almost 3 years ago
  • special_tokens_map.json
    280 Bytes
    Pushing SentenSense almost 3 years ago
  • tokenizer.json
    2.11 MB
    Pushing SentenSense almost 3 years ago
  • tokenizer_config.json
    1.34 kB
    Pushing SentenSense almost 3 years ago
  • vocab.json
    798 kB
    Pushing SentenSense almost 3 years ago