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

  • Log In
  • Sign Up

openbmb
/
MiniCPM-Embedding-Light

Feature Extraction
Transformers
Safetensors
sentence-transformers
minicpm
mteb
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use openbmb/MiniCPM-Embedding-Light with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use openbmb/MiniCPM-Embedding-Light with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="openbmb/MiniCPM-Embedding-Light", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("openbmb/MiniCPM-Embedding-Light", trust_remote_code=True, dtype="auto")
  • sentence-transformers

    How to use openbmb/MiniCPM-Embedding-Light with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("openbmb/MiniCPM-Embedding-Light", trust_remote_code=True)
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
MiniCPM-Embedding-Light
870 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 14 commits
Kaguya-19's picture
Kaguya-19
Update config_sentence_transformers.json
ce6cb0e verified 4 months ago
  • 1_Pooling
    init over 1 year ago
  • results
    init over 1 year ago
  • scripts
    Update scripts/transformers_demo.py over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    368 kB
    a over 1 year ago
  • added_tokens.json
    216 Bytes
    init over 1 year ago
  • config.json
    2.88 kB
    Update config.json over 1 year ago
  • config_sentence_transformers.json
    216 Bytes
    Update config_sentence_transformers.json 4 months ago
  • configuration_minicpm.py
    9.93 kB
    init over 1 year ago
  • model.safetensors
    868 MB
    xet
    init over 1 year ago
  • modeling_minicpm.py
    86.8 kB
    init over 1 year ago
  • modules.json
    387 Bytes
    init over 1 year ago
  • sentence_bert_config.json
    30 Bytes
    init over 1 year ago
  • special_tokens_map.json
    768 Bytes
    init over 1 year ago
  • tokenizer.model
    1.18 MB
    xet
    init over 1 year ago
  • tokenizer_config.json
    2.81 kB
    init over 1 year ago