Upload folder using huggingface_hub
Browse files- README.md +28 -0
- added_tokens.json +5 -0
- chat_template.json +3 -0
- config.json +261 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +28 -0
- processor_config.json +4 -0
- special_tokens_map.json +53 -0
- tokenizer.json +0 -0
- tokenizer_config.json +182 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- HuggingFaceTB/SmolLM2-1.7B-Instruct
|
| 4 |
+
- google/siglip-so400m-patch14-384
|
| 5 |
+
datasets:
|
| 6 |
+
- HuggingFaceM4/the_cauldron
|
| 7 |
+
- HuggingFaceM4/Docmatix
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
library_name: transformers
|
| 11 |
+
license: apache-2.0
|
| 12 |
+
pipeline_tag: image-text-to-text
|
| 13 |
+
tags:
|
| 14 |
+
- mlx
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# mlx-community/SmolVLM-Instruct-4bit
|
| 18 |
+
This model was converted to MLX format from [`HuggingFaceTB/SmolVLM-Instruct`]() using mlx-vlm version **0.1.2**.
|
| 19 |
+
Refer to the [original model card](https://huggingface.co/HuggingFaceTB/SmolVLM-Instruct) for more details on the model.
|
| 20 |
+
## Use with mlx
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
pip install -U mlx-vlm
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
```bash
|
| 27 |
+
python -m mlx_vlm.generate --model mlx-community/SmolVLM-Instruct-4bit --max-tokens 100 --temp 0.0
|
| 28 |
+
```
|
added_tokens.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<end_of_utterance>": 49154,
|
| 3 |
+
"<fake_token_around_image>": 49152,
|
| 4 |
+
"<image>": 49153
|
| 5 |
+
}
|
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "<|im_start|>{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"
|
| 3 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Idefics3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_seq_len": 81,
|
| 6 |
+
"image_token_id": 49153,
|
| 7 |
+
"model_type": "idefics3",
|
| 8 |
+
"quantization": {
|
| 9 |
+
"group_size": 64,
|
| 10 |
+
"bits": 4
|
| 11 |
+
},
|
| 12 |
+
"scale_factor": 3,
|
| 13 |
+
"text_config": {
|
| 14 |
+
"_attn_implementation_autoset": false,
|
| 15 |
+
"_flash_attn_2_enabled": true,
|
| 16 |
+
"_name_or_path": "/fsx/m4/experiments/local_experiment_dir/s3_async_temporary_checkpoint_folder/tr_324_opt_400/unwrapped_model",
|
| 17 |
+
"add_cross_attention": false,
|
| 18 |
+
"architectures": [
|
| 19 |
+
"VLlama3ForCausalLM"
|
| 20 |
+
],
|
| 21 |
+
"attention_bias": false,
|
| 22 |
+
"attention_dropout": 0.0,
|
| 23 |
+
"bad_words_ids": null,
|
| 24 |
+
"begin_suppress_tokens": null,
|
| 25 |
+
"bos_token_id": 0,
|
| 26 |
+
"chunk_size_feed_forward": 0,
|
| 27 |
+
"cross_attention_hidden_size": null,
|
| 28 |
+
"decoder_start_token_id": null,
|
| 29 |
+
"diversity_penalty": 0.0,
|
| 30 |
+
"do_sample": false,
|
| 31 |
+
"early_stopping": false,
|
| 32 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 33 |
+
"eos_token_id": 0,
|
| 34 |
+
"exponential_decay_length_penalty": null,
|
| 35 |
+
"finetuning_task": null,
|
| 36 |
+
"forced_bos_token_id": null,
|
| 37 |
+
"forced_eos_token_id": null,
|
| 38 |
+
"head_dim": 64,
|
| 39 |
+
"hidden_act": "silu",
|
| 40 |
+
"hidden_size": 2048,
|
| 41 |
+
"id2label": {
|
| 42 |
+
"0": "LABEL_0",
|
| 43 |
+
"1": "LABEL_1"
|
| 44 |
+
},
|
| 45 |
+
"initializer_range": 0.02,
|
| 46 |
+
"intermediate_size": 8192,
|
| 47 |
+
"is_decoder": false,
|
| 48 |
+
"is_encoder_decoder": false,
|
| 49 |
+
"label2id": {
|
| 50 |
+
"LABEL_0": 0,
|
| 51 |
+
"LABEL_1": 1
|
| 52 |
+
},
|
| 53 |
+
"length_penalty": 1.0,
|
| 54 |
+
"max_length": 20,
|
| 55 |
+
"max_position_embeddings": 16384,
|
| 56 |
+
"min_length": 0,
|
| 57 |
+
"mlp_bias": false,
|
| 58 |
+
"model_type": "llama",
|
| 59 |
+
"neftune_noise_alpha": 0.0,
|
| 60 |
+
"no_repeat_ngram_size": 0,
|
| 61 |
+
"num_attention_heads": 32,
|
| 62 |
+
"num_beam_groups": 1,
|
| 63 |
+
"num_beams": 1,
|
| 64 |
+
"num_hidden_layers": 24,
|
| 65 |
+
"num_key_value_heads": 32,
|
| 66 |
+
"num_return_sequences": 1,
|
| 67 |
+
"output_attentions": false,
|
| 68 |
+
"output_hidden_states": false,
|
| 69 |
+
"output_scores": false,
|
| 70 |
+
"pad_token_id": 2,
|
| 71 |
+
"perceiver_config": {
|
| 72 |
+
"_attn_implementation_autoset": false,
|
| 73 |
+
"_name_or_path": "",
|
| 74 |
+
"add_cross_attention": false,
|
| 75 |
+
"architectures": null,
|
| 76 |
+
"attention_dropout": 0.0,
|
| 77 |
+
"bad_words_ids": null,
|
| 78 |
+
"begin_suppress_tokens": null,
|
| 79 |
+
"bos_token_id": null,
|
| 80 |
+
"chunk_size_feed_forward": 0,
|
| 81 |
+
"cross_attention_hidden_size": null,
|
| 82 |
+
"decoder_start_token_id": null,
|
| 83 |
+
"diversity_penalty": 0.0,
|
| 84 |
+
"do_sample": false,
|
| 85 |
+
"early_stopping": false,
|
| 86 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 87 |
+
"eos_token_id": null,
|
| 88 |
+
"exponential_decay_length_penalty": null,
|
| 89 |
+
"finetuning_task": null,
|
| 90 |
+
"forced_bos_token_id": null,
|
| 91 |
+
"forced_eos_token_id": null,
|
| 92 |
+
"hidden_act": "silu",
|
| 93 |
+
"id2label": {
|
| 94 |
+
"0": "LABEL_0",
|
| 95 |
+
"1": "LABEL_1"
|
| 96 |
+
},
|
| 97 |
+
"is_decoder": false,
|
| 98 |
+
"is_encoder_decoder": false,
|
| 99 |
+
"label2id": {
|
| 100 |
+
"LABEL_0": 0,
|
| 101 |
+
"LABEL_1": 1
|
| 102 |
+
},
|
| 103 |
+
"length_penalty": 1.0,
|
| 104 |
+
"max_length": 20,
|
| 105 |
+
"min_length": 0,
|
| 106 |
+
"model_type": "vllama3",
|
| 107 |
+
"no_repeat_ngram_size": 0,
|
| 108 |
+
"num_beam_groups": 1,
|
| 109 |
+
"num_beams": 1,
|
| 110 |
+
"num_key_value_heads": 1,
|
| 111 |
+
"num_return_sequences": 1,
|
| 112 |
+
"output_attentions": false,
|
| 113 |
+
"output_hidden_states": false,
|
| 114 |
+
"output_scores": false,
|
| 115 |
+
"pad_token_id": null,
|
| 116 |
+
"prefix": null,
|
| 117 |
+
"problem_type": null,
|
| 118 |
+
"pruned_heads": {},
|
| 119 |
+
"qk_layer_norms_perceiver": false,
|
| 120 |
+
"remove_invalid_values": false,
|
| 121 |
+
"repetition_penalty": 1.0,
|
| 122 |
+
"resampler_depth": 6,
|
| 123 |
+
"resampler_head_dim": 96,
|
| 124 |
+
"resampler_n_heads": 16,
|
| 125 |
+
"resampler_n_latents": 64,
|
| 126 |
+
"return_dict": true,
|
| 127 |
+
"return_dict_in_generate": false,
|
| 128 |
+
"sep_token_id": null,
|
| 129 |
+
"suppress_tokens": null,
|
| 130 |
+
"task_specific_params": null,
|
| 131 |
+
"temperature": 1.0,
|
| 132 |
+
"tf_legacy_loss": false,
|
| 133 |
+
"tie_encoder_decoder": false,
|
| 134 |
+
"tie_word_embeddings": true,
|
| 135 |
+
"tokenizer_class": null,
|
| 136 |
+
"top_k": 50,
|
| 137 |
+
"top_p": 1.0,
|
| 138 |
+
"torch_dtype": null,
|
| 139 |
+
"torchscript": false,
|
| 140 |
+
"transformers_version": "4.46.0",
|
| 141 |
+
"typical_p": 1.0,
|
| 142 |
+
"use_bfloat16": false
|
| 143 |
+
},
|
| 144 |
+
"prefix": null,
|
| 145 |
+
"pretraining_tp": 1,
|
| 146 |
+
"problem_type": null,
|
| 147 |
+
"pruned_heads": {},
|
| 148 |
+
"qk_layer_norms": false,
|
| 149 |
+
"remove_invalid_values": false,
|
| 150 |
+
"repetition_penalty": 1.0,
|
| 151 |
+
"return_dict": true,
|
| 152 |
+
"return_dict_in_generate": false,
|
| 153 |
+
"rms_norm_eps": 1e-05,
|
| 154 |
+
"rope_scaling": null,
|
| 155 |
+
"rope_theta": 273768.0,
|
| 156 |
+
"sep_token_id": null,
|
| 157 |
+
"suppress_tokens": null,
|
| 158 |
+
"task_specific_params": null,
|
| 159 |
+
"temperature": 1.0,
|
| 160 |
+
"tf_legacy_loss": false,
|
| 161 |
+
"tie_encoder_decoder": false,
|
| 162 |
+
"tie_word_embeddings": false,
|
| 163 |
+
"tokenizer_class": null,
|
| 164 |
+
"top_k": 50,
|
| 165 |
+
"top_p": 1.0,
|
| 166 |
+
"torch_dtype": "bfloat16",
|
| 167 |
+
"torchscript": false,
|
| 168 |
+
"typical_p": 1.0,
|
| 169 |
+
"use_bfloat16": false,
|
| 170 |
+
"use_cache": true,
|
| 171 |
+
"use_resampler": false,
|
| 172 |
+
"vocab_size": 49155
|
| 173 |
+
},
|
| 174 |
+
"tie_word_embeddings": false,
|
| 175 |
+
"torch_dtype": "bfloat16",
|
| 176 |
+
"transformers_version": "4.46.0",
|
| 177 |
+
"use_cache": true,
|
| 178 |
+
"vision_config": {
|
| 179 |
+
"size": {
|
| 180 |
+
"longest_edge": 1920
|
| 181 |
+
},
|
| 182 |
+
"max_image_size": {
|
| 183 |
+
"longest_edge": 384
|
| 184 |
+
},
|
| 185 |
+
"_attn_implementation_autoset": false,
|
| 186 |
+
"_name_or_path": "",
|
| 187 |
+
"add_cross_attention": false,
|
| 188 |
+
"architectures": null,
|
| 189 |
+
"attention_dropout": 0.0,
|
| 190 |
+
"bad_words_ids": null,
|
| 191 |
+
"begin_suppress_tokens": null,
|
| 192 |
+
"bos_token_id": null,
|
| 193 |
+
"chunk_size_feed_forward": 0,
|
| 194 |
+
"cross_attention_hidden_size": null,
|
| 195 |
+
"decoder_start_token_id": null,
|
| 196 |
+
"diversity_penalty": 0.0,
|
| 197 |
+
"do_sample": false,
|
| 198 |
+
"early_stopping": false,
|
| 199 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 200 |
+
"eos_token_id": null,
|
| 201 |
+
"exponential_decay_length_penalty": null,
|
| 202 |
+
"finetuning_task": null,
|
| 203 |
+
"forced_bos_token_id": null,
|
| 204 |
+
"forced_eos_token_id": null,
|
| 205 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 206 |
+
"hidden_size": 1152,
|
| 207 |
+
"id2label": {
|
| 208 |
+
"0": "LABEL_0",
|
| 209 |
+
"1": "LABEL_1"
|
| 210 |
+
},
|
| 211 |
+
"image_size": 384,
|
| 212 |
+
"initializer_range": 0.02,
|
| 213 |
+
"intermediate_size": 4304,
|
| 214 |
+
"is_decoder": false,
|
| 215 |
+
"is_encoder_decoder": false,
|
| 216 |
+
"label2id": {
|
| 217 |
+
"LABEL_0": 0,
|
| 218 |
+
"LABEL_1": 1
|
| 219 |
+
},
|
| 220 |
+
"layer_norm_eps": 1e-06,
|
| 221 |
+
"length_penalty": 1.0,
|
| 222 |
+
"max_length": 20,
|
| 223 |
+
"min_length": 0,
|
| 224 |
+
"model_type": "idefics3",
|
| 225 |
+
"no_repeat_ngram_size": 0,
|
| 226 |
+
"num_attention_heads": 16,
|
| 227 |
+
"num_beam_groups": 1,
|
| 228 |
+
"num_beams": 1,
|
| 229 |
+
"num_channels": 3,
|
| 230 |
+
"num_hidden_layers": 27,
|
| 231 |
+
"num_return_sequences": 1,
|
| 232 |
+
"output_attentions": false,
|
| 233 |
+
"output_hidden_states": false,
|
| 234 |
+
"output_scores": false,
|
| 235 |
+
"pad_token_id": null,
|
| 236 |
+
"patch_size": 14,
|
| 237 |
+
"prefix": null,
|
| 238 |
+
"problem_type": null,
|
| 239 |
+
"pruned_heads": {},
|
| 240 |
+
"remove_invalid_values": false,
|
| 241 |
+
"repetition_penalty": 1.0,
|
| 242 |
+
"return_dict": true,
|
| 243 |
+
"return_dict_in_generate": false,
|
| 244 |
+
"sep_token_id": null,
|
| 245 |
+
"suppress_tokens": null,
|
| 246 |
+
"task_specific_params": null,
|
| 247 |
+
"temperature": 1.0,
|
| 248 |
+
"tf_legacy_loss": false,
|
| 249 |
+
"tie_encoder_decoder": false,
|
| 250 |
+
"tie_word_embeddings": false,
|
| 251 |
+
"tokenizer_class": null,
|
| 252 |
+
"top_k": 50,
|
| 253 |
+
"top_p": 1.0,
|
| 254 |
+
"torch_dtype": null,
|
| 255 |
+
"torchscript": false,
|
| 256 |
+
"typical_p": 1.0,
|
| 257 |
+
"use_bfloat16": false,
|
| 258 |
+
"skip_vision_non_divisible": true
|
| 259 |
+
},
|
| 260 |
+
"vocab_size": 49155
|
| 261 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:848e40f62ca5bf382ea23f0d58bd1876490a8d25fdcdc44b09a37f31e476e8b3
|
| 3 |
+
size 1457817543
|
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,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": true,
|
| 3 |
+
"do_image_splitting": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_pad": true,
|
| 6 |
+
"do_rescale": true,
|
| 7 |
+
"do_resize": true,
|
| 8 |
+
"image_mean": [
|
| 9 |
+
0.5,
|
| 10 |
+
0.5,
|
| 11 |
+
0.5
|
| 12 |
+
],
|
| 13 |
+
"image_processor_type": "Idefics3ImageProcessor",
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"max_image_size": {
|
| 20 |
+
"longest_edge": 384
|
| 21 |
+
},
|
| 22 |
+
"processor_class": "Idefics3Processor",
|
| 23 |
+
"resample": 1,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"longest_edge": 1536
|
| 27 |
+
}
|
| 28 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_seq_len": 81,
|
| 3 |
+
"processor_class": "Idefics3Processor"
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
{
|
| 4 |
+
"content": "<fake_token_around_image>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"content": "<image>",
|
| 12 |
+
"lstrip": false,
|
| 13 |
+
"normalized": false,
|
| 14 |
+
"rstrip": false,
|
| 15 |
+
"single_word": false
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"content": "<end_of_utterance>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"bos_token": {
|
| 26 |
+
"content": "<|im_start|>",
|
| 27 |
+
"lstrip": false,
|
| 28 |
+
"normalized": false,
|
| 29 |
+
"rstrip": false,
|
| 30 |
+
"single_word": false
|
| 31 |
+
},
|
| 32 |
+
"eos_token": {
|
| 33 |
+
"content": "<end_of_utterance>",
|
| 34 |
+
"lstrip": false,
|
| 35 |
+
"normalized": false,
|
| 36 |
+
"rstrip": false,
|
| 37 |
+
"single_word": false
|
| 38 |
+
},
|
| 39 |
+
"pad_token": {
|
| 40 |
+
"content": "<|im_end|>",
|
| 41 |
+
"lstrip": false,
|
| 42 |
+
"normalized": false,
|
| 43 |
+
"rstrip": false,
|
| 44 |
+
"single_word": false
|
| 45 |
+
},
|
| 46 |
+
"unk_token": {
|
| 47 |
+
"content": "<|endoftext|>",
|
| 48 |
+
"lstrip": false,
|
| 49 |
+
"normalized": false,
|
| 50 |
+
"rstrip": false,
|
| 51 |
+
"single_word": false
|
| 52 |
+
}
|
| 53 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<repo_name>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"4": {
|
| 37 |
+
"content": "<reponame>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"5": {
|
| 45 |
+
"content": "<file_sep>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"6": {
|
| 53 |
+
"content": "<filename>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"7": {
|
| 61 |
+
"content": "<gh_stars>",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"8": {
|
| 69 |
+
"content": "<issue_start>",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"9": {
|
| 77 |
+
"content": "<issue_comment>",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"10": {
|
| 85 |
+
"content": "<issue_closed>",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"11": {
|
| 93 |
+
"content": "<jupyter_start>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"12": {
|
| 101 |
+
"content": "<jupyter_text>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"13": {
|
| 109 |
+
"content": "<jupyter_code>",
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": false,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"14": {
|
| 117 |
+
"content": "<jupyter_output>",
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": false,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": true
|
| 123 |
+
},
|
| 124 |
+
"15": {
|
| 125 |
+
"content": "<jupyter_script>",
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": false,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": true
|
| 131 |
+
},
|
| 132 |
+
"16": {
|
| 133 |
+
"content": "<empty_output>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": true
|
| 139 |
+
},
|
| 140 |
+
"49152": {
|
| 141 |
+
"content": "<fake_token_around_image>",
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"rstrip": false,
|
| 145 |
+
"single_word": false,
|
| 146 |
+
"special": true
|
| 147 |
+
},
|
| 148 |
+
"49153": {
|
| 149 |
+
"content": "<image>",
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"rstrip": false,
|
| 153 |
+
"single_word": false,
|
| 154 |
+
"special": true
|
| 155 |
+
},
|
| 156 |
+
"49154": {
|
| 157 |
+
"content": "<end_of_utterance>",
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"rstrip": false,
|
| 161 |
+
"single_word": false,
|
| 162 |
+
"special": true
|
| 163 |
+
}
|
| 164 |
+
},
|
| 165 |
+
"additional_special_tokens": [
|
| 166 |
+
"<fake_token_around_image>",
|
| 167 |
+
"<image>",
|
| 168 |
+
"<end_of_utterance>"
|
| 169 |
+
],
|
| 170 |
+
"bos_token": "<|im_start|>",
|
| 171 |
+
"chat_template": "{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}",
|
| 172 |
+
"clean_up_tokenization_spaces": false,
|
| 173 |
+
"eos_token": "<end_of_utterance>",
|
| 174 |
+
"legacy": false,
|
| 175 |
+
"model_max_length": 16384,
|
| 176 |
+
"pad_token": "<|im_end|>",
|
| 177 |
+
"processor_class": "Idefics3Processor",
|
| 178 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 179 |
+
"truncation_side": "left",
|
| 180 |
+
"unk_token": "<|endoftext|>",
|
| 181 |
+
"vocab_size": 49152
|
| 182 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|