Feature Extraction
sentence-transformers
Safetensors
qwen3_vl
multi-vector
colbert
late-interaction
Generated from Trainer
dataset_size:10000
loss:CachedMultiVectorMultipleNegativesRankingLoss
Eval Results (legacy)
Instructions to use tomaarsen/ColQwen3-VL-Embedding-2B-vdr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/ColQwen3-VL-Embedding-2B-vdr with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/ColQwen3-VL-Embedding-2B-vdr") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -140,15 +140,15 @@ Then you can load this model and run inference.
|
|
| 140 |
from sentence_transformers import MultiVectorEncoder
|
| 141 |
|
| 142 |
# Download from the 🤗 Hub
|
| 143 |
-
model = MultiVectorEncoder("tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 144 |
# Run inference: each input becomes a sequence of per-token vectors (variable length).
|
| 145 |
queries = [
|
| 146 |
'What are the new anthropological perspectives on development as discussed by Quarles Van Ufford and Giri in 2003?',
|
| 147 |
]
|
| 148 |
documents = [
|
| 149 |
-
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 150 |
-
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 151 |
-
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 152 |
]
|
| 153 |
query_embeddings = model.encode_query(queries)
|
| 154 |
document_embeddings = model.encode_document(documents)
|
|
@@ -241,9 +241,9 @@ You can finetune this model on your own dataset.
|
|
| 241 |
* Samples:
|
| 242 |
| query | image | negative_0 |
|
| 243 |
|:-----------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------|:---------------------------------------------------|
|
| 244 |
-
| <code>What are the new anthropological perspectives on development as discussed by Quarles Van Ufford and Giri in 2003?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 245 |
-
| <code>What are the three main positions anthropologists have taken in relation to development, as discussed by David Lewis?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 246 |
-
| <code>Who are the three sisters known as the Fates in Greek mythology?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr
|
| 247 |
* Loss: [<code>CachedMultiVectorMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/multi_vector_encoder/losses.html#cachedmultivectormultiplenegativesrankingloss) with these parameters:
|
| 248 |
```json
|
| 249 |
{
|
|
|
|
| 140 |
from sentence_transformers import MultiVectorEncoder
|
| 141 |
|
| 142 |
# Download from the 🤗 Hub
|
| 143 |
+
model = MultiVectorEncoder("tomaarsen/ColQwen3-VL-Embedding-2B-vdr")
|
| 144 |
# Run inference: each input becomes a sequence of per-token vectors (variable length).
|
| 145 |
queries = [
|
| 146 |
'What are the new anthropological perspectives on development as discussed by Quarles Van Ufford and Giri in 2003?',
|
| 147 |
]
|
| 148 |
documents = [
|
| 149 |
+
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_0.jpg',
|
| 150 |
+
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_1.jpg',
|
| 151 |
+
'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_2.jpg',
|
| 152 |
]
|
| 153 |
query_embeddings = model.encode_query(queries)
|
| 154 |
document_embeddings = model.encode_document(documents)
|
|
|
|
| 241 |
* Samples:
|
| 242 |
| query | image | negative_0 |
|
| 243 |
|:-----------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------|:---------------------------------------------------|
|
| 244 |
+
| <code>What are the new anthropological perspectives on development as discussed by Quarles Van Ufford and Giri in 2003?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_0.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/example_image_0.jpg" width="200"> |
|
| 245 |
+
| <code>What are the three main positions anthropologists have taken in relation to development, as discussed by David Lewis?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_1.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/example_image_0.jpg" width="200"> |
|
| 246 |
+
| <code>Who are the three sisters known as the Fates in Greek mythology?</code> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/image_2.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr/resolve/main/assets/example_image_1.jpg" width="200"> |
|
| 247 |
* Loss: [<code>CachedMultiVectorMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/multi_vector_encoder/losses.html#cachedmultivectormultiplenegativesrankingloss) with these parameters:
|
| 248 |
```json
|
| 249 |
{
|