Bulru1234 commited on
Commit
9d37d96
·
verified ·
1 Parent(s): 265a834

release: add Bridge checkpoint

Browse files
bridge_step50000/dataset_statistics.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "oxe_bridge": {
3
+ "action": {
4
+ "mean": [
5
+ 0.0002273258287459612,
6
+ 0.00013113691238686442,
7
+ -0.00012639156193472445,
8
+ -0.00014385415124706924,
9
+ -0.00039017299422994256,
10
+ 0.00024080397270154208,
11
+ 0.5765793323516846
12
+ ],
13
+ "std": [
14
+ 0.009770580567419529,
15
+ 0.013695014640688896,
16
+ 0.012675177305936813,
17
+ 0.02845500037074089,
18
+ 0.030521046370267868,
19
+ 0.07739090174436569,
20
+ 0.4966537058353424
21
+ ],
22
+ "max": [
23
+ 0.41691166162490845,
24
+ 0.25864794850349426,
25
+ 0.21218234300613403,
26
+ 3.122201919555664,
27
+ 1.8618112802505493,
28
+ 6.272472858428955,
29
+ 1.0
30
+ ],
31
+ "min": [
32
+ -0.4007510244846344,
33
+ -0.13874775171279907,
34
+ -0.22553899884223938,
35
+ -3.2010786533355713,
36
+ -1.8618112802505493,
37
+ -6.279075622558594,
38
+ 0.0
39
+ ],
40
+ "q01": [
41
+ -0.028752606511116028,
42
+ -0.041702210046350954,
43
+ -0.026096698231995105,
44
+ -0.08052822157740593,
45
+ -0.09249736212193965,
46
+ -0.20738411962985992,
47
+ 0.0
48
+ ],
49
+ "q99": [
50
+ 0.02830690816044803,
51
+ 0.04089860741049051,
52
+ 0.04018005654215808,
53
+ 0.08173405691981314,
54
+ 0.07760896608233431,
55
+ 0.20384809583425495,
56
+ 1.0
57
+ ],
58
+ "mask": [
59
+ true,
60
+ true,
61
+ true,
62
+ true,
63
+ true,
64
+ true,
65
+ false
66
+ ]
67
+ },
68
+ "state": {
69
+ "mean": [
70
+ 0.3094329535961151,
71
+ 0.030725397169589996,
72
+ 0.06444206088781357,
73
+ 0.006489328108727932,
74
+ -0.07720080018043518,
75
+ 0.10767334699630737,
76
+ 0.0,
77
+ 0.7081261277198792
78
+ ],
79
+ "std": [
80
+ 0.06056813895702362,
81
+ 0.09190769493579865,
82
+ 0.05156221613287926,
83
+ 0.13109272718429565,
84
+ 0.16913393139839172,
85
+ 0.5779843926429749,
86
+ 0.0,
87
+ 0.35254883766174316
88
+ ],
89
+ "max": [
90
+ 0.5862360596656799,
91
+ 0.4034728705883026,
92
+ 0.3568263053894043,
93
+ 1.3517684936523438,
94
+ 1.570796251296997,
95
+ 3.141204357147217,
96
+ 0.0,
97
+ 1.1121242046356201
98
+ ],
99
+ "min": [
100
+ -0.04167502000927925,
101
+ -0.3563207685947418,
102
+ -0.15537554025650024,
103
+ -3.141592502593994,
104
+ -1.4992541074752808,
105
+ -3.14153790473938,
106
+ 0.0,
107
+ 0.04637829214334488
108
+ ],
109
+ "q01": [
110
+ 0.17102580681443214,
111
+ -0.16981234937906264,
112
+ -0.05563282176852226,
113
+ -0.36493386059999466,
114
+ -0.5418747025728226,
115
+ -1.3542919230461121,
116
+ 0.0,
117
+ 0.052190229296684265
118
+ ],
119
+ "q99": [
120
+ 0.45322125554084775,
121
+ 0.2354859386384485,
122
+ 0.19489662453532214,
123
+ 0.3779941478371616,
124
+ 0.2756884342432019,
125
+ 1.8500668883323654,
126
+ 0.0,
127
+ 1.0105689764022827
128
+ ]
129
+ },
130
+ "num_transitions": 1305714,
131
+ "num_trajectories": 38660
132
+ }
133
+ }
bridge_step50000/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f3b6d31f4bced9204ab6f338f11139d6e3f865077708b62b0d744ae71ad5311
3
+ size 14283823530
bridge_step50000/training_config.yaml ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ runtime:
2
+ python_bin: python3
3
+ accelerate_config: foreact/config/deepspeed/zero2.yaml
4
+ model_dir: pretrained/cosmos2
5
+ data_root_dir: &data_root data
6
+ output_root: &output_root outputs
7
+ run_name: &run_name foreact_bridge
8
+ append_timestamp: true
9
+ gpu_ids: "0,1,2,3,4,5,6,7"
10
+ nproc_per_node: null
11
+ main_process_port: 29521
12
+ steps: &steps 50000
13
+ per_device_batch_size: &batch_size 12
14
+ num_workers: &workers 8
15
+ save_every: &save_every 2500
16
+ log_every: &log_every 10
17
+ warmup_steps: &warmup 5000
18
+ seed: &seed 42
19
+ gradient_accumulation_steps: &accumulation 1
20
+ resume: none
21
+ write_checkpoints: true
22
+ wandb_mode: offline
23
+ omp_num_threads: 8
24
+ cuda_allocator_config: expandable_segments:True
25
+ nccl_async_error_handling: 1
26
+
27
+ run_id: *run_name
28
+ run_root_dir: *output_root
29
+ seed: *seed
30
+ version_id: "0.21"
31
+ is_debug: false
32
+ wandb_entity: null
33
+ wandb_project: ForeAct
34
+
35
+ framework:
36
+ name: CosmoPredict2GR00T
37
+ world_model:
38
+ base_wm: pretrained/cosmos2
39
+ extract_layers: [-1]
40
+ internal_depth_tokens:
41
+ enabled: true
42
+ num_tokens: 8
43
+ position_mode: global
44
+ head_dim: 256
45
+ coord_dim: 128
46
+ seed_grid: [10, 18]
47
+ num_res_blocks: 2
48
+ vae_seed_fusion:
49
+ enabled: true
50
+ input_channels: 16
51
+ downsample_factor: 4
52
+ action_model:
53
+ action_model_type: DiT-B
54
+ action_hidden_dim: 1024
55
+ hidden_size: 1024
56
+ add_pos_embed: true
57
+ max_seq_len: 1024
58
+ action_dim: 7
59
+ state_dim: 7
60
+ action_horizon: 16
61
+ repeated_diffusion_steps: 8
62
+ noise_beta_alpha: 1.5
63
+ noise_beta_beta: 1.0
64
+ noise_s: 0.999
65
+ num_timestep_buckets: 1000
66
+ num_inference_timesteps: 4
67
+ num_target_vision_tokens: 32
68
+ diffusion_model_cfg:
69
+ cross_attention_dim: 2048
70
+ dropout: 0.2
71
+ final_dropout: true
72
+ interleave_self_attention: true
73
+ norm_type: ada_norm
74
+ num_layers: 16
75
+ output_dim: 1024
76
+ positional_embeddings: null
77
+
78
+ prompt:
79
+ template: >-
80
+ Robot task: {instruction}. Predict the depth of the next observation frame
81
+ and the next 16 robot actions.
82
+
83
+ depth:
84
+ enabled: true
85
+ supervision_enabled: true
86
+ normalization: genception_median_log
87
+ median_scope: frame
88
+ log_alpha: 0.8613366
89
+ min_depth_m: 0.05
90
+ max_depth_m: 10.0
91
+ action_loss_weight: 1.0
92
+ loss_weight: 0.01
93
+ latent_loss_weight: 1.0
94
+ pixel_loss_weight: 0.10
95
+ gradient_loss_weight: 0.05
96
+ backbone_gradient_scale: 0.01
97
+ decoder_gradient_checkpointing: true
98
+ decode_in_train: false
99
+
100
+ datasets:
101
+ vla_data:
102
+ dataset_py: lerobot_datasets
103
+ data_root_dir: *data_root
104
+ data_mix: bridge
105
+ include_state: false
106
+ action_mode: abs
107
+ per_device_batch_size: *batch_size
108
+ num_workers: *workers
109
+ persistent_workers: false
110
+ prefetch_factor: 2
111
+ pin_memory: true
112
+ balance_dataset_weights: false
113
+ balance_trajectory_weights: false
114
+ obs_image_size: [224, 224]
115
+ video_backend: torchvision_av
116
+ lerobot_version: v2.0
117
+ depth_cache_root: data/depth/bridge_next1_moge3
118
+ depth_cache_dataset_name: bridge_orig_1.0.0_lerobot
119
+ depth_cache_horizon: 1
120
+ depth_frame_offsets: [1]
121
+ depth_model_size: [320, 576]
122
+ depth_episodes_per_directory: 1000
123
+ depth_cache_lru_size: 4
124
+ depth_normalization: genception_median_log
125
+ depth_median_scope: frame
126
+ depth_log_alpha: 0.8613366
127
+ min_depth_m: 0.05
128
+ max_depth_m: 10.0
129
+ require_depth: true
130
+
131
+ trainer:
132
+ max_train_steps: *steps
133
+ num_warmup_steps: *warmup
134
+ save_interval: *save_every
135
+ eval_interval: 1000
136
+ logging_frequency: *log_every
137
+ gradient_accumulation_steps: *accumulation
138
+ learning_rate:
139
+ base: 1.0e-5
140
+ action_model: 1.0e-4
141
+ backbone.depth_head: 1.0e-4
142
+ lr_scheduler_type: cosine_with_min_lr
143
+ scheduler_specific_kwargs:
144
+ min_lr: 5.0e-7
145
+ freeze_modules: ''
146
+ max_grad_norm: 1.0
147
+ gradient_clipping: 1.0
148
+ weight_decay: 0.0
149
+ optimizer:
150
+ name: AdamW
151
+ betas: [0.9, 0.95]
152
+ eps: 1.0e-8
153
+ weight_decay: 1.0e-8
154
+ save_format: pt
155
+ is_resume: false
156
+ pretrained_checkpoint: null