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

  • Log In
  • Sign Up

dalietng
/
fine-tune_simcse

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

Instructions to use dalietng/fine-tune_simcse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use dalietng/fine-tune_simcse with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("dalietng/fine-tune_simcse")
    model = AutoModel.from_pretrained("dalietng/fine-tune_simcse")
  • Notebooks
  • Google Colab
  • Kaggle
fine-tune_simcse
542 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
dalietng's picture
dalietng
1_polling/config
22d7744 over 2 years ago
  • 1_Pooling
    1_polling/config over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    3.69 kB
    not_zip over 2 years ago
  • added_tokens.json
    75 Bytes
    not_zip over 2 years ago
  • bpe.codes
    1.14 MB
    not_zip over 2 years ago
  • config.json
    774 Bytes
    not_zip over 2 years ago
  • config_sentence_transformers.json
    123 Bytes
    not_zip over 2 years ago
  • modules.json
    229 Bytes
    not_zip over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    540 MB
    xet
    not_zip over 2 years ago
  • sentence_bert_config.json
    53 Bytes
    not_zip over 2 years ago
  • special_tokens_map.json
    167 Bytes
    not_zip over 2 years ago
  • tokenizer_config.json
    1.21 kB
    not_zip over 2 years ago
  • vocab.txt
    895 kB
    not_zip over 2 years ago