Dharunkumar9 commited on
Commit
32b671f
·
verified ·
1 Parent(s): 9b521b0

Upload merged SmolVLM agriculture model

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ <|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>
2
+ {% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}
config.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Idefics3ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_token_id": 49190,
7
+ "model_type": "idefics3",
8
+ "scale_factor": 4,
9
+ "text_config": {
10
+ "_attn_implementation_autoset": false,
11
+ "_flash_attn_2_enabled": true,
12
+ "_name_or_path": "None",
13
+ "add_cross_attention": false,
14
+ "architectures": [
15
+ "VLlama3ForCausalLM"
16
+ ],
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "bos_token_id": 1,
20
+ "cross_attention_hidden_size": null,
21
+ "decoder_start_token_id": null,
22
+ "dtype": "bfloat16",
23
+ "eos_token_id": 2,
24
+ "finetuning_task": null,
25
+ "head_dim": 64,
26
+ "hidden_act": "silu",
27
+ "hidden_size": 576,
28
+ "initializer_range": 0.041666666666666664,
29
+ "intermediate_size": 1536,
30
+ "is_decoder": false,
31
+ "is_llama_config": true,
32
+ "max_position_embeddings": 8192,
33
+ "mlp_bias": false,
34
+ "model_type": "llama",
35
+ "neftune_noise_alpha": 0.0,
36
+ "num_attention_heads": 9,
37
+ "num_hidden_layers": 30,
38
+ "num_key_value_heads": 3,
39
+ "pad_token_id": 2,
40
+ "perceiver_config": {
41
+ "_attn_implementation_autoset": false,
42
+ "_name_or_path": "",
43
+ "add_cross_attention": false,
44
+ "architectures": null,
45
+ "attention_dropout": 0.0,
46
+ "bad_words_ids": null,
47
+ "begin_suppress_tokens": null,
48
+ "bos_token_id": null,
49
+ "chunk_size_feed_forward": 0,
50
+ "cross_attention_hidden_size": null,
51
+ "decoder_start_token_id": null,
52
+ "diversity_penalty": 0.0,
53
+ "do_sample": false,
54
+ "early_stopping": false,
55
+ "encoder_no_repeat_ngram_size": 0,
56
+ "eos_token_id": null,
57
+ "exponential_decay_length_penalty": null,
58
+ "finetuning_task": null,
59
+ "forced_bos_token_id": null,
60
+ "forced_eos_token_id": null,
61
+ "hidden_act": "silu",
62
+ "id2label": {
63
+ "0": "LABEL_0",
64
+ "1": "LABEL_1"
65
+ },
66
+ "is_decoder": false,
67
+ "is_encoder_decoder": false,
68
+ "label2id": {
69
+ "LABEL_0": 0,
70
+ "LABEL_1": 1
71
+ },
72
+ "length_penalty": 1.0,
73
+ "max_length": 20,
74
+ "min_length": 0,
75
+ "model_type": "vllama3",
76
+ "no_repeat_ngram_size": 0,
77
+ "num_beam_groups": 1,
78
+ "num_beams": 1,
79
+ "num_key_value_heads": 1,
80
+ "num_return_sequences": 1,
81
+ "output_attentions": false,
82
+ "output_hidden_states": false,
83
+ "output_scores": false,
84
+ "pad_token_id": null,
85
+ "prefix": null,
86
+ "problem_type": null,
87
+ "pruned_heads": {},
88
+ "qk_layer_norms_perceiver": false,
89
+ "remove_invalid_values": false,
90
+ "repetition_penalty": 1.0,
91
+ "resampler_depth": 6,
92
+ "resampler_head_dim": 96,
93
+ "resampler_n_heads": 16,
94
+ "resampler_n_latents": 64,
95
+ "return_dict": true,
96
+ "return_dict_in_generate": false,
97
+ "sep_token_id": null,
98
+ "suppress_tokens": null,
99
+ "task_specific_params": null,
100
+ "temperature": 1.0,
101
+ "tf_legacy_loss": false,
102
+ "tie_encoder_decoder": false,
103
+ "tie_word_embeddings": true,
104
+ "tokenizer_class": null,
105
+ "top_k": 50,
106
+ "top_p": 1.0,
107
+ "torch_dtype": null,
108
+ "torchscript": false,
109
+ "transformers_version": "4.46.0",
110
+ "typical_p": 1.0,
111
+ "use_bfloat16": false
112
+ },
113
+ "pixel_shuffle_factor": 4,
114
+ "prefix": null,
115
+ "pretraining_tp": 1,
116
+ "pruned_heads": {},
117
+ "qk_layer_norms": false,
118
+ "rms_norm_eps": 1e-05,
119
+ "rope_interleaved": false,
120
+ "rope_parameters": {
121
+ "rope_theta": 100000,
122
+ "rope_type": "default"
123
+ },
124
+ "sep_token_id": null,
125
+ "task_specific_params": null,
126
+ "tf_legacy_loss": false,
127
+ "tie_encoder_decoder": false,
128
+ "tie_word_embeddings": false,
129
+ "tokenizer_class": null,
130
+ "torchscript": false,
131
+ "transformers.js_config": {
132
+ "kv_cache_dtype": {
133
+ "fp16": "float16",
134
+ "q4f16": "float16"
135
+ }
136
+ },
137
+ "use_bfloat16": false,
138
+ "use_cache": true,
139
+ "use_resampler": false,
140
+ "vocab_size": 49280
141
+ },
142
+ "tie_word_embeddings": false,
143
+ "transformers.js_config": {
144
+ "kv_cache_dtype": {
145
+ "fp16": "float16",
146
+ "q4f16": "float16"
147
+ }
148
+ },
149
+ "transformers_version": "5.2.0",
150
+ "use_cache": true,
151
+ "vision_config": {
152
+ "_attn_implementation_autoset": false,
153
+ "add_cross_attention": false,
154
+ "attention_dropout": 0.0,
155
+ "bos_token_id": null,
156
+ "cross_attention_hidden_size": null,
157
+ "decoder_start_token_id": null,
158
+ "dtype": "bfloat16",
159
+ "eos_token_id": null,
160
+ "finetuning_task": null,
161
+ "hidden_act": "gelu_pytorch_tanh",
162
+ "hidden_size": 768,
163
+ "image_size": 512,
164
+ "initializer_range": 0.02,
165
+ "intermediate_size": 3072,
166
+ "is_decoder": false,
167
+ "layer_norm_eps": 1e-06,
168
+ "max_image_size": {
169
+ "longest_edge": 512
170
+ },
171
+ "model_type": "idefics3_vision",
172
+ "num_attention_heads": 12,
173
+ "num_channels": 3,
174
+ "num_hidden_layers": 12,
175
+ "pad_token_id": null,
176
+ "patch_size": 16,
177
+ "prefix": null,
178
+ "pruned_heads": {},
179
+ "sep_token_id": null,
180
+ "size": {
181
+ "longest_edge": 2048
182
+ },
183
+ "task_specific_params": null,
184
+ "tf_legacy_loss": false,
185
+ "tie_encoder_decoder": false,
186
+ "tie_word_embeddings": false,
187
+ "tokenizer_class": null,
188
+ "torchscript": false,
189
+ "use_base_siglip": true,
190
+ "use_bfloat16": false
191
+ },
192
+ "vocab_size": 49280
193
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 49279,
5
+ "pad_token_id": 2,
6
+ "transformers_version": "5.2.0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a215c3f96f98e1dfe9907b46ad4ce1ecc85fac4f5ebb780c55936b66015cec9c
3
+ size 513028808
processor_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_image_splitting": true,
5
+ "do_normalize": true,
6
+ "do_pad": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "Idefics3ImageProcessor",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
20
+ "max_image_size": {
21
+ "longest_edge": 512
22
+ },
23
+ "resample": 1,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "longest_edge": 2048
27
+ }
28
+ },
29
+ "image_seq_len": 64,
30
+ "processor_class": "Idefics3Processor"
31
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|im_start|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<end_of_utterance>",
7
+ "extra_special_tokens": [
8
+ "<fake_token_around_image>",
9
+ "<image>",
10
+ "<end_of_utterance>"
11
+ ],
12
+ "is_local": true,
13
+ "legacy": false,
14
+ "max_length": null,
15
+ "model_max_length": 8192,
16
+ "pad_to_multiple_of": null,
17
+ "pad_token": "<|im_end|>",
18
+ "pad_token_type_id": 0,
19
+ "padding_side": "right",
20
+ "processor_class": "Idefics3Processor",
21
+ "tokenizer_class": "TokenizersBackend",
22
+ "truncation_side": "left",
23
+ "unk_token": "<|endoftext|>",
24
+ "vocab_size": 49152
25
+ }