asnassar commited on
Commit
3b960af
·
verified ·
1 Parent(s): efb3e16

Upload Idefics3ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +136 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/dccstor/ahn_cdip/checkpoints/SmolDocling_250M_1.3_stg_6/SmolDocling-256M-preview",
3
+ "architectures": [
4
+ "Idefics3ForConditionalGeneration"
5
+ ],
6
+ "image_token_id": 49190,
7
+ "model_type": "idefics3",
8
+ "pad_token_id": 128002,
9
+ "scale_factor": 4,
10
+ "text_config": {
11
+ "_flash_attn_2_enabled": true,
12
+ "_name_or_path": "None",
13
+ "architectures": [
14
+ "VLlama3ForCausalLM"
15
+ ],
16
+ "head_dim": 64,
17
+ "hidden_size": 576,
18
+ "initializer_range": 0.041666666666666664,
19
+ "intermediate_size": 1536,
20
+ "is_llama_config": true,
21
+ "max_position_embeddings": 8192,
22
+ "model_type": "llama",
23
+ "neftune_noise_alpha": 0.0,
24
+ "num_attention_heads": 9,
25
+ "num_hidden_layers": 30,
26
+ "num_key_value_heads": 3,
27
+ "pad_token_id": 2,
28
+ "perceiver_config": {
29
+ "_attn_implementation_autoset": false,
30
+ "_name_or_path": "",
31
+ "add_cross_attention": false,
32
+ "architectures": null,
33
+ "attention_dropout": 0.0,
34
+ "bad_words_ids": null,
35
+ "begin_suppress_tokens": null,
36
+ "bos_token_id": null,
37
+ "chunk_size_feed_forward": 0,
38
+ "cross_attention_hidden_size": null,
39
+ "decoder_start_token_id": null,
40
+ "diversity_penalty": 0.0,
41
+ "do_sample": false,
42
+ "early_stopping": false,
43
+ "encoder_no_repeat_ngram_size": 0,
44
+ "eos_token_id": null,
45
+ "exponential_decay_length_penalty": null,
46
+ "finetuning_task": null,
47
+ "forced_bos_token_id": null,
48
+ "forced_eos_token_id": null,
49
+ "hidden_act": "silu",
50
+ "id2label": {
51
+ "0": "LABEL_0",
52
+ "1": "LABEL_1"
53
+ },
54
+ "is_decoder": false,
55
+ "is_encoder_decoder": false,
56
+ "label2id": {
57
+ "LABEL_0": 0,
58
+ "LABEL_1": 1
59
+ },
60
+ "length_penalty": 1.0,
61
+ "max_length": 20,
62
+ "min_length": 0,
63
+ "model_type": "vllama3",
64
+ "no_repeat_ngram_size": 0,
65
+ "num_beam_groups": 1,
66
+ "num_beams": 1,
67
+ "num_key_value_heads": 1,
68
+ "num_return_sequences": 1,
69
+ "output_attentions": false,
70
+ "output_hidden_states": false,
71
+ "output_scores": false,
72
+ "pad_token_id": null,
73
+ "prefix": null,
74
+ "problem_type": null,
75
+ "pruned_heads": {},
76
+ "qk_layer_norms_perceiver": false,
77
+ "remove_invalid_values": false,
78
+ "repetition_penalty": 1.0,
79
+ "resampler_depth": 6,
80
+ "resampler_head_dim": 96,
81
+ "resampler_n_heads": 16,
82
+ "resampler_n_latents": 64,
83
+ "return_dict": true,
84
+ "return_dict_in_generate": false,
85
+ "sep_token_id": null,
86
+ "suppress_tokens": null,
87
+ "task_specific_params": null,
88
+ "temperature": 1.0,
89
+ "tf_legacy_loss": false,
90
+ "tie_encoder_decoder": false,
91
+ "tie_word_embeddings": true,
92
+ "tokenizer_class": null,
93
+ "top_k": 50,
94
+ "top_p": 1.0,
95
+ "torch_dtype": null,
96
+ "torchscript": false,
97
+ "transformers_version": "4.46.0",
98
+ "typical_p": 1.0,
99
+ "use_bfloat16": false
100
+ },
101
+ "pixel_shuffle_factor": 4,
102
+ "qk_layer_norms": false,
103
+ "rms_norm_eps": 1e-05,
104
+ "rope_interleaved": false,
105
+ "rope_theta": 100000,
106
+ "torch_dtype": "bfloat16",
107
+ "transformers.js_config": {
108
+ "kv_cache_dtype": {
109
+ "fp16": "float16",
110
+ "q4f16": "float16"
111
+ }
112
+ },
113
+ "use_resampler": false,
114
+ "vocab_size": 49280
115
+ },
116
+ "tie_word_embeddings": false,
117
+ "torch_dtype": "float32",
118
+ "transformers_version": "4.48.3",
119
+ "use_cache": true,
120
+ "vision_config": {
121
+ "hidden_size": 768,
122
+ "image_size": 512,
123
+ "max_image_size": {
124
+ "longest_edge": 512
125
+ },
126
+ "model_type": "idefics3_vision",
127
+ "num_attention_heads": 12,
128
+ "patch_size": 16,
129
+ "size": {
130
+ "longest_edge": 2048
131
+ },
132
+ "tie_word_embeddings": false,
133
+ "use_base_siglip": true
134
+ },
135
+ "vocab_size": 49280
136
+ }
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": "4.48.3"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9bc8279feacad553c271cd7e5717467926f36f23015afa8a6e5f390f683f5a3
3
+ size 1025998224