hywslxh commited on
Commit
bbd7bc4
·
verified ·
1 Parent(s): 416d1cf

Upload pi-zero.json

Browse files
Files changed (1) hide show
  1. pi-zero.json +269 -0
pi-zero.json ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "robovlm_name": "RoboPiZero",
3
+ "parent": null,
4
+ "task_name": "pizero_finetune",
5
+ "model": "pizero",
6
+ "model_url": "https://huggingface.co/google/paligemma-3b-pt-224",
7
+ "seq_len": 1,
8
+ "image_size": 224,
9
+ "image_mean": [
10
+ 0.48145466,
11
+ 0.4578275,
12
+ 0.40821073
13
+ ],
14
+ "image_std": [
15
+ 0.26862954,
16
+ 0.26130258,
17
+ 0.27577711
18
+ ],
19
+ "window_size": 1,
20
+ "fwd_pred_next_n": 4,
21
+ "arm_gripper_loss_ratio": 0.01,
22
+ "text_loss_ratio": 0.1,
23
+ "cap_loss_ratio": 0.05,
24
+ "fwd_loss_ratio": 0,
25
+ "vl_cotrain_ratio": 1,
26
+ "seed": 123,
27
+ "batch_size": 4,
28
+ "num_workers": 16,
29
+ "data_scale": 1,
30
+ "optimizer": "adam",
31
+ "learning_rate": 2e-05,
32
+ "min_lr_scale": 0.01,
33
+ "weight_decay": 0,
34
+ "warmup_epochs": 0.25,
35
+ "warmup_steps": 0,
36
+ "warmup_ratio": null,
37
+ "use_hand_rgb": true,
38
+ "use_time_causal_attn": false,
39
+ "use_mim_obs_loss": false,
40
+ "use_pixel_loss": true,
41
+ "use_obs_queries": true,
42
+ "use_vision_resampler": false,
43
+ "vision_masked_ratio": 0.9,
44
+ "use_tube_mask": false,
45
+ "cache_root": "runs/cache/pizero",
46
+ "model_load_path": null,
47
+ "model_load_source": "torch",
48
+ "resume": null,
49
+ "use_cot_stage_token": false,
50
+ "use_cot": false,
51
+ "force_model_cot": false,
52
+ "use_chat_stage_token": false,
53
+ "cot_tags": [
54
+ "task",
55
+ "plan",
56
+ "bboxes",
57
+ "subtask_reason",
58
+ "subtask",
59
+ "move_reason",
60
+ "move",
61
+ "gripper"
62
+ ],
63
+ "model_path": "/share/project/lxh/project/VLMs/paligemma-3b-pt-224",
64
+ "model_config": "/share/project/lxh/project/VLMs/paligemma-3b-pt-224",
65
+ "deepspeed_config": {
66
+ "fp16": {
67
+ "enabled": false,
68
+ "loss_scale": 0,
69
+ "loss_scale_window": 1000,
70
+ "initial_scale_power": 16,
71
+ "hysteresis": 2,
72
+ "min_loss_scale": 1
73
+ },
74
+ "bf16": {
75
+ "enabled": true
76
+ },
77
+ "zero_allow_untested_optimizer": true,
78
+ "train_micro_batch_size_per_gpu": 4,
79
+ "zero_optimization": {
80
+ "stage": 2,
81
+ "overlap_comm": true,
82
+ "contiguous_gradients": true,
83
+ "reduce_bucket_size": 500000000.0,
84
+ "allgather_partitions": true,
85
+ "allgather_bucket_size": 500000000.0,
86
+ "reduce_scatter": true
87
+ },
88
+ "communication": {
89
+ "nccl_timeout": 3600,
90
+ "all_reduce_timeout": 7200
91
+ },
92
+ "gradient_accumulation_steps": 4,
93
+ "gradient_clipping": 0.0
94
+ },
95
+ "train_setup": {
96
+ "precision": "bf16",
97
+ "predict_action": true,
98
+ "predict_forward": false,
99
+ "predict_forward_hand": false,
100
+ "predict_caption": false,
101
+ "train_vision": true,
102
+ "bits": -1,
103
+ "freeze_mm_mlp_adapter": false,
104
+ "freeze_backbone": false,
105
+ "freeze_resampler": false,
106
+ "tune_mm_mlp_adapter": false,
107
+ "mm_use_im_start_end": false,
108
+ "mm_use_im_patch_token": false,
109
+ "gradient_checkpointing": false,
110
+ "lora_enable": false,
111
+ "mm_projector_lr": 0.0001,
112
+ "lora_r": 64,
113
+ "lora_alpha": 16,
114
+ "lora_dropout": 0.05,
115
+ "lora_bias": "none",
116
+ "train_text_embedding": true
117
+ },
118
+ "vision_resampler": {
119
+ "vis_dim": 1024,
120
+ "depth": 8,
121
+ "dim_head": 64,
122
+ "heads": 8,
123
+ "num_latents": 64
124
+ },
125
+ "act_encoder": null,
126
+ "act_head": {
127
+ "type": "FCDecoder",
128
+ "hidden_size": 1024,
129
+ "action_dim": 7,
130
+ "down_sample": "none",
131
+ "latent": 1,
132
+ "fwd_pred_next_n": 1,
133
+ "window_size": 1,
134
+ "action_space": "continuous",
135
+ "with_history": true,
136
+ "history_type": "post",
137
+ "n_bin": 256,
138
+ "min_action": -1,
139
+ "max_action": 1
140
+ },
141
+ "fwd_head": null,
142
+ "tokenizer": {
143
+ "type": "AutoProcessor",
144
+ "pretrained_model_name_or_path": "/share/project/lxh/project/VLMs/paligemma-3b-pt-224",
145
+ "tokenizer_type": "paligemma",
146
+ "max_text_len": 256,
147
+ "additional_special_tokens": null
148
+ },
149
+ "vlm": {
150
+ "type": "Pizero",
151
+ "name": "pizero",
152
+ "dtype": "bfloat16",
153
+ "pretrained_model_name_or_path": "/share/project/lxh/project/VLMs/paligemma-3b-pt-224",
154
+ "mixture": {
155
+ "vlm": {
156
+ "hidden_size": 2048,
157
+ "intermediate_size": 16384,
158
+ "use_final_norm": false,
159
+ "cache": true,
160
+ "rope_theta": 10000.0,
161
+ "use_quantize": false,
162
+ "use_lora": false,
163
+ "adaptive_mode": null
164
+ },
165
+ "proprio": {
166
+ "hidden_size": 1024,
167
+ "intermediate_size": 4096,
168
+ "use_final_norm": true,
169
+ "cache": true,
170
+ "rope_theta": 100.0,
171
+ "use_quantize": false,
172
+ "use_lora": false,
173
+ "adaptive_mode": null
174
+ },
175
+ "action": {
176
+ "hidden_size": 1024,
177
+ "intermediate_size": 4096,
178
+ "use_final_norm": true,
179
+ "cache": false,
180
+ "rope_theta": 100.0,
181
+ "use_quantize": false,
182
+ "use_lora": false,
183
+ "adaptive_mode": null
184
+ }
185
+ },
186
+ "num_hidden_layers": 18,
187
+ "num_attention_heads": 8,
188
+ "num_key_value_heads": 1,
189
+ "num_inference_steps": 10,
190
+ "head_dim": 256,
191
+ "rms_norm_eps": 1e-06,
192
+ "attention_bias": false,
193
+ "attention_dropout": 0.0,
194
+ "max_image_text_tokens": 276,
195
+ "cond_steps": 1,
196
+ "horizon_steps": 4,
197
+ "pad_token_id": 0,
198
+ "time_hidden_size": 256,
199
+ "action_expert_adaptive_mode": null,
200
+ "final_action_clip_value": 1.0,
201
+ "action_dim": 7,
202
+ "proprio_dim": 7,
203
+ "time_max_period": 100.0,
204
+ "flow_sampling": "beta",
205
+ "flow_alpha": 1.5,
206
+ "flow_beta": 1.0,
207
+ "flow_sig_min": 0.001
208
+ },
209
+ "trainer": {
210
+ "accelerator": "gpu",
211
+ "strategy": "deepspeed_stage_2",
212
+ "precision": "bf16",
213
+ "logger": [
214
+ "tensorboard"
215
+ ],
216
+ "gradient_clip_val": 1.0,
217
+ "use_distributed_sampler": false,
218
+ "log_every_n_steps": 10,
219
+ "max_epochs": 10,
220
+ "val_check_interval": null,
221
+ "check_val_every_n_epoch": 1,
222
+ "max_steps": -1,
223
+ "accumulate_grad_batches": 4
224
+ },
225
+ "use_cot_data": true,
226
+ "train_dataset": {
227
+ "type": "OpenVLADatasetByRank",
228
+ "data_root_dir": "/share/project/lxh/datasets/tf_datasets",
229
+ "model_name": "paligemma",
230
+ "image_aug": true,
231
+ "mode": "train",
232
+ "data_mix": "bridge",
233
+ "window_sample": "sliding",
234
+ "organize_type": "interleave",
235
+ "shuffle_buffer_size": 51200,
236
+ "train": true
237
+ },
238
+ "val_dataset": {
239
+ "type": "OpenVLADatasetByRank",
240
+ "data_root_dir": "/share/project/lxh/datasets/tf_datasets",
241
+ "model_name": "paligemma",
242
+ "mode": "train",
243
+ "data_mix": "bridge",
244
+ "window_sample": "sliding",
245
+ "organize_type": "interleave",
246
+ "shuffle_buffer_size": 10000,
247
+ "train": false
248
+ },
249
+ "raw_config_path": "/share/project/lxh/project/RoboVLMs-dev/configs/baai_oxe/finetune_pizero_bridge_no-cot.json",
250
+ "config": "/share/project/lxh/project/RoboVLMs-dev/configs/baai_oxe/finetune_pizero_bridge_no-cot.json",
251
+ "gpus": 8,
252
+ "num_nodes": 4,
253
+ "log_dir": "runs/logs/pizero/pizero_finetune/2025-04-29/05-54",
254
+ "output_dir": "runs/checkpoints/pizero/pizero_finetune/2025-04-29/05-54",
255
+ "data_dir": null,
256
+ "annotation_file": null,
257
+ "data_subfolder": null,
258
+ "task_num": null,
259
+ "exp_name": "05-54",
260
+ "use_multi_modal_emb": false,
261
+ "no_video_pretrained_model": false,
262
+ "finetune": false,
263
+ "llm": {
264
+ "type": null,
265
+ "n_embd": null,
266
+ "n_layer": null,
267
+ "n_head": null
268
+ }
269
+ }