NUSMAGIC Evanxw0715 commited on
Commit
2c5f81b
·
0 Parent(s):

Duplicate from Evanxw0715/BiCAT-tokenizer

Browse files

Co-authored-by: Xuanwei Liu (Evan) <Evanxw0715@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ AT/wandb/run-20261124_183810-quv9go31/run-quv9go31.wandb filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - robotics
4
+ - action-tokenizer
5
+ - bimanual
6
+ - yam
7
+ ---
8
+
9
+ # BiCAT-tokenizer
10
+
11
+ Bimanual Temporal Tokenizer (BTT) trained on action-only data from YAM bimanual
12
+ robots. It turns a 32-step chunk of 14-D joint actions into discrete tokens and
13
+ decodes them back.
14
+
15
+ Training output layout follows the praxis codec trainer:
16
+
17
+ ```
18
+ ├── checkpoints/step_500000/pretrained_model/ # weights to load (EMA)
19
+ ├── checkpoints/step_500000/training_state/ # optimizer / EMA / RNG, for resuming
20
+ ├── train_config.yaml # full resolved training config
21
+ └── train_metrics.jsonl # training loss every 200 steps
22
+ ```
23
+
24
+ ## Model
25
+
26
+ | | |
27
+ |---|---|
28
+ | Action | 14-D absolute joint positions: per arm 6 joints + 1 gripper (0–1), left arm first |
29
+ | Chunk | `action_horizon` 32 at 30 fps |
30
+ | Tokens | 8 latent steps per arm, FSQ levels `[8, 8, 6, 5]` (1920 codes per token) |
31
+ | Architecture | shared per-arm causal conv encoder (strides 2, 2), 6-layer joint query decoder, `model_dim` 256 |
32
+ | Arm convention | right arm multiplied by `right_arm_sign = [-1, 1, 1, 1, -1, -1, 1]` before sharing the left-arm frame |
33
+ | Normalization | `shared_action_min = [-2.5587, -0.3006, -0.2976, -1.8269, -1.8539, -2.8455, 0.0]`, `shared_action_max = [1.5094, 3.1508, 3.1848, 2.1506, 1.8423, 2.9560, 1.0]` (extrema of the cleaned training data, both arms pooled) |
34
+
35
+ The normalization range differs from earlier BiCAT tokenizers, so token ids are
36
+ not interchangeable with them.
37
+
38
+ ## Training data
39
+
40
+ | Source | Robot | Episodes kept | Frames kept |
41
+ |---|---|---|---|
42
+ | MolmoAct2-BimanualYAM-Dataset | `bi_yam_follower` | 32,225 / 32,246 | 76,010,338 |
43
+ | lerobot/abc_130k_v3_train | `yam_bimanual` | 128,589 / 129,225 | 380,396,445 |
44
+
45
+ Only the `action` column is used (no images). Episodes were dropped if they
46
+ were shorter than 32 frames, contained non-finite values, had a single-frame
47
+ arm-joint jump above 1.0 rad, or had an extreme value outside the 0.01–99.99
48
+ percentile envelope of all episodes.
49
+
50
+ Sources are mixed in their natural frame ratio (about 1 : 5), so every kept
51
+ frame is equally likely to be sampled.
52
+
53
+ ## Training
54
+
55
+ | | |
56
+ |---|---|
57
+ | Steps | 500,000 |
58
+ | Batch | 2048 per GPU × 4 B200 = 8192 |
59
+ | Samples | 4.10 B chunk starts ≈ 9.0 epochs over 456.4 M frames |
60
+ | Optimizer | lr 5e-5 constant, 200 warmup steps, betas (0.9, 0.95), grad clip 1.0 |
61
+ | EMA | decay 0.995 (saved `pretrained_model` holds EMA weights) |
62
+ | Precision | bf16 |
63
+ | Final training loss | 0.00123 |
64
+
65
+ ## Reconstruction error
66
+
67
+ 200,000 random 32-frame chunks per source from the kept episodes, EMA weights,
68
+ fp32, raw action space. These episodes were also used for training, so this is
69
+ training-set reconstruction, not held-out generalization.
70
+
71
+ | Metric | MolmoAct2 | abc_130k_v3 |
72
+ |---|---|---|
73
+ | MSE (all 14 dims) | 0.00314 | 0.00324 |
74
+ | Joint RMSE | 0.060 rad | 0.061 rad |
75
+ | Joint MAE | 0.043 rad | 0.045 rad |
76
+ | Joint error, 99th percentile | 0.193 rad | 0.188 rad |
77
+ | Gripper RMSE | 0.022 | 0.023 |
78
+
79
+ Per-joint RMSE is 1.3–1.6 % of the normalization range (gripper about 2.2 %).
80
+ The wrist rotation (joint 5) has the largest error. A small tail of chunks
81
+ reconstructs poorly (max joint error 1.8–1.9 rad).
82
+
83
+ ## Usage
84
+
85
+ With the praxis codebase:
86
+
87
+ ```python
88
+ from praxis.codecs.factory import make_codec
89
+
90
+ codec = make_codec({
91
+ "name": "btt",
92
+ "kind": "tokens",
93
+ "pretrained_path": "checkpoints/step_500000/pretrained_model",
94
+ }).eval()
95
+
96
+ tokens = codec.tokenize(actions) # actions: (B, 32, 14) float tensor
97
+ recon = codec.detokenize(tokens) # (B, 32, 14)
98
+ ```
99
+
100
+ Training config: `train_omnibicat_btt_500k` (praxis).
101
+
102
+ ## Citation
103
+
104
+ ```bibtex
105
+ @misc{liu2026bicat,
106
+ title={BiCAT: Bimanual Coordination Action Tokenization},
107
+ author={Xuanwei Liu and Guipu Cao and Zhongyi Luo and Jiafei Duan},
108
+ year={2026},
109
+ eprint={2611.23499},
110
+ archivePrefix={arXiv},
111
+ primaryClass={cs.RO},
112
+ url={https://arxiv.org/abs/2611.23499}
113
+ }
114
+ ```
TRAINING_COMPLETE ADDED
File without changes
checkpoints/step_500000/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]
checkpoints/step_500000/pretrained_model/config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "action_dim": 14,
3
+ "action_horizon": 32,
4
+ "arm_dim": 7,
5
+ "clamp_normalized_actions": false,
6
+ "conv_kernel_sizes": [
7
+ 5,
8
+ 3
9
+ ],
10
+ "conv_strides": [
11
+ 2,
12
+ 2
13
+ ],
14
+ "decoder_mode": "paired",
15
+ "decoder_nhead": 8,
16
+ "decoder_nlayer": 6,
17
+ "dropout": 0.1,
18
+ "fsq_levels": [
19
+ 8,
20
+ 8,
21
+ 6,
22
+ 5
23
+ ],
24
+ "latent_dim": 4,
25
+ "latent_horizon_per_arm": 8,
26
+ "model_dim": 256,
27
+ "name": "btt",
28
+ "num_heads": 8,
29
+ "right_arm_sign": [
30
+ -1.0,
31
+ 1.0,
32
+ 1.0,
33
+ 1.0,
34
+ -1.0,
35
+ -1.0,
36
+ 1.0
37
+ ],
38
+ "shared_action_max": [
39
+ 1.5094364,
40
+ 3.1507845,
41
+ 3.1848125,
42
+ 2.1505635,
43
+ 1.8423109,
44
+ 2.9559803,
45
+ 1.0
46
+ ],
47
+ "shared_action_min": [
48
+ -2.5586796,
49
+ -0.3005828,
50
+ -0.2975619,
51
+ -1.8269405,
52
+ -1.8539104,
53
+ -2.8455343,
54
+ 0.0
55
+ ],
56
+ "use_causal_decoder": true,
57
+ "use_cross_attention": true
58
+ }
checkpoints/step_500000/pretrained_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9067cefa67b5467a2de8fd9421c3d533cfc7853d583abedaf64e08bc301e2ae1
3
+ size 29612324
checkpoints/step_500000/pretrained_model/norm_stats.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bea1b5f4a435e79d133841fda7f9a6be8a04a76d4638764dcbe151eeb56a476c
3
+ size 2427
checkpoints/step_500000/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
+ 14
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
+ }
checkpoints/step_500000/pretrained_model/train_config.yaml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ codec:
2
+ name: btt
3
+ kind: tokens
4
+ pretrained_path: null
5
+ action_dim: 14
6
+ arm_dim: 7
7
+ action_horizon: 32
8
+ latent_horizon_per_arm: 8
9
+ max_fit_chunks: 50000
10
+ model_dim: 256
11
+ num_heads: 8
12
+ decoder_nhead: 8
13
+ decoder_nlayer: 6
14
+ dropout: 0.1
15
+ use_causal_decoder: true
16
+ conv_kernel_sizes:
17
+ - 5
18
+ - 3
19
+ conv_strides:
20
+ - 2
21
+ - 2
22
+ latent_dim: 4
23
+ fsq_levels:
24
+ - 8
25
+ - 8
26
+ - 6
27
+ - 5
28
+ right_arm_sign:
29
+ - -1
30
+ - 1
31
+ - 1
32
+ - 1
33
+ - -1
34
+ - -1
35
+ - 1
36
+ shared_action_min:
37
+ - -2.5586796
38
+ - -0.3005828
39
+ - -0.2975619
40
+ - -1.8269405
41
+ - -1.8539104
42
+ - -2.8455343
43
+ - 0.0
44
+ shared_action_max:
45
+ - 1.5094364
46
+ - 3.1507845
47
+ - 3.1848125
48
+ - 2.1505635
49
+ - 1.8423109
50
+ - 2.9559803
51
+ - 1.0
52
+ clamp_normalized_actions: false
53
+ dataset:
54
+ name: omnibicat
55
+ repo_id: local/omnibicat
56
+ root: null
57
+ hf_datasets_cache: ${oc.env:HF_DATASETS_CACHE,null}
58
+ episodes: null
59
+ action_key: action
60
+ exclude_episodes_file: null
61
+ action_stats_file: null
62
+ observation_keys: []
63
+ video_backend: pyav
64
+ bypass_force_cache_sync: true
65
+ source_weighting: frames
66
+ sources:
67
+ - name: molmoact2_yam
68
+ repo_id: local/molmoact2_bimanual_yam
69
+ root: ${oc.env:MOLMOACT2_YAM_ROOT,/scratch/Projects/CFP-05/CFP05-CF-002/MolmoAct2-BimanualYAM-Dataset}
70
+ exclude_episodes_file: ${oc.env:OMNIBICAT_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT}/data_cleaning/exclude_molmoact2_yam.json
71
+ weight: 1.0
72
+ - name: abc_130k_v3
73
+ repo_id: local/abc_130k_v3
74
+ root: ${oc.env:ABC_130K_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT/sources/abc_130k_v3}
75
+ exclude_episodes_file: ${oc.env:OMNIBICAT_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT}/data_cleaning/exclude_abc_130k_v3.json
76
+ weight: 1.0
77
+ trainer:
78
+ max_steps: 500000
79
+ batch_size: 2048
80
+ global_batch_size: 8192
81
+ num_workers: 8
82
+ prefetch_factor: 4
83
+ use_episode_aware_sampler: true
84
+ drop_n_first_frames: 0
85
+ drop_n_last_frames: 0
86
+ weight_decay: 0.0
87
+ betas:
88
+ - 0.9
89
+ - 0.95
90
+ eps: 1.0e-06
91
+ lr_scheduler: constant
92
+ warmup_steps: 200
93
+ warmup_steps_by_family: null
94
+ min_lr_ratio: 0.1
95
+ lr_decay_steps: null
96
+ use_ema: true
97
+ ema_decay: 0.995
98
+ mixed_precision: bf16
99
+ gradient_accumulation_steps: 1
100
+ find_unused_parameters: false
101
+ max_grad_norm: 1.0
102
+ distributed_strategy: ddp
103
+ fsdp_min_num_params: 100000000
104
+ fsdp_reshard_after_forward: true
105
+ fsdp_cpu_offload: false
106
+ log_every: 200
107
+ val_every: 0
108
+ checkpoint_every: 10000
109
+ checkpoint_start_step: 0
110
+ checkpoint_dir: ${output_dir}/checkpoints
111
+ local_log_path: ${output_dir}/train_metrics.jsonl
112
+ val_ratio: 0.0
113
+ split_seed: ${seed}
114
+ val_batch_size: null
115
+ max_val_batches: 100
116
+ checkpoint_candidates:
117
+ best:
118
+ metric_key: val_reconst_loss
119
+ mode: min
120
+ k: 0
121
+ recent:
122
+ k: 0
123
+ use_wandb: true
124
+ wandb_project: OmniBiCAT
125
+ wandb_entity: evan_lxw-harbin-institute-of-technology
126
+ wandb_init_timeout: 120
127
+ wandb_upload_eval_videos: false
128
+ wandb_max_eval_videos: 16
129
+ _trainer_type: codecs
130
+ lr: 5.0e-05
131
+ reconst_every: 0
132
+ max_reconst_batches: 100
133
+ reconstruct_on_train: false
134
+ skip_codec_fit: false
135
+ wandb_required: false
136
+ name: train_codecs
137
+ seed: 42
138
+ device: cuda
139
+ run_name: omnibicat_btt_4gpu_gbs8192_500k
140
+ output_dir: /scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT/runs/${run_name}
141
+ run_mode: overwrite
142
+ resume_checkpoint: null
checkpoints/step_500000/training_state/ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7243c1c76f5b9e890e9896a81b84bad0178d49e2fce9ef387e7dd1255c0724b
3
+ size 29567543
checkpoints/step_500000/training_state/optimizer_param_groups.json ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "lr": 5e-05,
4
+ "betas": [
5
+ 0.9,
6
+ 0.95
7
+ ],
8
+ "eps": 1e-06,
9
+ "weight_decay": 0.0,
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
+ 89,
109
+ 90,
110
+ 91,
111
+ 92,
112
+ 93,
113
+ 94,
114
+ 95,
115
+ 96,
116
+ 97,
117
+ 98,
118
+ 99,
119
+ 100,
120
+ 101,
121
+ 102,
122
+ 103,
123
+ 104,
124
+ 105,
125
+ 106,
126
+ 107,
127
+ 108,
128
+ 109,
129
+ 110,
130
+ 111,
131
+ 112,
132
+ 113,
133
+ 114,
134
+ 115,
135
+ 116,
136
+ 117,
137
+ 118,
138
+ 119,
139
+ 120,
140
+ 121,
141
+ 122,
142
+ 123,
143
+ 124,
144
+ 125,
145
+ 126,
146
+ 127,
147
+ 128,
148
+ 129,
149
+ 130,
150
+ 131,
151
+ 132,
152
+ 133,
153
+ 134,
154
+ 135
155
+ ]
156
+ }
157
+ ]
checkpoints/step_500000/training_state/optimizer_state.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f652f6656e9a3339605f3e7442ef0e99e39d3121b6edcac65a42fc01c4517b6e
3
+ size 59097104
checkpoints/step_500000/training_state/rng_state.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56ecbb605b347cc5c2de600f53968d64ebbb4a2fc24992c934d85dca3f313633
3
+ size 15708
checkpoints/step_500000/training_state/scheduler_state.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_lrs": [
3
+ 5e-05
4
+ ],
5
+ "last_epoch": 500000,
6
+ "_step_count": 500001,
7
+ "_get_lr_called_within_step": false,
8
+ "_last_lr": [
9
+ 5e-05
10
+ ],
11
+ "lr_lambdas": [
12
+ null
13
+ ]
14
+ }
checkpoints/step_500000/training_state/training_step.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "step": 500000
3
+ }
checkpoints/training_state/latest_checkpoint_boundary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"complete": true, "step": 500000}
train_config.yaml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ codec:
2
+ name: btt
3
+ kind: tokens
4
+ pretrained_path: null
5
+ action_dim: 14
6
+ arm_dim: 7
7
+ action_horizon: 32
8
+ latent_horizon_per_arm: 8
9
+ max_fit_chunks: 50000
10
+ model_dim: 256
11
+ num_heads: 8
12
+ decoder_nhead: 8
13
+ decoder_nlayer: 6
14
+ dropout: 0.1
15
+ use_causal_decoder: true
16
+ conv_kernel_sizes:
17
+ - 5
18
+ - 3
19
+ conv_strides:
20
+ - 2
21
+ - 2
22
+ latent_dim: 4
23
+ fsq_levels:
24
+ - 8
25
+ - 8
26
+ - 6
27
+ - 5
28
+ right_arm_sign:
29
+ - -1
30
+ - 1
31
+ - 1
32
+ - 1
33
+ - -1
34
+ - -1
35
+ - 1
36
+ shared_action_min:
37
+ - -2.5586796
38
+ - -0.3005828
39
+ - -0.2975619
40
+ - -1.8269405
41
+ - -1.8539104
42
+ - -2.8455343
43
+ - 0.0
44
+ shared_action_max:
45
+ - 1.5094364
46
+ - 3.1507845
47
+ - 3.1848125
48
+ - 2.1505635
49
+ - 1.8423109
50
+ - 2.9559803
51
+ - 1.0
52
+ clamp_normalized_actions: false
53
+ dataset:
54
+ name: omnibicat
55
+ repo_id: local/omnibicat
56
+ root: null
57
+ hf_datasets_cache: ${oc.env:HF_DATASETS_CACHE,null}
58
+ episodes: null
59
+ action_key: action
60
+ exclude_episodes_file: null
61
+ action_stats_file: null
62
+ observation_keys: []
63
+ video_backend: pyav
64
+ bypass_force_cache_sync: true
65
+ source_weighting: frames
66
+ sources:
67
+ - name: molmoact2_yam
68
+ repo_id: local/molmoact2_bimanual_yam
69
+ root: ${oc.env:MOLMOACT2_YAM_ROOT,/scratch/Projects/CFP-05/CFP05-CF-002/MolmoAct2-BimanualYAM-Dataset}
70
+ exclude_episodes_file: ${oc.env:OMNIBICAT_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT}/data_cleaning/exclude_molmoact2_yam.json
71
+ weight: 1.0
72
+ - name: abc_130k_v3
73
+ repo_id: local/abc_130k_v3
74
+ root: ${oc.env:ABC_130K_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT/sources/abc_130k_v3}
75
+ exclude_episodes_file: ${oc.env:OMNIBICAT_ROOT,/scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT}/data_cleaning/exclude_abc_130k_v3.json
76
+ weight: 1.0
77
+ trainer:
78
+ max_steps: 500000
79
+ batch_size: 2048
80
+ global_batch_size: 8192
81
+ num_workers: 8
82
+ prefetch_factor: 4
83
+ use_episode_aware_sampler: true
84
+ drop_n_first_frames: 0
85
+ drop_n_last_frames: 0
86
+ weight_decay: 0.0
87
+ betas:
88
+ - 0.9
89
+ - 0.95
90
+ eps: 1.0e-06
91
+ lr_scheduler: constant
92
+ warmup_steps: 200
93
+ warmup_steps_by_family: null
94
+ min_lr_ratio: 0.1
95
+ lr_decay_steps: null
96
+ use_ema: true
97
+ ema_decay: 0.995
98
+ mixed_precision: bf16
99
+ gradient_accumulation_steps: 1
100
+ find_unused_parameters: false
101
+ max_grad_norm: 1.0
102
+ distributed_strategy: ddp
103
+ fsdp_min_num_params: 100000000
104
+ fsdp_reshard_after_forward: true
105
+ fsdp_cpu_offload: false
106
+ log_every: 200
107
+ val_every: 0
108
+ checkpoint_every: 10000
109
+ checkpoint_start_step: 0
110
+ checkpoint_dir: ${output_dir}/checkpoints
111
+ local_log_path: ${output_dir}/train_metrics.jsonl
112
+ val_ratio: 0.0
113
+ split_seed: ${seed}
114
+ val_batch_size: null
115
+ max_val_batches: 100
116
+ checkpoint_candidates:
117
+ best:
118
+ metric_key: val_reconst_loss
119
+ mode: min
120
+ k: 0
121
+ recent:
122
+ k: 0
123
+ use_wandb: true
124
+ wandb_project: OmniBiCAT
125
+ wandb_entity: evan_lxw-harbin-institute-of-technology
126
+ wandb_init_timeout: 120
127
+ wandb_upload_eval_videos: false
128
+ wandb_max_eval_videos: 16
129
+ _trainer_type: codecs
130
+ lr: 5.0e-05
131
+ reconst_every: 0
132
+ max_reconst_batches: 100
133
+ reconstruct_on_train: false
134
+ skip_codec_fit: false
135
+ wandb_required: false
136
+ name: train_codecs
137
+ seed: 42
138
+ device: cuda
139
+ run_name: omnibicat_btt_4gpu_gbs8192_500k
140
+ output_dir: /scratch/xuanweiliu/bimanual_tokenizer/OmniBiCAT/runs/${run_name}
141
+ run_mode: overwrite
142
+ resume_checkpoint: null
train_metrics.jsonl ADDED
The diff for this file is too large to render. See raw diff