pbwpbw commited on
Commit
a66f0e1
·
verified ·
1 Parent(s): 6275756

Upload siglip causal retrieval base02 checkpoint

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ trainer_state.json filter=lfs diff=lfs merge=lfs -text
all_input_args.json ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "loss_args": {
3
+ "losses": "img_distill,retrieval",
4
+ "retrieval_loss_weight": 0.5,
5
+ "retrieval_queue_size": 8192,
6
+ "retrieval_loss_type": "sigmoid",
7
+ "retrieval_scale": 100.0,
8
+ "retrieval_bias": -15.0,
9
+ "retrieval_causal_positive_base": 0.2,
10
+ "distill_loss_weight": 1.0,
11
+ "temporal_memory_loss_weight": 1.0,
12
+ "temporal_memory_temperature": 0.05,
13
+ "temporal_memory_gamma": 0.8,
14
+ "order_loss_weight": 0.5,
15
+ "order_temperature": 0.07,
16
+ "order_num_negatives": 1,
17
+ "order_num_frames_per_video": 8,
18
+ "order_ema_decay": 0.0,
19
+ "order_save_prob": 0.0,
20
+ "order_save_dir": "order_debug_samples",
21
+ "order_save_max_samples": 200,
22
+ "temporal_state_loss_weight": 1.0,
23
+ "temporal_state_alpha": 1.0,
24
+ "temporal_state_stable_weight": 1.0,
25
+ "temporal_state_delta_weight": 1.0,
26
+ "temporal_state_teacher_chunk_size": 32,
27
+ "temporal_state_use_projection": true,
28
+ "pred_loss_weight": 1.0,
29
+ "history_decode_loss_weight": 1.0,
30
+ "img_distill_loss_weight": 1.0,
31
+ "img_distill_cos_weight": 1.0,
32
+ "img_distill_map_weight": 0.01,
33
+ "img_distill_retrieval_kl_weight": 1.0,
34
+ "img_distill_queue_size": 8192,
35
+ "img_distill_teacher_temperature": 0.05,
36
+ "img_distill_student_temperature": 0.1,
37
+ "img_distill_map_teacher_temperature": 0.07,
38
+ "img_distill_map_student_temperature": 0.07,
39
+ "img_distill_num_layers": [
40
+ "-1"
41
+ ]
42
+ },
43
+ "model_args": {
44
+ "model_name_or_path": "encoder_only",
45
+ "dataset_type": "image_video_webdataset",
46
+ "vision_tower": "gatedeltanet_siglip_2cross_history",
47
+ "pretrain_encoder": "/home/pubw/proj/encoder/playground/models/siglip2-base-patch16-224",
48
+ "mm_projector_type": "state_proj",
49
+ "vision_checkpoint_path": null,
50
+ "use_video_boundaries": true,
51
+ "video_cut": false,
52
+ "num_temporal_layers": 4,
53
+ "temporal_layer_indices": [
54
+ -1,
55
+ -2,
56
+ -3,
57
+ -4
58
+ ],
59
+ "conv_kernel_size": 4,
60
+ "state_expansion_factor": 1,
61
+ "temporal_state_init_mode": "learn",
62
+ "temporal_mlp_ratio": "2",
63
+ "image_token_index": 151655,
64
+ "video_token_index": 151656,
65
+ "vision_token_index": 151654,
66
+ "mm_hidden_size": null,
67
+ "collator_type": "video_instruction",
68
+ "target_frames_per_batch": 0,
69
+ "state_select_layer": -2,
70
+ "frames_per_stage": 16,
71
+ "max_stages": null,
72
+ "min_stages": 1,
73
+ "max_visual_stages": 16,
74
+ "model_mode": "encoder",
75
+ "vision_minimal_forward": false,
76
+ "frozen_spatial_chunk_size": 128,
77
+ "sparse_temporal_patch_ratio": 1.0
78
+ },
79
+ "data_args": {
80
+ "dataset_use": null,
81
+ "data_path": "./data/train.jsonl",
82
+ "image_data_path": "/home/pubw/proj/encoder/playground/images/cc12m_imagenet21k_recap_256_20m_wds/{00000..00045}.tar",
83
+ "video_data_path": "/home/pubw/proj/encoder/playground/videos/internvid-2m/shards_fps2_max32_jpgzip/data-{000001..000446}.tar",
84
+ "image_mix_ratio": 0.5,
85
+ "mixed_image_batch_size": 64,
86
+ "mixed_video_batch_size": 10,
87
+ "mixed_image_num_workers": 2,
88
+ "mixed_video_num_workers": 4,
89
+ "mixed_video_decode_threads": 1,
90
+ "mixed_video_oversample_factor": 1.0,
91
+ "mixed_video_target_frames": 180,
92
+ "mixed_min_frames_per_video": 8,
93
+ "mixed_max_image_repeats": 2,
94
+ "mixed_image_jitter_px": 0,
95
+ "mixed_image_jitter_brightness": 0.0,
96
+ "mixed_image_jitter_contrast": 0.0,
97
+ "mixed_image_jitter_noise_std": 0.0,
98
+ "step_mixed_image_steps": 1,
99
+ "step_mixed_video_steps": 4,
100
+ "video_root": null,
101
+ "video_metadata_cache_path": null,
102
+ "image_static_frames": 2,
103
+ "allowed_image_grids": null,
104
+ "num_frames": 4,
105
+ "fps": 2.0,
106
+ "eval_data_path": null,
107
+ "image_folder": "./data/images",
108
+ "image_min_pixels": 3136,
109
+ "image_max_pixels": 12845056,
110
+ "image_resized_width": null,
111
+ "image_resized_height": null,
112
+ "video_min_pixels": 100352,
113
+ "video_max_pixels": 602112,
114
+ "video_resized_width": null,
115
+ "video_resized_height": null,
116
+ "max_frames": 24
117
+ },
118
+ "training_args": {
119
+ "output_dir": "./output/siglip_1234_vid30_vf160_20000_sigmoid_scale100_bias015_ImgDistill4_nocut_causalretrieval",
120
+ "overwrite_output_dir": false,
121
+ "do_train": false,
122
+ "do_eval": false,
123
+ "do_predict": false,
124
+ "eval_strategy": "no",
125
+ "prediction_loss_only": false,
126
+ "per_device_train_batch_size": 1,
127
+ "per_device_eval_batch_size": 8,
128
+ "per_gpu_train_batch_size": null,
129
+ "per_gpu_eval_batch_size": null,
130
+ "gradient_accumulation_steps": 5,
131
+ "eval_accumulation_steps": null,
132
+ "eval_delay": 0,
133
+ "torch_empty_cache_steps": null,
134
+ "learning_rate": 2e-05,
135
+ "weight_decay": 0.05,
136
+ "adam_beta1": 0.9,
137
+ "adam_beta2": 0.95,
138
+ "adam_epsilon": 1e-08,
139
+ "max_grad_norm": 1.0,
140
+ "num_train_epochs": 3.0,
141
+ "max_steps": 20000,
142
+ "lr_scheduler_type": "cosine",
143
+ "lr_scheduler_kwargs": {},
144
+ "warmup_ratio": 0.03,
145
+ "warmup_steps": 0,
146
+ "log_level": "passive",
147
+ "log_level_replica": "warning",
148
+ "log_on_each_node": true,
149
+ "logging_dir": "./output/siglip_1234_vid30_vf160_20000_sigmoid_scale100_bias015_ImgDistill4_nocut_causalretrieval/runs/Aug11_13-43-12_612d7ecd0b4e",
150
+ "logging_strategy": "steps",
151
+ "logging_first_step": false,
152
+ "logging_steps": 1.0,
153
+ "logging_nan_inf_filter": true,
154
+ "save_strategy": "steps",
155
+ "save_steps": 1000,
156
+ "save_total_limit": 3,
157
+ "save_safetensors": true,
158
+ "save_on_each_node": false,
159
+ "save_only_model": false,
160
+ "restore_callback_states_from_checkpoint": false,
161
+ "no_cuda": false,
162
+ "use_cpu": false,
163
+ "use_mps_device": false,
164
+ "seed": 42,
165
+ "data_seed": null,
166
+ "jit_mode_eval": false,
167
+ "bf16": true,
168
+ "fp16": false,
169
+ "fp16_opt_level": "O1",
170
+ "half_precision_backend": "auto",
171
+ "bf16_full_eval": false,
172
+ "fp16_full_eval": false,
173
+ "tf32": true,
174
+ "local_rank": 1,
175
+ "ddp_backend": null,
176
+ "tpu_num_cores": null,
177
+ "tpu_metrics_debug": false,
178
+ "debug": [],
179
+ "dataloader_drop_last": true,
180
+ "eval_steps": null,
181
+ "dataloader_num_workers": 2,
182
+ "dataloader_prefetch_factor": 2,
183
+ "past_index": -1,
184
+ "run_name": "siglip_1234_vid30_vf160_20000_sigmoid_scale100_bias015_ImgDistill4_nocut_causalretrieval",
185
+ "disable_tqdm": false,
186
+ "remove_unused_columns": false,
187
+ "label_names": null,
188
+ "load_best_model_at_end": false,
189
+ "metric_for_best_model": null,
190
+ "greater_is_better": null,
191
+ "ignore_data_skip": true,
192
+ "fsdp": [],
193
+ "fsdp_min_num_params": 0,
194
+ "fsdp_config": {
195
+ "min_num_params": 0,
196
+ "xla": false,
197
+ "xla_fsdp_v2": false,
198
+ "xla_fsdp_grad_ckpt": false
199
+ },
200
+ "fsdp_transformer_layer_cls_to_wrap": null,
201
+ "accelerator_config": {
202
+ "split_batches": false,
203
+ "dispatch_batches": null,
204
+ "even_batches": true,
205
+ "use_seedable_sampler": true,
206
+ "non_blocking": false,
207
+ "gradient_accumulation_kwargs": null
208
+ },
209
+ "parallelism_config": null,
210
+ "deepspeed": "scripts/zero1.json",
211
+ "label_smoothing_factor": 0.0,
212
+ "optim": "adamw_torch",
213
+ "optim_args": null,
214
+ "adafactor": false,
215
+ "group_by_length": false,
216
+ "length_column_name": "length",
217
+ "report_to": [
218
+ "wandb"
219
+ ],
220
+ "project": "huggingface",
221
+ "trackio_space_id": "trackio",
222
+ "ddp_find_unused_parameters": false,
223
+ "ddp_bucket_cap_mb": null,
224
+ "ddp_broadcast_buffers": null,
225
+ "dataloader_pin_memory": true,
226
+ "dataloader_persistent_workers": false,
227
+ "skip_memory_metrics": true,
228
+ "use_legacy_prediction_loop": false,
229
+ "push_to_hub": false,
230
+ "resume_from_checkpoint": "False",
231
+ "hub_model_id": null,
232
+ "hub_strategy": "every_save",
233
+ "hub_token": "<HUB_TOKEN>",
234
+ "hub_private_repo": null,
235
+ "hub_always_push": false,
236
+ "hub_revision": null,
237
+ "gradient_checkpointing": true,
238
+ "gradient_checkpointing_kwargs": null,
239
+ "include_inputs_for_metrics": false,
240
+ "include_for_metrics": [],
241
+ "eval_do_concat_batches": true,
242
+ "fp16_backend": "auto",
243
+ "push_to_hub_model_id": null,
244
+ "push_to_hub_organization": null,
245
+ "push_to_hub_token": "<PUSH_TO_HUB_TOKEN>",
246
+ "mp_parameters": "",
247
+ "auto_find_batch_size": false,
248
+ "full_determinism": false,
249
+ "torchdynamo": null,
250
+ "ray_scope": "last",
251
+ "ddp_timeout": 1800,
252
+ "torch_compile": false,
253
+ "torch_compile_backend": null,
254
+ "torch_compile_mode": null,
255
+ "include_tokens_per_second": false,
256
+ "include_num_input_tokens_seen": "no",
257
+ "neftune_noise_alpha": null,
258
+ "optim_target_modules": null,
259
+ "batch_eval_metrics": false,
260
+ "eval_on_start": false,
261
+ "use_liger_kernel": true,
262
+ "liger_kernel_config": null,
263
+ "eval_use_gather_object": false,
264
+ "average_tokens_across_devices": true,
265
+ "cache_dir": null,
266
+ "double_quant": true,
267
+ "quant_type": "nf4",
268
+ "bits": 16,
269
+ "trainable_layers": 0,
270
+ "frozen_text_encoder": false,
271
+ "lora_enable": false,
272
+ "lora_rank": 64,
273
+ "lora_alpha": 16,
274
+ "lora_dropout": 0.05,
275
+ "lora_weight_path": "",
276
+ "lora_bias": "none",
277
+ "use_lora": false,
278
+ "tune_llm": false,
279
+ "tune_connector": false,
280
+ "tune_vision_temporal": true,
281
+ "tune_vision_other": false,
282
+ "tune_vision_spatial_pair_t": false,
283
+ "tune_pooling_head": false,
284
+ "max_train_samples": 20000000,
285
+ "llm_lr": 0.0,
286
+ "connector_lr": 0.0,
287
+ "vision_temporal_lr": 0.0005,
288
+ "vision_other_lr": 0.0,
289
+ "vision_spatial_lora_lr": 0.0005,
290
+ "vision_spatial_pair_t_lr": null,
291
+ "pooling_head_lr": 5e-06,
292
+ "vision_spatial_lora_enable": false,
293
+ "vision_spatial_lora_rank": 32,
294
+ "vision_spatial_lora_alpha": 32,
295
+ "vision_spatial_lora_dropout": 0.0,
296
+ "llm_sequence_packing": false,
297
+ "max_packed_tokens": 0,
298
+ "packing_buffer_size": 512,
299
+ "packing_prefetch_workers": 4,
300
+ "cross_rank_packing_balance": true,
301
+ "grad_norm_skip_threshold": 0.0,
302
+ "drop_token": "<DROP_TOKEN>",
303
+ "downsample": false,
304
+ "debug_cuda_sync_timing": false,
305
+ "log_rank_balance": true
306
+ }
307
+ }
config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vision_tower": "gatedeltanet_siglip_2cross_history",
3
+ "pretrain_encoder": "/home/pubw/proj/encoder/playground/models/siglip2-base-patch16-224",
4
+ "num_temporal_layers": 4,
5
+ "temporal_layer_indices": [
6
+ -1,
7
+ -2,
8
+ -3,
9
+ -4
10
+ ],
11
+ "conv_kernel_size": 4,
12
+ "state_expansion_factor": 1,
13
+ "temporal_state_init_mode": "learn",
14
+ "temporal_mlp_ratio": 2,
15
+ "select_layer": -2,
16
+ "state_select_layer": -2,
17
+ "vision_output_hidden_states": true
18
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f270f65fca3b7db31425aa87ed4051bba991f3e33b337ad08c612a9d0bf6874
3
+ size 271293392
preprocessor_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": false,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
+ "do_convert_rgb": null,
9
+ "do_normalize": true,
10
+ "do_pad": null,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_mean": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "image_processor_type": "SiglipImageProcessorFast",
19
+ "image_std": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "input_data_format": null,
25
+ "pad_size": null,
26
+ "processor_class": "SimpleProcessor",
27
+ "resample": 2,
28
+ "rescale_factor": 0.00392156862745098,
29
+ "return_tensors": null,
30
+ "size": {
31
+ "height": 224,
32
+ "width": 224
33
+ }
34
+ }
processor_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fps": 2.0,
3
+ "frames_per_stage": 16,
4
+ "max_frames": 24,
5
+ "max_stages": 16,
6
+ "max_visual_stages": 16,
7
+ "min_stages": 1,
8
+ "patch_size": 16,
9
+ "processor_class": "SimpleProcessor",
10
+ "select_stage_frames_upfront": false
11
+ }
trainer_state.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5d6fe670e2de3ca2ae74cd6415cc7ab1d3bfe37c224255b6140a3dbe2c2385c
3
+ size 20622410
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e82b096d6ef26644431756661f220c05784fe0025d654636111edd8fa18d577d
3
+ size 8721