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

  • Log In
  • Sign Up

kornwtp
/
ConGen-model-XLMR

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

Instructions to use kornwtp/ConGen-model-XLMR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use kornwtp/ConGen-model-XLMR with sentence-transformers:

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

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("kornwtp/ConGen-model-XLMR", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
ConGen-model-XLMR
1.14 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
kornwtp's picture
kornwtp
Update README.md
282ce15 verified about 2 years ago
  • 0_Transformer
    Initial commit about 2 years ago
  • 1_Pooling
    Initial commit about 2 years ago
  • 2_Dense
    Initial commit about 2 years ago
  • .gitattributes
    1.58 kB
    Initial commit about 2 years ago
  • README.md
    1.28 kB
    Update README.md about 2 years ago
  • config_sentence_transformers.json
    123 Bytes
    Initial commit about 2 years ago
  • modules.json
    354 Bytes
    Initial commit about 2 years ago