Feature Extraction
sentence-transformers
Safetensors
English
colqwen2
multi-vector
colbert
late-interaction
Generated from Trainer
dataset_size:3475
loss:MultiVectorMultipleNegativesRankingLoss
Eval Results (legacy)
Instructions to use tomaarsen/multivector-colqwen2-v1.0-hf-docqa-energy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/multivector-colqwen2-v1.0-hf-docqa-energy with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/multivector-colqwen2-v1.0-hf-docqa-energy") 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
File size: 4,753 Bytes
ffd2587 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | {
"architectures": [
"ColQwen2ForRetrieval"
],
"dtype": "bfloat16",
"embedding_dim": 128,
"eos_token_id": 151645,
"initializer_range": 0.02,
"is_composition": false,
"model_type": "colqwen2",
"pad_token_id": 151643,
"transformers_version": "5.14.1",
"use_cache": false,
"vlm_config": {
"_name_or_path": "Qwen/Qwen2-VL-2B-Instruct",
"dtype": "bfloat16",
"image_token_id": 151655,
"model_type": "qwen2_vl",
"text_config": {
"_name_or_path": "vidore/colqwen2-base",
"add_cross_attention": false,
"architectures": [
"ColQwen2"
],
"attention_dropout": 0.0,
"bos_token_id": 151643,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"dtype": "bfloat16",
"eos_token_id": 151645,
"finetuning_task": null,
"hidden_act": "silu",
"hidden_size": 1536,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"image_token_id": null,
"initializer_range": 0.02,
"intermediate_size": 8960,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_types": [
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention"
],
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen2_vl_text",
"num_attention_heads": 12,
"num_hidden_layers": 28,
"num_key_value_heads": 2,
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"return_dict": true,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"mrope_section": [
16,
24,
24
],
"rope_theta": 1000000.0,
"rope_type": "default",
"type": "default"
},
"sep_token_id": null,
"sliding_window": null,
"task_specific_params": null,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"torchscript": false,
"use_bfloat16": false,
"use_cache": true,
"use_sliding_window": false,
"video_token_id": null,
"vision_end_token_id": 151653,
"vision_start_token_id": 151652,
"vision_token_id": 151654,
"vocab_size": 151936
},
"tie_word_embeddings": false,
"video_token_id": 151656,
"vision_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"depth": 32,
"dtype": "bfloat16",
"embed_dim": 1280,
"eos_token_id": null,
"finetuning_task": null,
"hidden_act": "quick_gelu",
"hidden_size": 1536,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"in_channels": 3,
"in_chans": 3,
"initializer_range": 0.02,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"mlp_ratio": 4,
"model_type": "qwen2_vl_vision",
"num_heads": 16,
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"patch_size": 14,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"return_dict": true,
"sep_token_id": null,
"spatial_merge_size": 2,
"spatial_patch_size": 14,
"task_specific_params": null,
"temporal_patch_size": 2,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"torchscript": false,
"use_bfloat16": false
},
"vision_end_token_id": 151653,
"vision_start_token_id": 151652,
"vision_token_id": 151654,
"vocab_size": 151936
}
}
|