Feature Extraction
sentence-transformers
Safetensors
English
modernbert
multi-vector
colbert
late-interaction
text-embeddings-inference
Instructions to use multi-vector-encoder/ModernBERT-base-en-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use multi-vector-encoder/ModernBERT-base-en-v1 with sentence-transformers:
from sentence_transformers import MultiVectorEncoder model = MultiVectorEncoder("multi-vector-encoder/ModernBERT-base-en-v1") queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ This is a [Multi-Vector Encoder](https://www.sbert.net/docs/multi_vector_encoder
|
|
| 20 |
|
| 21 |
The merged model scores above the average of its two parents on **9 of the 13 NanoBEIR datasets**, including **5 where it beats both**. It achieves a mean nDCG@10 of **0.7061**, compared with **0.6996** for GLInt and **0.6979** for LateOn-regularized, using the same inference settings for all three models.
|
| 22 |
|
| 23 |
-
It took a whopping 6 lines of code to merge the models and set the document length, and it took about 12 seconds to execute. See [Model Creation](#model-creation) for the full generation script.
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
The merged model scores above the average of its two parents on **9 of the 13 NanoBEIR datasets**, including **5 where it beats both**. It achieves a mean nDCG@10 of **0.7061**, compared with **0.6996** for GLInt and **0.6979** for LateOn-regularized, using the same inference settings for all three models.
|
| 22 |
|
| 23 |
+
It took a whopping 6 lines of code to merge the models and set the document length, and it took about 12 seconds to execute. See [Model Creation](#model-creation) for the full generation script. The merging settings were not based on any evaluation results.
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|