sahilchachra commited on
Commit
cdff40c
·
verified ·
1 Parent(s): a7974b6

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +210 -0
config.json ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Lfm2VlForConditionalGeneration"
4
+ ],
5
+ "auto_map": {},
6
+ "bos_token_id": 124894,
7
+ "do_image_splitting": true,
8
+ "do_resize": true,
9
+ "do_sample": true,
10
+ "downsample_factor": 2,
11
+ "dtype": "bfloat16",
12
+ "encoder_patch_size": 16,
13
+ "eos_token_id": [
14
+ 124900
15
+ ],
16
+ "freeze_language_model": false,
17
+ "freeze_multi_modal_projector": false,
18
+ "freeze_vision_tower": false,
19
+ "generation_config": {
20
+ "_from_model_config": true,
21
+ "bos_token_id": 124894,
22
+ "do_sample": true,
23
+ "eos_token_id": [
24
+ 124900
25
+ ],
26
+ "output_attentions": false,
27
+ "output_hidden_states": false,
28
+ "pad_token_id": 124893,
29
+ "repetition_penalty": 1.0,
30
+ "temperature": 0.2,
31
+ "top_k": 50,
32
+ "transformers_version": "5.8.1",
33
+ "use_cache": true
34
+ },
35
+ "image_token_id": 124907,
36
+ "keep_trainable_parameters_fp32": true,
37
+ "language_model_lr_multiplier": 1.0,
38
+ "lfm2_attention_backend": "flash_varlen",
39
+ "lfm2_attention_fusion": "fused_linear",
40
+ "lfm2_flash_varlen_blhd_fastpath": false,
41
+ "lfm2_frozen_input_grad_only_linear": true,
42
+ "lfm2_mlp_fusion": "triton_swiglu",
43
+ "lfm2_rmsnorm_fusion": "none",
44
+ "lfm2_short_conv_frozen_recompute_in_proj": 0,
45
+ "lfm2_torch_compile_clone_outputs": false,
46
+ "lfm2_torch_compile_disable_cudagraphs": true,
47
+ "lfm2_torch_compile_dynamic": true,
48
+ "lfm2_torch_compile_fullgraph": false,
49
+ "lfm2_torch_compile_layers": "none",
50
+ "lfm2_torch_compile_mlp": false,
51
+ "lfm2_torch_compile_mode": "reduce-overhead",
52
+ "lfm2_vl_direct_image_merge_by_shape": true,
53
+ "lfm2_vl_forward_dtype": "bf16",
54
+ "lfm2_vl_frozen_vision_chunk_size": 2048,
55
+ "lfm2_vl_grouped_image_projector": true,
56
+ "lfm2_vl_grouped_vision_by_patch_count": false,
57
+ "lfm2_vl_grouped_vision_by_shape": true,
58
+ "lfm2_vl_inplace_image_merge": true,
59
+ "lfm2_vl_siglip_packed_vision": true,
60
+ "lfm2_vl_torch_compile_vision_encoder": true,
61
+ "lfm2_vl_torch_compile_vision_encoder_mode": "whole",
62
+ "lm_head_loss_mask_only": true,
63
+ "max_image_tokens": 256,
64
+ "max_num_patches": 1024,
65
+ "max_pixels_tolerance": 2.0,
66
+ "max_tiles": 10,
67
+ "min_image_tokens": 64,
68
+ "min_tiles": 1,
69
+ "model_type": "lfm2_vl",
70
+ "pad_token_id": 124893,
71
+ "projector_bias": true,
72
+ "projector_hidden_act": "gelu",
73
+ "projector_hidden_size": 2048,
74
+ "projector_lr_multiplier": 1.0,
75
+ "projector_use_layernorm": false,
76
+ "quantization": {
77
+ "group_size": 32,
78
+ "bits": 4,
79
+ "mode": "mxfp4"
80
+ },
81
+ "quantization_config": {
82
+ "group_size": 32,
83
+ "bits": 4,
84
+ "mode": "mxfp4"
85
+ },
86
+ "siglip2_layernorm_fusion": "liger",
87
+ "temperature": 0.2,
88
+ "text_config": {
89
+ "block__name_mlp": "parallel_mlp_merged",
90
+ "block_auto_adjust_ff_dim": false,
91
+ "block_dim": 2048,
92
+ "block_ffn_dim_multiplier": 1.0,
93
+ "block_ffn_te_autocast": false,
94
+ "block_ffn_use_quantized_params": false,
95
+ "block_mlp_init_scale": 1.0,
96
+ "block_multiple_of": 256,
97
+ "block_norm_eps": 1e-05,
98
+ "block_out_init_scale": 1.0,
99
+ "block_use_swiglu": true,
100
+ "block_use_xavier_init": true,
101
+ "bos_token_id": 124894,
102
+ "conv_L_cache": 3,
103
+ "conv_bias": false,
104
+ "conv_dim": 2048,
105
+ "conv_use_xavier_init": true,
106
+ "dtype": "bfloat16",
107
+ "eos_token_id": 124900,
108
+ "full_attn_idxs": null,
109
+ "hidden_size": 2048,
110
+ "initializer_range": 0.02,
111
+ "intermediate_size": 10752,
112
+ "layer_types": [
113
+ "conv",
114
+ "conv",
115
+ "full_attention",
116
+ "conv",
117
+ "conv",
118
+ "full_attention",
119
+ "conv",
120
+ "conv",
121
+ "conv",
122
+ "full_attention",
123
+ "conv",
124
+ "conv",
125
+ "conv",
126
+ "full_attention",
127
+ "conv",
128
+ "conv",
129
+ "conv",
130
+ "full_attention",
131
+ "conv",
132
+ "conv",
133
+ "conv",
134
+ "full_attention",
135
+ "conv",
136
+ "conv",
137
+ "full_attention",
138
+ "conv",
139
+ "conv",
140
+ "full_attention",
141
+ "conv",
142
+ "conv"
143
+ ],
144
+ "lfm2_attention_backend": "flash_varlen",
145
+ "lfm2_flash_varlen_blhd_fastpath": false,
146
+ "lfm2_frozen_input_grad_only_linear": true,
147
+ "max_position_embeddings": 128000,
148
+ "mm_config_image_embedder": {
149
+ "activation_checkpointing_layer_stride": 0,
150
+ "attn_implementation": "sdpa",
151
+ "cuda_sync_points": [],
152
+ "downsample": 2,
153
+ "encoder_load_balance": false,
154
+ "hidden_dim": 2048,
155
+ "hidden_state_index": -1,
156
+ "layer_norm": false,
157
+ "max_batch_size": 1024,
158
+ "pretrained_model_name_or_path": "google/siglip2-so400m-patch16-naflex",
159
+ "set_activation_checkpointing": false,
160
+ "use_image_special_tokens": true,
161
+ "use_pooling_head": false,
162
+ "use_slice_special_tokens": false,
163
+ "use_torch_pixel_unshuffle": false
164
+ },
165
+ "model_type": "lfm2",
166
+ "norm_eps": 1e-05,
167
+ "num_attention_heads": 32,
168
+ "num_heads": 32,
169
+ "num_hidden_layers": 30,
170
+ "num_key_value_heads": 8,
171
+ "output_softcap": 0.0,
172
+ "pad_token_id": 124893,
173
+ "rope_parameters": {
174
+ "rope_theta": 1000000.0,
175
+ "rope_type": "default"
176
+ },
177
+ "tie_word_embeddings": true,
178
+ "use_cache": true,
179
+ "use_pos_enc": true,
180
+ "vocab_size": 128000,
181
+ "architectures": [
182
+ "Lfm2ForCausalLM"
183
+ ],
184
+ "tie_embedding": true,
185
+ "block_ff_dim": 10752
186
+ },
187
+ "tie_word_embeddings": true,
188
+ "tile_size": 512,
189
+ "top_k": 50,
190
+ "transformers_version": "5.8.1",
191
+ "use_image_special_tokens": true,
192
+ "use_thumbnail": true,
193
+ "vision_config": {
194
+ "attention_dropout": 0.0,
195
+ "dtype": "bfloat16",
196
+ "hidden_act": "gelu_pytorch_tanh",
197
+ "hidden_size": 1152,
198
+ "intermediate_size": 4304,
199
+ "layer_norm_eps": 1e-06,
200
+ "model_type": "siglip2_vision_model",
201
+ "num_attention_heads": 16,
202
+ "num_channels": 3,
203
+ "num_hidden_layers": 27,
204
+ "num_patches": 256,
205
+ "patch_size": 16,
206
+ "vision_use_head": false
207
+ },
208
+ "vision_tower_lr_multiplier": 1.0,
209
+ "image_token_index": 124907
210
+ }