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

  • Log In
  • Sign Up

peter2000
/
tsdae_model_policy

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

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

  • Libraries
  • sentence-transformers

    How to use peter2000/tsdae_model_policy with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("peter2000/tsdae_model_policy")
    model = AutoModel.from_pretrained("peter2000/tsdae_model_policy")
  • Notebooks
  • Google Colab
  • Kaggle
tsdae_model_policy
Ctrl+K
Ctrl+K
  • 1 contributor
History: 24 commits
peter2000's picture
peter2000
Upload 1_Pooling with huggingface_hub
e839064 about 3 years ago
  • 1_Pooling
    Upload 1_Pooling with huggingface_hub about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    3.35 kB
    Pushing tsdae fine tuned model about 3 years ago
  • config.json
    658 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • config_sentence_transformers.json
    124 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • modules.json
    229 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    Pushing tsdae fine tuned model about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • special_tokens_map.json
    125 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • tokenizer.json
    712 kB
    Pushing tsdae fine tuned model about 3 years ago
  • tokenizer_config.json
    309 Bytes
    Pushing tsdae fine tuned model about 3 years ago
  • vocab.txt
    232 kB
    Pushing tsdae fine tuned model about 3 years ago