Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- chat_template.json +3 -0
- config.json +145 -0
- generation_config.json +7 -0
- model-00001-of-00007.safetensors +3 -0
- model-00002-of-00007.safetensors +3 -0
- model-00003-of-00007.safetensors +3 -0
- model-00004-of-00007.safetensors +3 -0
- model-00005-of-00007.safetensors +3 -0
- model-00006-of-00007.safetensors +3 -0
- model-00007-of-00007.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +27 -0
- processor_config.json +13 -0
- special_tokens_map.json +23 -0
- tokenizer.json +3 -0
- tokenizer_config.json +352 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "{{ bos_token }}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>You are Aya Vision, a brilliant, sophisticated, AI-assistant chatbot trained to assist human users by providing thorough responses. You are a large vision language model built by the Cohere For AI. You are capable of interpreting images, including describing them, answering questions about their contents, extracting textual information, and analyzing visual context.<|END_OF_TURN_TOKEN|>\n{%- for message in messages -%}\n <|START_OF_TURN_TOKEN|>{{ message.role | replace(\"user\", \"<|USER_TOKEN|>\") | replace(\"assistant\", \"<|CHATBOT_TOKEN|><|START_RESPONSE|>\") | replace(\"system\", \"<|SYSTEM_TOKEN|>\") }}\n {%- if message.content is defined -%}\n {%- if message.content is string -%}\n{{ message.content }}\n {%- else -%}\n {%- for item in message.content | selectattr('type', 'equalto', 'image') -%}\n<image>\n {%- endfor -%}\n {%- for item in message.content | selectattr('type', 'equalto', 'text') -%}\n{{ item.text }}\n {%- endfor -%}\n {%- endif -%}\n {%- elif message.message is defined -%}\n {%- if message.message is string -%}\n{{ message.message }}\n {%- else -%}\n {%- for item in message.message | selectattr('type', 'equalto', 'image') -%}\n<image>\n {%- endfor -%}\n {%- for item in message.message | selectattr('type', 'equalto', 'text') -%}\n{{ item.text }}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {%- if message.role == \"assistant\" -%}\n<|END_RESPONSE|>\n {%- endif -%}\n<|END_OF_TURN_TOKEN|>\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>\n{%- endif -%}\n"
|
| 3 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_layer_norm_eps": 1e-06,
|
| 3 |
+
"alignment_activation_fn": "swiglu",
|
| 4 |
+
"alignment_intermediate_size": 49152,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"AyaVisionForConditionalGeneration"
|
| 7 |
+
],
|
| 8 |
+
"bos_token_id": 5,
|
| 9 |
+
"downsample_factor": 2,
|
| 10 |
+
"eos_token_id": 255001,
|
| 11 |
+
"image_token_index": 255022,
|
| 12 |
+
"max_splits_per_img": 12,
|
| 13 |
+
"model_type": "aya_vision",
|
| 14 |
+
"pad_token_id": 0,
|
| 15 |
+
"projector_hidden_act": "gelu",
|
| 16 |
+
"quantization_config": {
|
| 17 |
+
"_load_in_4bit": true,
|
| 18 |
+
"_load_in_8bit": false,
|
| 19 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 20 |
+
"bnb_4bit_quant_storage": "uint8",
|
| 21 |
+
"bnb_4bit_quant_type": "nf4",
|
| 22 |
+
"bnb_4bit_use_double_quant": true,
|
| 23 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 24 |
+
"llm_int8_has_fp16_weight": false,
|
| 25 |
+
"llm_int8_skip_modules": [
|
| 26 |
+
"lm_head",
|
| 27 |
+
"multi_modal_projector",
|
| 28 |
+
"merger",
|
| 29 |
+
"modality_projection",
|
| 30 |
+
"language_model.model.layers.31.mlp",
|
| 31 |
+
"language_model.model.layers.32.mlp",
|
| 32 |
+
"language_model.model.layers.33.mlp",
|
| 33 |
+
"language_model.model.layers.36.self_attn",
|
| 34 |
+
"language_model.model.layers.34.mlp",
|
| 35 |
+
"language_model.model.layers.35.mlp",
|
| 36 |
+
"language_model.model.layers.36.mlp",
|
| 37 |
+
"language_model.model.layers.37.self_attn",
|
| 38 |
+
"vision_tower.vision_model.encoder.layers.19.mlp",
|
| 39 |
+
"vision_tower.vision_model.encoder.layers.20.self_attn",
|
| 40 |
+
"vision_tower.vision_model.encoder.layers.19.self_attn",
|
| 41 |
+
"vision_tower.vision_model.encoder.layers.20.mlp",
|
| 42 |
+
"vision_tower.vision_model.encoder.layers.22.self_attn",
|
| 43 |
+
"vision_tower.vision_model.encoder.layers.25.self_attn",
|
| 44 |
+
"vision_tower.vision_model.encoder.layers.21.mlp",
|
| 45 |
+
"vision_tower.vision_model.encoder.layers.23.self_attn",
|
| 46 |
+
"language_model.model.layers.2.mlp",
|
| 47 |
+
"vision_tower.vision_model.encoder.layers.18.mlp",
|
| 48 |
+
"vision_tower.vision_model.encoder.layers.22.mlp",
|
| 49 |
+
"vision_tower.vision_model.encoder.layers.21.self_attn",
|
| 50 |
+
"vision_tower.vision_model.encoder.layers.24.self_attn",
|
| 51 |
+
"vision_tower.vision_model.encoder.layers.18.self_attn",
|
| 52 |
+
"vision_tower.vision_model.encoder.layers.23.mlp",
|
| 53 |
+
"language_model.model.layers.37.mlp",
|
| 54 |
+
"vision_tower.vision_model.encoder.layers.17.self_attn",
|
| 55 |
+
"vision_tower.vision_model.encoder.layers.17.mlp",
|
| 56 |
+
"vision_tower.vision_model.encoder.layers.16.mlp",
|
| 57 |
+
"vision_tower.vision_model.encoder.layers.24.mlp",
|
| 58 |
+
"vision_tower.vision_model.encoder.layers.16.self_attn",
|
| 59 |
+
"vision_tower.vision_model.encoder.layers.14.mlp",
|
| 60 |
+
"vision_tower.vision_model.encoder.layers.25.mlp",
|
| 61 |
+
"vision_tower.vision_model.encoder.layers.15.mlp",
|
| 62 |
+
"vision_tower.vision_model.encoder.layers.26.mlp",
|
| 63 |
+
"vision_tower.vision_model.encoder.layers.26.self_attn",
|
| 64 |
+
"vision_tower.vision_model.encoder.layers.15.self_attn",
|
| 65 |
+
"vision_tower.vision_model.encoder.layers.14.self_attn",
|
| 66 |
+
"multi_modal_projector",
|
| 67 |
+
"vision_tower.vision_model.encoder.layers.13.mlp",
|
| 68 |
+
"vision_tower.vision_model.encoder.layers.12.mlp",
|
| 69 |
+
"vision_tower.vision_model.encoder.layers.13.self_attn",
|
| 70 |
+
"vision_tower.vision_model.encoder.layers.11.mlp",
|
| 71 |
+
"vision_tower.vision_model.encoder.layers.12.self_attn",
|
| 72 |
+
"vision_tower.vision_model.encoder.layers.9.self_attn",
|
| 73 |
+
"vision_tower.vision_model.encoder.layers.11.self_attn",
|
| 74 |
+
"vision_tower.vision_model.encoder.layers.10.self_attn",
|
| 75 |
+
"language_model.model.layers.38.mlp",
|
| 76 |
+
"vision_tower.vision_model.encoder.layers.10.mlp",
|
| 77 |
+
"vision_tower.vision_model.encoder.layers.6.self_attn",
|
| 78 |
+
"vision_tower.vision_model.encoder.layers.7.self_attn",
|
| 79 |
+
"vision_tower.vision_model.encoder.layers.8.mlp",
|
| 80 |
+
"vision_tower.vision_model.encoder.layers.8.self_attn",
|
| 81 |
+
"vision_tower.vision_model.encoder.layers.7.mlp",
|
| 82 |
+
"vision_tower.vision_model.encoder.layers.9.mlp",
|
| 83 |
+
"vision_tower.vision_model.encoder.layers.5.self_attn",
|
| 84 |
+
"vision_tower.vision_model.encoder.layers.3.self_attn",
|
| 85 |
+
"vision_tower.vision_model.encoder.layers.6.mlp",
|
| 86 |
+
"vision_tower.vision_model.encoder.layers.4.self_attn",
|
| 87 |
+
"vision_tower.vision_model.encoder.layers.5.mlp",
|
| 88 |
+
"vision_tower.vision_model.encoder.layers.4.mlp",
|
| 89 |
+
"vision_tower.vision_model.encoder.layers.0.self_attn",
|
| 90 |
+
"vision_tower.vision_model.encoder.layers.3.mlp",
|
| 91 |
+
"vision_tower.vision_model.encoder.layers.2.self_attn",
|
| 92 |
+
"vision_tower.vision_model.encoder.layers.2.mlp",
|
| 93 |
+
"vision_tower.vision_model.encoder.layers.1.mlp",
|
| 94 |
+
"vision_tower.vision_model.encoder.layers.1.self_attn",
|
| 95 |
+
"vision_tower.vision_model.encoder.layers.0.mlp",
|
| 96 |
+
"language_model.model.layers.38.self_attn",
|
| 97 |
+
"language_model.model.layers.39.mlp"
|
| 98 |
+
],
|
| 99 |
+
"llm_int8_threshold": 6.0,
|
| 100 |
+
"load_in_4bit": true,
|
| 101 |
+
"load_in_8bit": false,
|
| 102 |
+
"quant_method": "bitsandbytes"
|
| 103 |
+
},
|
| 104 |
+
"text_config": {
|
| 105 |
+
"attention_bias": false,
|
| 106 |
+
"attention_dropout": 0.0,
|
| 107 |
+
"hidden_act": "silu",
|
| 108 |
+
"hidden_size": 8192,
|
| 109 |
+
"initializer_range": 0.02,
|
| 110 |
+
"intermediate_size": 24576,
|
| 111 |
+
"layer_norm_eps": 1e-05,
|
| 112 |
+
"logit_scale": 0.0625,
|
| 113 |
+
"max_position_embeddings": 8192,
|
| 114 |
+
"model_type": "cohere",
|
| 115 |
+
"num_attention_heads": 64,
|
| 116 |
+
"num_hidden_layers": 40,
|
| 117 |
+
"num_key_value_heads": 8,
|
| 118 |
+
"rope_scaling": null,
|
| 119 |
+
"rope_theta": 4000000,
|
| 120 |
+
"torch_dtype": "bfloat16",
|
| 121 |
+
"use_cache": true,
|
| 122 |
+
"use_qk_norm": false,
|
| 123 |
+
"vocab_size": 256000
|
| 124 |
+
},
|
| 125 |
+
"torch_dtype": "bfloat16",
|
| 126 |
+
"transformers_version": "4.50.0.dev0",
|
| 127 |
+
"unsloth_fixed": true,
|
| 128 |
+
"vision_config": {
|
| 129 |
+
"attention_dropout": 0.0,
|
| 130 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 131 |
+
"hidden_size": 1152,
|
| 132 |
+
"image_size": 364,
|
| 133 |
+
"intermediate_size": 4304,
|
| 134 |
+
"layer_norm_eps": 1e-06,
|
| 135 |
+
"model_type": "siglip_vision_model",
|
| 136 |
+
"num_attention_heads": 16,
|
| 137 |
+
"num_channels": 3,
|
| 138 |
+
"num_hidden_layers": 27,
|
| 139 |
+
"patch_size": 14,
|
| 140 |
+
"torch_dtype": "bfloat16",
|
| 141 |
+
"vision_use_head": false
|
| 142 |
+
},
|
| 143 |
+
"vision_feature_layer": -1,
|
| 144 |
+
"vision_feature_select_strategy": "full"
|
| 145 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 5,
|
| 4 |
+
"eos_token_id": 255001,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.50.0.dev0"
|
| 7 |
+
}
|
model-00001-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:828f6155b3304a2155ee917a11787954afc6bd48737959470b4e400bfd62fcca
|
| 3 |
+
size 1681684424
|
model-00002-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e9f7b3c4f519ebe12fbcd9b20db4eb57bc02f46d0bc7a36e059d48d5f63aac4
|
| 3 |
+
size 4973302372
|
model-00003-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0bfa0797e4ee063ed978fad66262e749b9b34196ae8a4663c0b10f8a10eb348
|
| 3 |
+
size 4973132846
|
model-00004-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:931e984182245661169d52b5c80dc636fabd91e9f18d40d68c5a29f171767da3
|
| 3 |
+
size 4959628984
|
model-00005-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db346860cfe0307d041ea3875b3cf9670433e881f71e34236168f0120610bc98
|
| 3 |
+
size 4908751804
|
model-00006-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5041f6f860337dfcb53c596bb2457f5ce60a55adb5355e794d09631056f9e5f6
|
| 3 |
+
size 4887030255
|
model-00007-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b99f567feb6ffc3455acc27864a86d50793eb9ed4ca97eff7a1db603cbbeb9d
|
| 3 |
+
size 4708498449
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_to_patches": false,
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "GotOcr2ImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"max_patches": 12,
|
| 19 |
+
"min_patches": 1,
|
| 20 |
+
"processor_class": "AyaVisionProcessor",
|
| 21 |
+
"resample": 3,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"height": 364,
|
| 25 |
+
"width": 364
|
| 26 |
+
}
|
| 27 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"end_of_img_token": "<|END_OF_IMG|>",
|
| 3 |
+
"image_token": "<image>",
|
| 4 |
+
"img_line_break_token": "<|IMG_LINE_BREAK|>",
|
| 5 |
+
"img_patch_token": "<|IMG_PATCH|>",
|
| 6 |
+
"img_size": 364,
|
| 7 |
+
"patch_size": 28,
|
| 8 |
+
"processor_class": "AyaVisionProcessor",
|
| 9 |
+
"start_of_img_token": "<|START_OF_IMG|>",
|
| 10 |
+
"tile_global_token": "TILE_GLOBAL",
|
| 11 |
+
"tile_token": "TILE",
|
| 12 |
+
"vision_feature_select_strategy": "full"
|
| 13 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<BOS_TOKEN>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|END_OF_TURN_TOKEN|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<PAD>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
}
|
| 23 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbb2974c7ff2633f0dce4490be28531dca552e3ecfafad7a2dfd0e8b212534fc
|
| 3 |
+
size 20124863
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": false,
|
| 5 |
+
"added_tokens_decoder": {
|
| 6 |
+
"0": {
|
| 7 |
+
"content": "<PAD>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false,
|
| 12 |
+
"special": true
|
| 13 |
+
},
|
| 14 |
+
"1": {
|
| 15 |
+
"content": "<UNK>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false,
|
| 20 |
+
"special": true
|
| 21 |
+
},
|
| 22 |
+
"2": {
|
| 23 |
+
"content": "<CLS>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false,
|
| 28 |
+
"special": true
|
| 29 |
+
},
|
| 30 |
+
"3": {
|
| 31 |
+
"content": "<SEP>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false,
|
| 36 |
+
"special": true
|
| 37 |
+
},
|
| 38 |
+
"4": {
|
| 39 |
+
"content": "<MASK_TOKEN>",
|
| 40 |
+
"lstrip": false,
|
| 41 |
+
"normalized": false,
|
| 42 |
+
"rstrip": false,
|
| 43 |
+
"single_word": false,
|
| 44 |
+
"special": true
|
| 45 |
+
},
|
| 46 |
+
"5": {
|
| 47 |
+
"content": "<BOS_TOKEN>",
|
| 48 |
+
"lstrip": false,
|
| 49 |
+
"normalized": false,
|
| 50 |
+
"rstrip": false,
|
| 51 |
+
"single_word": false,
|
| 52 |
+
"special": true
|
| 53 |
+
},
|
| 54 |
+
"6": {
|
| 55 |
+
"content": "<EOS_TOKEN>",
|
| 56 |
+
"lstrip": false,
|
| 57 |
+
"normalized": false,
|
| 58 |
+
"rstrip": false,
|
| 59 |
+
"single_word": false,
|
| 60 |
+
"special": true
|
| 61 |
+
},
|
| 62 |
+
"7": {
|
| 63 |
+
"content": "<EOP_TOKEN>",
|
| 64 |
+
"lstrip": false,
|
| 65 |
+
"normalized": false,
|
| 66 |
+
"rstrip": false,
|
| 67 |
+
"single_word": false,
|
| 68 |
+
"special": true
|
| 69 |
+
},
|
| 70 |
+
"255000": {
|
| 71 |
+
"content": "<|START_OF_TURN_TOKEN|>",
|
| 72 |
+
"lstrip": false,
|
| 73 |
+
"normalized": false,
|
| 74 |
+
"rstrip": false,
|
| 75 |
+
"single_word": false,
|
| 76 |
+
"special": false
|
| 77 |
+
},
|
| 78 |
+
"255001": {
|
| 79 |
+
"content": "<|END_OF_TURN_TOKEN|>",
|
| 80 |
+
"lstrip": false,
|
| 81 |
+
"normalized": false,
|
| 82 |
+
"rstrip": false,
|
| 83 |
+
"single_word": false,
|
| 84 |
+
"special": true
|
| 85 |
+
},
|
| 86 |
+
"255002": {
|
| 87 |
+
"content": "<|YES_TOKEN|>",
|
| 88 |
+
"lstrip": false,
|
| 89 |
+
"normalized": false,
|
| 90 |
+
"rstrip": false,
|
| 91 |
+
"single_word": false,
|
| 92 |
+
"special": false
|
| 93 |
+
},
|
| 94 |
+
"255003": {
|
| 95 |
+
"content": "<|NO_TOKEN|>",
|
| 96 |
+
"lstrip": false,
|
| 97 |
+
"normalized": false,
|
| 98 |
+
"rstrip": false,
|
| 99 |
+
"single_word": false,
|
| 100 |
+
"special": false
|
| 101 |
+
},
|
| 102 |
+
"255004": {
|
| 103 |
+
"content": "<|GOOD_TOKEN|>",
|
| 104 |
+
"lstrip": false,
|
| 105 |
+
"normalized": false,
|
| 106 |
+
"rstrip": false,
|
| 107 |
+
"single_word": false,
|
| 108 |
+
"special": false
|
| 109 |
+
},
|
| 110 |
+
"255005": {
|
| 111 |
+
"content": "<|BAD_TOKEN|>",
|
| 112 |
+
"lstrip": false,
|
| 113 |
+
"normalized": false,
|
| 114 |
+
"rstrip": false,
|
| 115 |
+
"single_word": false,
|
| 116 |
+
"special": false
|
| 117 |
+
},
|
| 118 |
+
"255006": {
|
| 119 |
+
"content": "<|USER_TOKEN|>",
|
| 120 |
+
"lstrip": false,
|
| 121 |
+
"normalized": false,
|
| 122 |
+
"rstrip": false,
|
| 123 |
+
"single_word": false,
|
| 124 |
+
"special": false
|
| 125 |
+
},
|
| 126 |
+
"255007": {
|
| 127 |
+
"content": "<|CHATBOT_TOKEN|>",
|
| 128 |
+
"lstrip": false,
|
| 129 |
+
"normalized": false,
|
| 130 |
+
"rstrip": false,
|
| 131 |
+
"single_word": false,
|
| 132 |
+
"special": false
|
| 133 |
+
},
|
| 134 |
+
"255008": {
|
| 135 |
+
"content": "<|SYSTEM_TOKEN|>",
|
| 136 |
+
"lstrip": false,
|
| 137 |
+
"normalized": false,
|
| 138 |
+
"rstrip": false,
|
| 139 |
+
"single_word": false,
|
| 140 |
+
"special": false
|
| 141 |
+
},
|
| 142 |
+
"255009": {
|
| 143 |
+
"content": "<|USER_0_TOKEN|>",
|
| 144 |
+
"lstrip": false,
|
| 145 |
+
"normalized": false,
|
| 146 |
+
"rstrip": false,
|
| 147 |
+
"single_word": false,
|
| 148 |
+
"special": false
|
| 149 |
+
},
|
| 150 |
+
"255010": {
|
| 151 |
+
"content": "<|USER_1_TOKEN|>",
|
| 152 |
+
"lstrip": false,
|
| 153 |
+
"normalized": false,
|
| 154 |
+
"rstrip": false,
|
| 155 |
+
"single_word": false,
|
| 156 |
+
"special": false
|
| 157 |
+
},
|
| 158 |
+
"255011": {
|
| 159 |
+
"content": "<|USER_2_TOKEN|>",
|
| 160 |
+
"lstrip": false,
|
| 161 |
+
"normalized": false,
|
| 162 |
+
"rstrip": false,
|
| 163 |
+
"single_word": false,
|
| 164 |
+
"special": false
|
| 165 |
+
},
|
| 166 |
+
"255012": {
|
| 167 |
+
"content": "<|USER_3_TOKEN|>",
|
| 168 |
+
"lstrip": false,
|
| 169 |
+
"normalized": false,
|
| 170 |
+
"rstrip": false,
|
| 171 |
+
"single_word": false,
|
| 172 |
+
"special": false
|
| 173 |
+
},
|
| 174 |
+
"255013": {
|
| 175 |
+
"content": "<|USER_4_TOKEN|>",
|
| 176 |
+
"lstrip": false,
|
| 177 |
+
"normalized": false,
|
| 178 |
+
"rstrip": false,
|
| 179 |
+
"single_word": false,
|
| 180 |
+
"special": false
|
| 181 |
+
},
|
| 182 |
+
"255014": {
|
| 183 |
+
"content": "<|USER_5_TOKEN|>",
|
| 184 |
+
"lstrip": false,
|
| 185 |
+
"normalized": false,
|
| 186 |
+
"rstrip": false,
|
| 187 |
+
"single_word": false,
|
| 188 |
+
"special": false
|
| 189 |
+
},
|
| 190 |
+
"255015": {
|
| 191 |
+
"content": "<|USER_6_TOKEN|>",
|
| 192 |
+
"lstrip": false,
|
| 193 |
+
"normalized": false,
|
| 194 |
+
"rstrip": false,
|
| 195 |
+
"single_word": false,
|
| 196 |
+
"special": false
|
| 197 |
+
},
|
| 198 |
+
"255016": {
|
| 199 |
+
"content": "<|USER_7_TOKEN|>",
|
| 200 |
+
"lstrip": false,
|
| 201 |
+
"normalized": false,
|
| 202 |
+
"rstrip": false,
|
| 203 |
+
"single_word": false,
|
| 204 |
+
"special": false
|
| 205 |
+
},
|
| 206 |
+
"255017": {
|
| 207 |
+
"content": "<|USER_8_TOKEN|>",
|
| 208 |
+
"lstrip": false,
|
| 209 |
+
"normalized": false,
|
| 210 |
+
"rstrip": false,
|
| 211 |
+
"single_word": false,
|
| 212 |
+
"special": false
|
| 213 |
+
},
|
| 214 |
+
"255018": {
|
| 215 |
+
"content": "<|USER_9_TOKEN|>",
|
| 216 |
+
"lstrip": false,
|
| 217 |
+
"normalized": false,
|
| 218 |
+
"rstrip": false,
|
| 219 |
+
"single_word": false,
|
| 220 |
+
"special": false
|
| 221 |
+
},
|
| 222 |
+
"255019": {
|
| 223 |
+
"content": "<|START_OF_IMG|>",
|
| 224 |
+
"lstrip": false,
|
| 225 |
+
"normalized": false,
|
| 226 |
+
"rstrip": false,
|
| 227 |
+
"single_word": false,
|
| 228 |
+
"special": false
|
| 229 |
+
},
|
| 230 |
+
"255020": {
|
| 231 |
+
"content": "<|END_OF_IMG|>",
|
| 232 |
+
"lstrip": false,
|
| 233 |
+
"normalized": false,
|
| 234 |
+
"rstrip": false,
|
| 235 |
+
"single_word": false,
|
| 236 |
+
"special": false
|
| 237 |
+
},
|
| 238 |
+
"255021": {
|
| 239 |
+
"content": "<|IMG_LINE_BREAK|>",
|
| 240 |
+
"lstrip": false,
|
| 241 |
+
"normalized": false,
|
| 242 |
+
"rstrip": false,
|
| 243 |
+
"single_word": false,
|
| 244 |
+
"special": false
|
| 245 |
+
},
|
| 246 |
+
"255022": {
|
| 247 |
+
"content": "<|IMG_PATCH|>",
|
| 248 |
+
"lstrip": false,
|
| 249 |
+
"normalized": false,
|
| 250 |
+
"rstrip": false,
|
| 251 |
+
"single_word": false,
|
| 252 |
+
"special": false
|
| 253 |
+
},
|
| 254 |
+
"255023": {
|
| 255 |
+
"content": "<|EXTRA_0_TOKEN|>",
|
| 256 |
+
"lstrip": false,
|
| 257 |
+
"normalized": false,
|
| 258 |
+
"rstrip": false,
|
| 259 |
+
"single_word": false,
|
| 260 |
+
"special": false
|
| 261 |
+
},
|
| 262 |
+
"255024": {
|
| 263 |
+
"content": "<|EXTRA_1_TOKEN|>",
|
| 264 |
+
"lstrip": false,
|
| 265 |
+
"normalized": false,
|
| 266 |
+
"rstrip": false,
|
| 267 |
+
"single_word": false,
|
| 268 |
+
"special": false
|
| 269 |
+
},
|
| 270 |
+
"255025": {
|
| 271 |
+
"content": "<|EXTRA_2_TOKEN|>",
|
| 272 |
+
"lstrip": false,
|
| 273 |
+
"normalized": false,
|
| 274 |
+
"rstrip": false,
|
| 275 |
+
"single_word": false,
|
| 276 |
+
"special": false
|
| 277 |
+
},
|
| 278 |
+
"255026": {
|
| 279 |
+
"content": "<|EXTRA_3_TOKEN|>",
|
| 280 |
+
"lstrip": false,
|
| 281 |
+
"normalized": false,
|
| 282 |
+
"rstrip": false,
|
| 283 |
+
"single_word": false,
|
| 284 |
+
"special": false
|
| 285 |
+
},
|
| 286 |
+
"255027": {
|
| 287 |
+
"content": "<|EXTRA_4_TOKEN|>",
|
| 288 |
+
"lstrip": false,
|
| 289 |
+
"normalized": false,
|
| 290 |
+
"rstrip": false,
|
| 291 |
+
"single_word": false,
|
| 292 |
+
"special": false
|
| 293 |
+
},
|
| 294 |
+
"255028": {
|
| 295 |
+
"content": "<|EXTRA_5_TOKEN|>",
|
| 296 |
+
"lstrip": false,
|
| 297 |
+
"normalized": false,
|
| 298 |
+
"rstrip": false,
|
| 299 |
+
"single_word": false,
|
| 300 |
+
"special": false
|
| 301 |
+
},
|
| 302 |
+
"255029": {
|
| 303 |
+
"content": "<|EXTRA_6_TOKEN|>",
|
| 304 |
+
"lstrip": false,
|
| 305 |
+
"normalized": false,
|
| 306 |
+
"rstrip": false,
|
| 307 |
+
"single_word": false,
|
| 308 |
+
"special": false
|
| 309 |
+
},
|
| 310 |
+
"255030": {
|
| 311 |
+
"content": "<|EXTRA_7_TOKEN|>",
|
| 312 |
+
"lstrip": false,
|
| 313 |
+
"normalized": false,
|
| 314 |
+
"rstrip": false,
|
| 315 |
+
"single_word": false,
|
| 316 |
+
"special": false
|
| 317 |
+
},
|
| 318 |
+
"255031": {
|
| 319 |
+
"content": "<|EXTRA_8_TOKEN|>",
|
| 320 |
+
"lstrip": false,
|
| 321 |
+
"normalized": false,
|
| 322 |
+
"rstrip": false,
|
| 323 |
+
"single_word": false,
|
| 324 |
+
"special": false
|
| 325 |
+
},
|
| 326 |
+
"255032": {
|
| 327 |
+
"content": "<|EXTRA_9_TOKEN|>",
|
| 328 |
+
"lstrip": false,
|
| 329 |
+
"normalized": false,
|
| 330 |
+
"rstrip": false,
|
| 331 |
+
"single_word": false,
|
| 332 |
+
"special": false
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"bos_token": "<BOS_TOKEN>",
|
| 336 |
+
"chat_template": "{{ bos_token }}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>You are Aya Vision, a brilliant, sophisticated, AI-assistant chatbot trained to assist human users by providing thorough responses. You are a large vision language model built by the Cohere For AI. You are capable of interpreting images, including describing them, answering questions about their contents, extracting textual information, and analyzing visual context.<|END_OF_TURN_TOKEN|>\n{%- for message in messages -%}\n <|START_OF_TURN_TOKEN|>{{ message.role | replace(\"user\", \"<|USER_TOKEN|>\") | replace(\"assistant\", \"<|CHATBOT_TOKEN|><|START_RESPONSE|>\") | replace(\"system\", \"<|SYSTEM_TOKEN|>\") }}\n {%- if message.content is defined -%}\n {%- if message.content is string -%}\n{{ message.content }}\n {%- else -%}\n {%- for item in message.content | selectattr('type', 'equalto', 'image') -%}\n<image>\n {%- endfor -%}\n {%- for item in message.content | selectattr('type', 'equalto', 'text') -%}\n{{ item.text }}\n {%- endfor -%}\n {%- endif -%}\n {%- elif message.message is defined -%}\n {%- if message.message is string -%}\n{{ message.message }}\n {%- else -%}\n {%- for item in message.message | selectattr('type', 'equalto', 'image') -%}\n<image>\n {%- endfor -%}\n {%- for item in message.message | selectattr('type', 'equalto', 'text') -%}\n{{ item.text }}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {%- if message.role == \"assistant\" -%}\n<|END_RESPONSE|>\n {%- endif -%}\n<|END_OF_TURN_TOKEN|>\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>\n{%- endif -%}\n",
|
| 337 |
+
"clean_up_tokenization_spaces": false,
|
| 338 |
+
"eos_token": "<|END_OF_TURN_TOKEN|>",
|
| 339 |
+
"extra_special_tokens": {},
|
| 340 |
+
"legacy": true,
|
| 341 |
+
"merges_file": null,
|
| 342 |
+
"model_max_length": 16384,
|
| 343 |
+
"pad_token": "<PAD>",
|
| 344 |
+
"padding_side": "left",
|
| 345 |
+
"processor_class": "AyaVisionProcessor",
|
| 346 |
+
"sp_model_kwargs": {},
|
| 347 |
+
"spaces_between_special_tokens": false,
|
| 348 |
+
"tokenizer_class": "CohereTokenizer",
|
| 349 |
+
"unk_token": null,
|
| 350 |
+
"use_default_system_prompt": false,
|
| 351 |
+
"vocab_file": null
|
| 352 |
+
}
|