Update tiny models for IdeficsForVisionText2Text
Browse files- config.json +77 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- preprocessor_config.json +29 -0
- tokenizer.json +0 -0
- tokenizer_config.json +20 -0
config.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_vocab_size": 0,
|
| 3 |
+
"alpha_initializer": "ones",
|
| 4 |
+
"alpha_type": "float",
|
| 5 |
+
"alphas_initializer_range": 0.0,
|
| 6 |
+
"architectures": [
|
| 7 |
+
"IdeficsForVisionText2Text"
|
| 8 |
+
],
|
| 9 |
+
"attention_probs_dropout_prob": 0.1,
|
| 10 |
+
"bos_token_id": 1,
|
| 11 |
+
"cross_layer_interval": 1,
|
| 12 |
+
"dropout": 0.0,
|
| 13 |
+
"dtype": "float32",
|
| 14 |
+
"eos_token_id": 2,
|
| 15 |
+
"freeze_lm_head": false,
|
| 16 |
+
"freeze_text_layers": true,
|
| 17 |
+
"freeze_text_module_exceptions": [],
|
| 18 |
+
"freeze_vision_layers": true,
|
| 19 |
+
"freeze_vision_module_exceptions": [],
|
| 20 |
+
"hidden_act": "gelu",
|
| 21 |
+
"hidden_dropout_prob": 0.1,
|
| 22 |
+
"hidden_size": 32,
|
| 23 |
+
"id2label": {
|
| 24 |
+
"0": "LABEL_0",
|
| 25 |
+
"1": "LABEL_1",
|
| 26 |
+
"2": "LABEL_2"
|
| 27 |
+
},
|
| 28 |
+
"image_size": 30,
|
| 29 |
+
"initializer_range": 0.02,
|
| 30 |
+
"intermediate_size": 37,
|
| 31 |
+
"is_decoder": false,
|
| 32 |
+
"label2id": {
|
| 33 |
+
"LABEL_0": 0,
|
| 34 |
+
"LABEL_1": 1,
|
| 35 |
+
"LABEL_2": 2
|
| 36 |
+
},
|
| 37 |
+
"max_position_embeddings": 512,
|
| 38 |
+
"modality_type_vocab_size": 2,
|
| 39 |
+
"model_type": "idefics",
|
| 40 |
+
"num_attention_heads": 4,
|
| 41 |
+
"num_channels": 3,
|
| 42 |
+
"num_hidden_layers": 2,
|
| 43 |
+
"pad_token_id": 0,
|
| 44 |
+
"patch_size": 2,
|
| 45 |
+
"perceiver_config": {
|
| 46 |
+
"model_type": "idefics_perciever",
|
| 47 |
+
"qk_layer_norms_perceiver": false,
|
| 48 |
+
"resampler_depth": 6,
|
| 49 |
+
"resampler_head_dim": 96,
|
| 50 |
+
"resampler_n_heads": 16,
|
| 51 |
+
"resampler_n_latents": 64,
|
| 52 |
+
"use_resampler": false
|
| 53 |
+
},
|
| 54 |
+
"qk_layer_norms": false,
|
| 55 |
+
"rms_norm_eps": 1e-06,
|
| 56 |
+
"tie_word_embeddings": false,
|
| 57 |
+
"transformers_version": "5.16.0.dev0",
|
| 58 |
+
"type_vocab_size": 16,
|
| 59 |
+
"use_cache": true,
|
| 60 |
+
"use_resampler": false,
|
| 61 |
+
"vision_config": {
|
| 62 |
+
"attention_dropout": 0.0,
|
| 63 |
+
"embed_dim": 32,
|
| 64 |
+
"hidden_act": "gelu",
|
| 65 |
+
"image_size": 30,
|
| 66 |
+
"initializer_factor": 1.0,
|
| 67 |
+
"initializer_range": 0.02,
|
| 68 |
+
"intermediate_size": 37,
|
| 69 |
+
"layer_norm_eps": 1e-05,
|
| 70 |
+
"model_type": "idefics_vision",
|
| 71 |
+
"num_attention_heads": 4,
|
| 72 |
+
"num_channels": 3,
|
| 73 |
+
"num_hidden_layers": 2,
|
| 74 |
+
"patch_size": 2
|
| 75 |
+
},
|
| 76 |
+
"vocab_size": 32002
|
| 77 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 0,
|
| 8 |
+
"transformers_version": "5.16.0.dev0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68158fc0f34cd0fad42849d88b8d931f10f552e093329a14f57e0839edb7a9c3
|
| 3 |
+
size 8410928
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 30,
|
| 4 |
+
"width": 30
|
| 5 |
+
},
|
| 6 |
+
"do_convert_rgb": true,
|
| 7 |
+
"do_normalize": true,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_mean": [
|
| 11 |
+
0.48145466,
|
| 12 |
+
0.4578275,
|
| 13 |
+
0.40821073
|
| 14 |
+
],
|
| 15 |
+
"image_num_channels": 3,
|
| 16 |
+
"image_processor_type": "IdeficsImageProcessor",
|
| 17 |
+
"image_size": 30,
|
| 18 |
+
"image_std": [
|
| 19 |
+
0.26862954,
|
| 20 |
+
0.26130258,
|
| 21 |
+
0.27577711
|
| 22 |
+
],
|
| 23 |
+
"resample": 3,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"height": 30,
|
| 27 |
+
"width": 30
|
| 28 |
+
}
|
| 29 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": null,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"extra_special_tokens": [
|
| 8 |
+
"<fake_token_around_image>",
|
| 9 |
+
"<image>"
|
| 10 |
+
],
|
| 11 |
+
"is_local": true,
|
| 12 |
+
"local_files_only": false,
|
| 13 |
+
"model_max_length": 512,
|
| 14 |
+
"pad_token": "<unk>",
|
| 15 |
+
"sp_model_kwargs": {},
|
| 16 |
+
"spaces_between_special_tokens": false,
|
| 17 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 18 |
+
"unk_token": "<unk>",
|
| 19 |
+
"use_default_system_prompt": true
|
| 20 |
+
}
|