Feature Extraction
sentence-transformers
PyTorch
Transformers
English
Chinese
xlm-roberta
sentence-similarity
text-embeddings-inference
Instructions to use maidalun1020/bce-embedding-base_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use maidalun1020/bce-embedding-base_v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("maidalun1020/bce-embedding-base_v1") 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] - Transformers
How to use maidalun1020/bce-embedding-base_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="maidalun1020/bce-embedding-base_v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("maidalun1020/bce-embedding-base_v1") model = AutoModel.from_pretrained("maidalun1020/bce-embedding-base_v1", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ language:
|
|
| 46 |
- Related link for **RerankerModel** : [bce-reranker-base_v1](https://huggingface.co/maidalun1020/bce-reranker-base_v1)
|
| 47 |
|
| 48 |
## Third-party Examples:
|
| 49 |
-
- RAG applications: [QAnything](https://github.com/netease-youdao/qanything), [HuixiangDou](https://github.com/InternLM/HuixiangDou), [ChatPDF](https://github.com/shibing624/ChatPDF).
|
| 50 |
- Efficient inference framework: [ChatLLM.cpp](https://github.com/foldl/chatllm.cpp), [Xinference](https://github.com/xorbitsai/inference), [mindnlp (Huawei GPU, 鍗庝负GPU)](https://github.com/mindspore-lab/mindnlp/tree/master/llm/inference/bce).
|
| 51 |
|
| 52 |

|
|
|
|
| 46 |
- Related link for **RerankerModel** : [bce-reranker-base_v1](https://huggingface.co/maidalun1020/bce-reranker-base_v1)
|
| 47 |
|
| 48 |
## Third-party Examples:
|
| 49 |
+
- RAG applications: [QAnything](https://github.com/netease-youdao/qanything), [ragflow](https://github.com/infiniflow/ragflow), [HuixiangDou](https://github.com/InternLM/HuixiangDou), [ChatPDF](https://github.com/shibing624/ChatPDF).
|
| 50 |
- Efficient inference framework: [ChatLLM.cpp](https://github.com/foldl/chatllm.cpp), [Xinference](https://github.com/xorbitsai/inference), [mindnlp (Huawei GPU, 鍗庝负GPU)](https://github.com/mindspore-lab/mindnlp/tree/master/llm/inference/bce).
|
| 51 |
|
| 52 |

|