Feature Extraction
Transformers
Safetensors
sentence-transformers
minicpm
mteb
custom_code
Eval Results (legacy)
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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("openbmb/MiniCPM-Embedding-Light", trust_remote_code=True, device_map="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
citation
Browse files11988 unmodified lines119891199011991119921199311994119954 unmodified lines12000120011200212003120041200511988 unmodified lines- Outstanding cross-lingual retrieval capabilities between Chinese and English.- Long-text support (up to 8192 tokens).- Dense vectors and token-level sparse vectors.- Variable dense vector dimensions (Matryoshka representation).MiniCPM-Embedding-Light incorporates bidirectional attention and Weighted Mean Pooling [1] in its architecture. The model underwent multi-stage training using approximately 260 million training examples, including open-source, synthetic, and proprietary data.4 unmodified lines- Domain Adaptive RAG Framework: [UltraRAG](https://github.com/openbmb/UltraRAG)[1] Muennighoff, N. (2022). Sgpt: Gpt sentence embeddings for semantic search. arXiv preprint arXiv:2202.08904.## 模型信息 Model Information11988 unmodified lines119891199011991119921199311994119954 unmodified lines1200012001120021200312004120051200611988 unmodified lines- Outstanding cross-lingual retrieval capabilities between Chinese and English.- Long-text support (up to 8192 tokens).- Dense vectors and token-level sparse vectors.- Variable dense vector dimensions (Matryoshka representation [2]).MiniCPM-Embedding-Light incorporates bidirectional attention and Weighted Mean Pooling [1] in its architecture. The model underwent multi-stage training using approximately 260 million training examples, including open-source, synthetic, and proprietary data.4 unmodified lines- Domain Adaptive RAG Framework: [UltraRAG](https://github.com/openbmb/UltraRAG)[1] Muennighoff, N. (2022). Sgpt: Gpt sentence embeddings for semantic search. arXiv preprint arXiv:2202.08904.[2] Kusupati, Aditya, et al. "Matryoshka representation learning." Advances in Neural Information Processing Systems 35 (2022): 30233-30249.## 模型信息 Model Information
README.md+2-1