tomaarsen HF Staff commited on
Commit
b91a114
·
verified ·
1 Parent(s): f6d5fbe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
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-headlr")
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-headlr/resolve/main/assets/image_0.jpg',
150
- 'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr-headlr/resolve/main/assets/image_1.jpg',
151
- 'https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr-headlr/resolve/main/assets/image_2.jpg',
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-headlr/resolve/main/assets/image_0.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr-headlr/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-headlr/resolve/main/assets/image_1.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr-headlr/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-headlr/resolve/main/assets/image_2.jpg" width="200"> | <img src="https://huggingface.co/tomaarsen/ColQwen3-VL-Embedding-2B-vdr-headlr/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
  {
 
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
  {