Evanxw0715 commited on
Commit
170bb9b
·
verified ·
1 Parent(s): e6805fb

Upload OAT action tokenizer and VLA

Browse files
OAT/AT/step_50000/pretrained_model/README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - model_hub_mixin
4
+ - pytorch_model_hub_mixin
5
+ ---
6
+
7
+ This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
8
+ - Code: [More Information Needed]
9
+ - Paper: [More Information Needed]
10
+ - Docs: [More Information Needed]
OAT/AT/step_50000/pretrained_model/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "action_dim": 12,
3
+ "action_horizon": 32,
4
+ "decoder_depth": 6,
5
+ "dropout": 0.1,
6
+ "emb_dim": 256,
7
+ "encoder_depth": 6,
8
+ "head_dim": 32,
9
+ "latent_dim": 4,
10
+ "latent_dropout_mode": "pow2",
11
+ "latent_horizon": 16,
12
+ "name": "oat",
13
+ "pretrained_path": null,
14
+ "quantizer_apply_corrupt_tokens_p": 0.2,
15
+ "quantizer_corrupt_tokens_p": 0.0,
16
+ "quantizer_drop_quant_p": 0.0,
17
+ "quantizer_levels": [
18
+ 8,
19
+ 8,
20
+ 6,
21
+ 5
22
+ ],
23
+ "quantizer_min_corrupt_tokens_p": null
24
+ }
OAT/AT/step_50000/pretrained_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c359b2671eb51b6834ad4c84492e4b764204a568e34feb1d6bb29f03dd7a270
3
+ size 44177496
OAT/AT/step_50000/pretrained_model/norm_stats.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7a1c9cb9a517d9ff84cc85ec419a08327078c369eddc7ed0a2622f65a5a50b0
3
+ size 3957
OAT/AT/step_50000/pretrained_model/policy_io.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "obs_features": [],
3
+ "action_feature": {
4
+ "key": "action",
5
+ "type": "action",
6
+ "shape": [
7
+ 12
8
+ ],
9
+ "norm_mode": "min_max"
10
+ },
11
+ "n_obs_steps": 0,
12
+ "n_action_steps": 32,
13
+ "fps": 30,
14
+ "language_key": null
15
+ }
OAT/AT/step_50000/pretrained_model/train_config.yaml ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ codec:
2
+ name: oat
3
+ kind: tokens
4
+ pretrained_path: null
5
+ action_dim: 12
6
+ action_horizon: 32
7
+ max_fit_chunks: 50000
8
+ latent_horizon: 16
9
+ emb_dim: 256
10
+ head_dim: 32
11
+ encoder_depth: 6
12
+ decoder_depth: 6
13
+ dropout: 0.1
14
+ latent_dropout_mode: pow2
15
+ quantizer_levels:
16
+ - 8
17
+ - 8
18
+ - 6
19
+ - 5
20
+ quantizer_drop_quant_p: 0.0
21
+ quantizer_corrupt_tokens_p: 0.0
22
+ quantizer_min_corrupt_tokens_p: null
23
+ quantizer_apply_corrupt_tokens_p: 0.2
24
+ dataset:
25
+ name: so101_block
26
+ repo_id: local/bicat_so101_block
27
+ root: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/data/block
28
+ hf_datasets_cache: ${oc.env:HF_DATASETS_CACHE,null}
29
+ episodes: null
30
+ action_key: action
31
+ exclude_episodes_file: null
32
+ action_stats_file: null
33
+ observation_keys: []
34
+ video_backend: pyav
35
+ bypass_force_cache_sync: true
36
+ trainer:
37
+ max_steps: 50000
38
+ batch_size: 512
39
+ global_batch_size: 512
40
+ num_workers: 4
41
+ prefetch_factor: 4
42
+ use_episode_aware_sampler: true
43
+ drop_n_first_frames: 0
44
+ drop_n_last_frames: 0
45
+ weight_decay: 0.0
46
+ betas:
47
+ - 0.9
48
+ - 0.95
49
+ eps: 1.0e-08
50
+ lr_scheduler: constant
51
+ warmup_steps: 200
52
+ warmup_steps_by_family: null
53
+ min_lr_ratio: 0.1
54
+ lr_decay_steps: null
55
+ use_ema: true
56
+ ema_decay: 0.995
57
+ mixed_precision: bf16
58
+ gradient_accumulation_steps: 1
59
+ find_unused_parameters: false
60
+ max_grad_norm: 1.0
61
+ distributed_strategy: ddp
62
+ fsdp_min_num_params: 100000000
63
+ fsdp_reshard_after_forward: true
64
+ fsdp_cpu_offload: false
65
+ log_every: 200
66
+ val_every: 0
67
+ checkpoint_every: 0
68
+ checkpoint_start_step: 50000
69
+ checkpoint_dir: ${output_dir}/checkpoints
70
+ local_log_path: ${output_dir}/train_metrics.jsonl
71
+ val_ratio: 0.0
72
+ split_seed: ${seed}
73
+ val_batch_size: null
74
+ max_val_batches: 100
75
+ checkpoint_candidates:
76
+ best:
77
+ metric_key: val_reconst_loss
78
+ mode: min
79
+ k: 0
80
+ recent:
81
+ k: 0
82
+ use_wandb: true
83
+ wandb_project: SO101
84
+ wandb_entity: evan_lxw-harbin-institute-of-technology
85
+ wandb_init_timeout: 120
86
+ wandb_upload_eval_videos: false
87
+ wandb_max_eval_videos: 16
88
+ _trainer_type: codecs
89
+ lr: 5.0e-05
90
+ reconst_every: 5000
91
+ max_reconst_batches: null
92
+ reconstruct_on_train: true
93
+ skip_codec_fit: false
94
+ wandb_required: true
95
+ name: train_codecs
96
+ seed: 42
97
+ device: cuda
98
+ run_name: SO101_OAT_AT_50k_bs512
99
+ output_dir: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/model/OAT/AT
100
+ run_mode: overwrite
101
+ resume_checkpoint: null
OAT/AT/step_50000/training_state/ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39547fefa6a7ea1d84d88034254548e0277c5d56bc073318c9f47e6b9cf0f6cf
3
+ size 44093881
OAT/AT/step_50000/training_state/optimizer_param_groups.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "weight_decay": 0.0,
4
+ "lr": 5e-05,
5
+ "betas": [
6
+ 0.9,
7
+ 0.95
8
+ ],
9
+ "eps": 1e-08,
10
+ "amsgrad": false,
11
+ "maximize": false,
12
+ "foreach": null,
13
+ "capturable": false,
14
+ "differentiable": false,
15
+ "fused": true,
16
+ "decoupled_weight_decay": true,
17
+ "initial_lr": 5e-05,
18
+ "params": [
19
+ 0,
20
+ 1,
21
+ 2,
22
+ 3,
23
+ 4,
24
+ 5,
25
+ 6,
26
+ 7,
27
+ 8,
28
+ 9,
29
+ 10,
30
+ 11,
31
+ 12,
32
+ 13,
33
+ 14,
34
+ 15,
35
+ 16,
36
+ 17,
37
+ 18,
38
+ 19,
39
+ 20,
40
+ 21,
41
+ 22,
42
+ 23,
43
+ 24,
44
+ 25,
45
+ 26,
46
+ 27,
47
+ 28,
48
+ 29,
49
+ 30,
50
+ 31,
51
+ 32,
52
+ 33,
53
+ 34,
54
+ 35,
55
+ 36,
56
+ 37,
57
+ 38,
58
+ 39,
59
+ 40,
60
+ 41,
61
+ 42,
62
+ 43,
63
+ 44,
64
+ 45,
65
+ 46,
66
+ 47,
67
+ 48,
68
+ 49,
69
+ 50,
70
+ 51,
71
+ 52,
72
+ 53,
73
+ 54,
74
+ 55,
75
+ 56,
76
+ 57,
77
+ 58,
78
+ 59,
79
+ 60,
80
+ 61,
81
+ 62,
82
+ 63,
83
+ 64,
84
+ 65,
85
+ 66,
86
+ 67,
87
+ 68,
88
+ 69,
89
+ 70,
90
+ 71,
91
+ 72,
92
+ 73,
93
+ 74,
94
+ 75,
95
+ 76,
96
+ 77,
97
+ 78,
98
+ 79,
99
+ 80,
100
+ 81,
101
+ 82,
102
+ 83,
103
+ 84,
104
+ 85,
105
+ 86,
106
+ 87,
107
+ 88
108
+ ]
109
+ },
110
+ {
111
+ "weight_decay": 0.0,
112
+ "lr": 5e-05,
113
+ "betas": [
114
+ 0.9,
115
+ 0.95
116
+ ],
117
+ "eps": 1e-08,
118
+ "amsgrad": false,
119
+ "maximize": false,
120
+ "foreach": null,
121
+ "capturable": false,
122
+ "differentiable": false,
123
+ "fused": true,
124
+ "decoupled_weight_decay": true,
125
+ "initial_lr": 5e-05,
126
+ "params": [
127
+ 89,
128
+ 90,
129
+ 91,
130
+ 92,
131
+ 93
132
+ ]
133
+ }
134
+ ]
OAT/AT/step_50000/training_state/optimizer_state.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d5fc69260ceb9e44406375d99dab14d8fa7476e9825ec02feac063f4a3c9d4b
3
+ size 88160160
OAT/AT/step_50000/training_state/rng_state.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da88862ab02bfde43388582575411732dbe20ebcc50e2a07820f8fb51c8ab59d
3
+ size 15708
OAT/AT/step_50000/training_state/scheduler_state.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_lrs": [
3
+ 5e-05,
4
+ 5e-05
5
+ ],
6
+ "last_epoch": 50000,
7
+ "_step_count": 50001,
8
+ "_get_lr_called_within_step": false,
9
+ "_last_lr": [
10
+ 5e-05,
11
+ 5e-05
12
+ ],
13
+ "lr_lambdas": [
14
+ null,
15
+ null
16
+ ]
17
+ }
OAT/AT/step_50000/training_state/training_step.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "step": 50000
3
+ }
OAT/AT/step_50000/training_state/wandb_run_info.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "cx62riw1", "project": "SO101", "entity": "evan_lxw-harbin-institute-of-technology"}
OAT/VLA/step_5000/README.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # SO101_OAT_VLA_Molmo2ER_6k_bs128 — step 5000
2
+
3
+ Exported original model weights (not EMA) from the step_5000 DCP checkpoint.
4
+
5
+ The frozen OAT action tokenizer is loaded separately from the path in config.json and is not included in model.safetensors.
OAT/VLA/step_5000/config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "bar_oat_molmo",
3
+ "pretrained_path": null,
4
+ "vlm_model_name": "/scratch/users/nus/duanj1/Evan/bimanual_tokenizer/.cache/models/Molmo2-ER",
5
+ "vlm_dtype": "bfloat16",
6
+ "freeze_vision_encoder": false,
7
+ "use_lora": false,
8
+ "lora_r": 64,
9
+ "lora_alpha": 16,
10
+ "lora_target_modules": [
11
+ "att_proj",
12
+ "attn_out",
13
+ "ff_proj",
14
+ "ff_out"
15
+ ],
16
+ "lora_dropout": 0.05,
17
+ "lora_modules_to_save": [
18
+ "lm_head",
19
+ "wte"
20
+ ],
21
+ "gradient_checkpointing": true,
22
+ "action_dim": 12,
23
+ "action_tokenizer": {
24
+ "name": "oat",
25
+ "kind": "tokens",
26
+ "pretrained_path": "/scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/model/OAT/AT/checkpoints/step_50000/pretrained_model"
27
+ },
28
+ "freeze_action_tokenizer": true,
29
+ "num_action_tokens": null,
30
+ "action_token_template": "<|action_{i}|>",
31
+ "action_embed_init": "normal",
32
+ "state_prefix_encoding": "discrete_text",
33
+ "state_prefix_num_bins": 256,
34
+ "max_new_tokens": null,
35
+ "decode_temperature": null,
36
+ "decode_top_k": null,
37
+ "decode_keep_k": null,
38
+ "decode_stop_mode": "fixed_budget",
39
+ "block_ce_weighting": "block_mean",
40
+ "ce_vocab_scope": "full",
41
+ "action_mask_token_template": "<|action_mask|>",
42
+ "default_instruction": "Analyze the input image(s) and predict robot actions.",
43
+ "n_obs_steps": 1,
44
+ "action_horizon": 32,
45
+ "n_action_steps": 16
46
+ }
OAT/VLA/step_5000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7aab401810f522e84603678876b15902c7ab7a11e10fdfbf6fb4d395824f1f3
3
+ size 9720998624
OAT/VLA/step_5000/norm_stats.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6c6fe8a10376389da92f98b0e5af28eeab068d60784e463eac8e20a2957b8fb
3
+ size 3957
OAT/VLA/step_5000/policy_io.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "obs_features": [
3
+ {
4
+ "key": "observation.state",
5
+ "type": "state",
6
+ "shape": [
7
+ 12
8
+ ],
9
+ "norm_mode": "min_max"
10
+ },
11
+ {
12
+ "key": "observation.images.top",
13
+ "type": "image",
14
+ "shape": [
15
+ 3,
16
+ 480,
17
+ 640
18
+ ],
19
+ "norm_mode": "mean_std"
20
+ },
21
+ {
22
+ "key": "observation.images.left_wrist",
23
+ "type": "image",
24
+ "shape": [
25
+ 3,
26
+ 480,
27
+ 640
28
+ ],
29
+ "norm_mode": "mean_std"
30
+ },
31
+ {
32
+ "key": "observation.images.right_wrist",
33
+ "type": "image",
34
+ "shape": [
35
+ 3,
36
+ 480,
37
+ 640
38
+ ],
39
+ "norm_mode": "mean_std"
40
+ }
41
+ ],
42
+ "action_feature": {
43
+ "key": "action",
44
+ "type": "action",
45
+ "shape": [
46
+ 12
47
+ ],
48
+ "norm_mode": "min_max"
49
+ },
50
+ "n_obs_steps": 1,
51
+ "n_action_steps": 32,
52
+ "fps": 30,
53
+ "language_key": null
54
+ }
OAT/VLA/step_5000/train_config.yaml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ policy:
2
+ pretrained_path: null
3
+ vlm_model_name: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/.cache/models/Molmo2-ER
4
+ vlm_dtype: bfloat16
5
+ freeze_vision_encoder: false
6
+ use_lora: false
7
+ lora_r: 64
8
+ lora_alpha: 16
9
+ lora_target_modules:
10
+ - att_proj
11
+ - attn_out
12
+ - ff_proj
13
+ - ff_out
14
+ lora_dropout: 0.05
15
+ lora_modules_to_save:
16
+ - lm_head
17
+ - wte
18
+ gradient_checkpointing: true
19
+ action_token_template: <|action_{i}|>
20
+ action_mask_token_template: <|action_mask|>
21
+ action_embed_init: normal
22
+ state_prefix_encoding: discrete_text
23
+ state_prefix_num_bins: 256
24
+ default_instruction: Analyze the input image(s) and predict robot actions.
25
+ action_dim: null
26
+ n_obs_steps: 1
27
+ action_horizon: 32
28
+ n_action_steps: 16
29
+ action_tokenizer:
30
+ name: oat
31
+ kind: tokens
32
+ pretrained_path: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/model/OAT/AT/checkpoints/step_50000/pretrained_model
33
+ freeze_action_tokenizer: true
34
+ decode_keep_k: null
35
+ block_ce_weighting: block_mean
36
+ ce_vocab_scope: full
37
+ name: bar_oat_molmo
38
+ dataset:
39
+ name: so101_block
40
+ repo_id: local/bicat_so101_block
41
+ root: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/data/block
42
+ hf_datasets_cache: ${oc.env:HF_DATASETS_CACHE,null}
43
+ episodes: null
44
+ action_key: action
45
+ exclude_episodes_file: null
46
+ action_stats_file: null
47
+ observation_keys:
48
+ - observation.state
49
+ - observation.images.top
50
+ - observation.images.left_wrist
51
+ - observation.images.right_wrist
52
+ video_backend: pyav
53
+ bypass_force_cache_sync: true
54
+ trainer:
55
+ max_steps: 6000
56
+ batch_size: 64
57
+ global_batch_size: 128
58
+ num_workers: 4
59
+ prefetch_factor: 2
60
+ use_episode_aware_sampler: true
61
+ drop_n_first_frames: 0
62
+ drop_n_last_frames: 0
63
+ weight_decay: 1.0e-06
64
+ betas:
65
+ - 0.9
66
+ - 0.95
67
+ eps: 1.0e-06
68
+ lr_scheduler: cosine
69
+ warmup_steps: 500
70
+ warmup_steps_by_family:
71
+ vlm: 500
72
+ vision: 500
73
+ bridge: 500
74
+ min_lr_ratio: 0.1
75
+ lr_decay_steps: null
76
+ use_ema: true
77
+ ema_decay: 0.995
78
+ mixed_precision: bf16
79
+ gradient_accumulation_steps: 1
80
+ find_unused_parameters: false
81
+ max_grad_norm: 1.0
82
+ distributed_strategy: fsdp
83
+ fsdp_min_num_params: 100000000
84
+ fsdp_reshard_after_forward: true
85
+ fsdp_cpu_offload: false
86
+ log_every: 10
87
+ val_every: 0
88
+ checkpoint_every: 1000
89
+ checkpoint_start_step: 4000
90
+ checkpoint_dir: ${output_dir}/checkpoints
91
+ local_log_path: ${output_dir}/train_metrics.jsonl
92
+ val_ratio: 0.0
93
+ split_seed: ${seed}
94
+ val_batch_size: null
95
+ max_val_batches: 100
96
+ checkpoint_candidates:
97
+ best:
98
+ metric_key: val_reconst_loss
99
+ mode: min
100
+ k: 0
101
+ recent:
102
+ k: 0
103
+ use_wandb: true
104
+ wandb_project: SO101
105
+ wandb_entity: evan_lxw-harbin-institute-of-technology
106
+ wandb_init_timeout: 120
107
+ wandb_upload_eval_videos: false
108
+ wandb_max_eval_videos: 16
109
+ _trainer_type: policy
110
+ lrs:
111
+ vlm: 0.0001
112
+ vision: 0.0001
113
+ bridge: 0.0001
114
+ reconst_every: 0
115
+ max_reconst_batches: 100
116
+ reconst_action_mode: policy
117
+ sim_eval_every: null
118
+ sim_eval_start_after_step: 0
119
+ sim_eval:
120
+ num_eval_per_task: 20
121
+ num_parallel_env: 1
122
+ record_episodes_per_task: 0
123
+ step_timeout_sec: null
124
+ rollout_failure_retries: 1
125
+ policy_kwargs: {}
126
+ wandb_required: true
127
+ name: train_policy
128
+ seed: 1000
129
+ device: cuda
130
+ run_name: SO101_OAT_VLA_Molmo2ER_6k_bs128
131
+ output_dir: /scratch/users/nus/duanj1/Evan/bimanual_tokenizer/SO101/model/OAT/VLA
132
+ run_mode: overwrite
133
+ resume_checkpoint: null
134
+ env:
135
+ type: null
136
+ task: null
137
+ task_ids: null
138
+ python_bin: null