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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

lmxhappy
/
xiaosenlin-bert

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

Instructions to use lmxhappy/xiaosenlin-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use lmxhappy/xiaosenlin-bert with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("lmxhappy/xiaosenlin-bert")
    model = AutoModel.from_pretrained("lmxhappy/xiaosenlin-bert", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • 1_Pooling
    pool almost 4 years ago
  • .gitattributes
    1.34 kB
    initial commit almost 4 years ago
  • README.md
    3.52 kB
    Upload README.md almost 4 years ago
  • config.json
    816 Bytes
    add almost 4 years ago
  • config_sentence_transformers.json
    123 Bytes
    add (#1) almost 4 years ago
  • modules.json
    229 Bytes
    Upload modules.json almost 4 years ago
  • pytorch_model.bin
    409 MB
    xet
    Upload pytorch_model.bin almost 4 years ago
  • sentence_bert_config.json
    52 Bytes
    Upload sentence_bert_config.json almost 4 years ago
  • special_tokens_map.json
    112 Bytes
    Upload special_tokens_map.json almost 4 years ago
  • tokenizer_config.json
    428 Bytes
    Upload tokenizer_config.json almost 4 years ago
  • vocab.txt
    110 kB
    Upload vocab.txt almost 4 years ago