Sigurdur commited on
Commit
86c6cb0
·
verified ·
1 Parent(s): aa89df6

Upload Idefics3ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +145 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Idefics3ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_seq_len": 81,
7
+ "image_token_id": 49153,
8
+ "model_type": "idefics3",
9
+ "pad_token_id": 128002,
10
+ "scale_factor": 3,
11
+ "text_config": {
12
+ "_attn_implementation_autoset": false,
13
+ "_flash_attn_2_enabled": true,
14
+ "_name_or_path": "/fsx/m4/experiments/local_experiment_dir/s3_async_temporary_checkpoint_folder/tr_324_opt_400/unwrapped_model",
15
+ "architectures": [
16
+ "VLlama3ForCausalLM"
17
+ ],
18
+ "attention_bias": false,
19
+ "attention_dropout": 0.0,
20
+ "bos_token_id": 0,
21
+ "dtype": "bfloat16",
22
+ "eos_token_id": 0,
23
+ "head_dim": 64,
24
+ "hidden_act": "silu",
25
+ "hidden_size": 2048,
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 8192,
28
+ "max_position_embeddings": 16384,
29
+ "mlp_bias": false,
30
+ "model_type": "llama",
31
+ "neftune_noise_alpha": 0.0,
32
+ "num_attention_heads": 32,
33
+ "num_hidden_layers": 24,
34
+ "num_key_value_heads": 32,
35
+ "pad_token_id": 2,
36
+ "perceiver_config": {
37
+ "_attn_implementation_autoset": false,
38
+ "_name_or_path": "",
39
+ "add_cross_attention": false,
40
+ "architectures": null,
41
+ "attention_dropout": 0.0,
42
+ "bad_words_ids": null,
43
+ "begin_suppress_tokens": null,
44
+ "bos_token_id": null,
45
+ "chunk_size_feed_forward": 0,
46
+ "cross_attention_hidden_size": null,
47
+ "decoder_start_token_id": null,
48
+ "diversity_penalty": 0.0,
49
+ "do_sample": false,
50
+ "early_stopping": false,
51
+ "encoder_no_repeat_ngram_size": 0,
52
+ "eos_token_id": null,
53
+ "exponential_decay_length_penalty": null,
54
+ "finetuning_task": null,
55
+ "forced_bos_token_id": null,
56
+ "forced_eos_token_id": null,
57
+ "hidden_act": "silu",
58
+ "id2label": {
59
+ "0": "LABEL_0",
60
+ "1": "LABEL_1"
61
+ },
62
+ "is_decoder": false,
63
+ "is_encoder_decoder": false,
64
+ "label2id": {
65
+ "LABEL_0": 0,
66
+ "LABEL_1": 1
67
+ },
68
+ "length_penalty": 1.0,
69
+ "max_length": 20,
70
+ "min_length": 0,
71
+ "model_type": "vllama3",
72
+ "no_repeat_ngram_size": 0,
73
+ "num_beam_groups": 1,
74
+ "num_beams": 1,
75
+ "num_key_value_heads": 1,
76
+ "num_return_sequences": 1,
77
+ "output_attentions": false,
78
+ "output_hidden_states": false,
79
+ "output_scores": false,
80
+ "pad_token_id": null,
81
+ "prefix": null,
82
+ "problem_type": null,
83
+ "pruned_heads": {},
84
+ "qk_layer_norms_perceiver": false,
85
+ "remove_invalid_values": false,
86
+ "repetition_penalty": 1.0,
87
+ "resampler_depth": 6,
88
+ "resampler_head_dim": 96,
89
+ "resampler_n_heads": 16,
90
+ "resampler_n_latents": 64,
91
+ "return_dict": true,
92
+ "return_dict_in_generate": false,
93
+ "sep_token_id": null,
94
+ "suppress_tokens": null,
95
+ "task_specific_params": null,
96
+ "temperature": 1.0,
97
+ "tf_legacy_loss": false,
98
+ "tie_encoder_decoder": false,
99
+ "tie_word_embeddings": true,
100
+ "tokenizer_class": null,
101
+ "top_k": 50,
102
+ "top_p": 1.0,
103
+ "torch_dtype": null,
104
+ "torchscript": false,
105
+ "transformers_version": "4.46.0",
106
+ "typical_p": 1.0,
107
+ "use_bfloat16": false
108
+ },
109
+ "pretraining_tp": 1,
110
+ "qk_layer_norms": false,
111
+ "rms_norm_eps": 1e-05,
112
+ "rope_scaling": null,
113
+ "rope_theta": 273768.0,
114
+ "use_cache": true,
115
+ "use_resampler": false,
116
+ "vocab_size": 49155
117
+ },
118
+ "tie_word_embeddings": false,
119
+ "transformers_version": "4.56.2",
120
+ "use_cache": true,
121
+ "vision_config": {
122
+ "_attn_implementation_autoset": false,
123
+ "attention_dropout": 0.0,
124
+ "dtype": "bfloat16",
125
+ "hidden_act": "gelu_pytorch_tanh",
126
+ "hidden_size": 1152,
127
+ "image_size": 384,
128
+ "initializer_range": 0.02,
129
+ "intermediate_size": 4304,
130
+ "layer_norm_eps": 1e-06,
131
+ "max_image_size": {
132
+ "longest_edge": 384
133
+ },
134
+ "model_type": "idefics3_vision",
135
+ "num_attention_heads": 16,
136
+ "num_channels": 3,
137
+ "num_hidden_layers": 27,
138
+ "patch_size": 14,
139
+ "size": {
140
+ "longest_edge": 1920
141
+ },
142
+ "tie_word_embeddings": false
143
+ },
144
+ "vocab_size": 49155
145
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 0,
5
+ "pad_token_id": 2,
6
+ "transformers_version": "4.56.2"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9eb0c006c5c2823a9e34a95a09c21eda19c433990b86a941e1b8754936f8624
3
+ size 4492630912