Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

sembeddings
/
model_gpt_trained

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

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

  • Libraries
  • sentence-transformers

    How to use sembeddings/model_gpt_trained with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sembeddings/model_gpt_trained")
    
    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
model_gpt_trained / 2_Dense
4.72 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
db849ac verified about 2 years ago
  • config.json
    115 Bytes
    Upload 2 files almost 4 years ago
  • model.safetensors
    2.36 MB
    xet
    Adding `safetensors` variant of this model about 2 years ago
  • pytorch_model.bin
    2.36 MB
    xet
    Upload 2 files almost 4 years ago