nikriz commited on
Commit
5e75ab4
·
verified ·
1 Parent(s): 97adc13

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +95 -0
  3. model.safetensors +3 -0
  4. train_config.json +224 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: Jackie1/bridge_data_v2_convert_to_lerobot
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi_align
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - pi_align
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi_align
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
19
+
20
+
21
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
22
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
23
+
24
+ ---
25
+
26
+ ## How to Get Started with the Model
27
+
28
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
29
+ Below is the short version on how to train and run inference/eval:
30
+
31
+ ### Train from scratch
32
+
33
+ ```bash
34
+ lerobot-train \
35
+ --dataset.repo_id=${HF_USER}/<dataset> \
36
+ --policy.type=act \
37
+ --output_dir=outputs/train/<desired_policy_repo_id> \
38
+ --job_name=lerobot_training \
39
+ --policy.device=cuda \
40
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
41
+ --wandb.enable=true
42
+ ```
43
+
44
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
45
+
46
+ ### Evaluate the policy/run inference
47
+
48
+ ```bash
49
+ lerobot-record \
50
+ --robot.type=so100_follower \
51
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
52
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
53
+ --episodes=10
54
+ ```
55
+
56
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
57
+
58
+ ---
59
+
60
+ ## Model Details
61
+
62
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi_align",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 256,
10
+ 256
11
+ ]
12
+ },
13
+ "observation.state": {
14
+ "type": "STATE",
15
+ "shape": [
16
+ 7
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 7
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "push_to_hub": true,
31
+ "repo_id": "nikriz/lerobot_pi05_chunk_align_bridge_oxe",
32
+ "private": null,
33
+ "tags": null,
34
+ "license": null,
35
+ "pretrained_path": "lerobot/pi05_base",
36
+ "base_policy": "pi05",
37
+ "lam_checkpoint_path": "/home/work/robotics/junhachun/dev/vggt_lam/bridge_oxe/checkpoints/last/lam_stage1.ckpt",
38
+ "alignment_loss_weight": 1.0,
39
+ "action_token_layer": 10,
40
+ "lam_frame_interval": 5,
41
+ "paligemma_variant": "gemma_2b",
42
+ "action_expert_variant": "gemma_300m",
43
+ "dtype": "bfloat16",
44
+ "kv_attn": false,
45
+ "kv_projector_type": "linear",
46
+ "sinkhorn": 1,
47
+ "spnorm_gamma": null,
48
+ "eval_nope_front": false,
49
+ "eval_nope_wrist": false,
50
+ "eval_ignore_front": false,
51
+ "eval_ignore_wrist": false,
52
+ "eval_ignore_text": false,
53
+ "eval_vlm_independent": false,
54
+ "eval_vlm_causal": false,
55
+ "chunk_size": 50,
56
+ "n_action_steps": 50,
57
+ "max_state_dim": 32,
58
+ "max_action_dim": 32,
59
+ "num_inference_steps": 10,
60
+ "time_sampling_beta_alpha": 1.5,
61
+ "time_sampling_beta_beta": 1.0,
62
+ "time_sampling_scale": 0.999,
63
+ "time_sampling_offset": 0.001,
64
+ "min_period": 0.004,
65
+ "max_period": 4.0,
66
+ "rtc_config": null,
67
+ "image_resolution": [
68
+ 224,
69
+ 224
70
+ ],
71
+ "empty_cameras": 0,
72
+ "tokenizer_max_length": 48,
73
+ "normalization_mapping": {
74
+ "VISUAL": "IDENTITY",
75
+ "STATE": "QUANTILES",
76
+ "ACTION": "QUANTILES"
77
+ },
78
+ "gradient_checkpointing": true,
79
+ "compile_model": false,
80
+ "compile_mode": "max-autotune",
81
+ "freeze_vision_tower": false,
82
+ "freeze_language_model": false,
83
+ "freeze_expert": false,
84
+ "optimizer_lr": 2.5e-05,
85
+ "optimizer_betas": [
86
+ 0.9,
87
+ 0.95
88
+ ],
89
+ "optimizer_eps": 1e-08,
90
+ "optimizer_weight_decay": 0.01,
91
+ "optimizer_grad_clip_norm": 1.0,
92
+ "scheduler_warmup_steps": 1000,
93
+ "scheduler_decay_steps": 30000,
94
+ "scheduler_decay_lr": 2.5e-06
95
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc77d9b563a3e7c9f9664700f0acd5b9cafced83599395a6a4645b3060c7c08d
3
+ size 13317537248
train_config.json ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "Jackie1/bridge_data_v2_convert_to_lerobot",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ },
61
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "pi_align",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.image": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 256,
92
+ 256
93
+ ]
94
+ },
95
+ "observation.state": {
96
+ "type": "STATE",
97
+ "shape": [
98
+ 7
99
+ ]
100
+ }
101
+ },
102
+ "output_features": {
103
+ "action": {
104
+ "type": "ACTION",
105
+ "shape": [
106
+ 7
107
+ ]
108
+ }
109
+ },
110
+ "device": "cuda",
111
+ "use_amp": false,
112
+ "push_to_hub": true,
113
+ "repo_id": "nikriz/lerobot_pi05_chunk_align_bridge_oxe",
114
+ "private": null,
115
+ "tags": null,
116
+ "license": null,
117
+ "pretrained_path": "lerobot/pi05_base",
118
+ "base_policy": "pi05",
119
+ "lam_checkpoint_path": "/home/work/robotics/junhachun/dev/vggt_lam/bridge_oxe/checkpoints/last/lam_stage1.ckpt",
120
+ "alignment_loss_weight": 1.0,
121
+ "action_token_layer": 10,
122
+ "lam_frame_interval": 5,
123
+ "paligemma_variant": "gemma_2b",
124
+ "action_expert_variant": "gemma_300m",
125
+ "dtype": "bfloat16",
126
+ "kv_attn": false,
127
+ "kv_projector_type": "linear",
128
+ "sinkhorn": 1,
129
+ "spnorm_gamma": null,
130
+ "eval_nope_front": false,
131
+ "eval_nope_wrist": false,
132
+ "eval_ignore_front": false,
133
+ "eval_ignore_wrist": false,
134
+ "eval_ignore_text": false,
135
+ "eval_vlm_independent": false,
136
+ "eval_vlm_causal": false,
137
+ "chunk_size": 50,
138
+ "n_action_steps": 50,
139
+ "max_state_dim": 32,
140
+ "max_action_dim": 32,
141
+ "num_inference_steps": 10,
142
+ "time_sampling_beta_alpha": 1.5,
143
+ "time_sampling_beta_beta": 1.0,
144
+ "time_sampling_scale": 0.999,
145
+ "time_sampling_offset": 0.001,
146
+ "min_period": 0.004,
147
+ "max_period": 4.0,
148
+ "rtc_config": null,
149
+ "image_resolution": [
150
+ 224,
151
+ 224
152
+ ],
153
+ "empty_cameras": 0,
154
+ "tokenizer_max_length": 48,
155
+ "normalization_mapping": {
156
+ "VISUAL": "IDENTITY",
157
+ "STATE": "QUANTILES",
158
+ "ACTION": "QUANTILES"
159
+ },
160
+ "gradient_checkpointing": true,
161
+ "compile_model": false,
162
+ "compile_mode": "max-autotune",
163
+ "freeze_vision_tower": false,
164
+ "freeze_language_model": false,
165
+ "freeze_expert": false,
166
+ "optimizer_lr": 2.5e-05,
167
+ "optimizer_betas": [
168
+ 0.9,
169
+ 0.95
170
+ ],
171
+ "optimizer_eps": 1e-08,
172
+ "optimizer_weight_decay": 0.01,
173
+ "optimizer_grad_clip_norm": 1.0,
174
+ "scheduler_warmup_steps": 1000,
175
+ "scheduler_decay_steps": 30000,
176
+ "scheduler_decay_lr": 2.5e-06
177
+ },
178
+ "output_dir": "/home/work/robotics/junhachun/dev/vggt_lam_pi05_chunk_align/bridge_oxe",
179
+ "job_name": "lerobot_pi05_chunk_align_bridge_oxe",
180
+ "resume": false,
181
+ "seed": 1000,
182
+ "num_workers": 4,
183
+ "batch_size": 32,
184
+ "steps": 50000,
185
+ "eval_freq": 5000,
186
+ "log_freq": 200,
187
+ "save_checkpoint": true,
188
+ "save_freq": 10000,
189
+ "use_policy_training_preset": true,
190
+ "optimizer": {
191
+ "type": "adamw",
192
+ "lr": 2.5e-05,
193
+ "weight_decay": 0.01,
194
+ "grad_clip_norm": 1.0,
195
+ "betas": [
196
+ 0.9,
197
+ 0.95
198
+ ],
199
+ "eps": 1e-08
200
+ },
201
+ "scheduler": {
202
+ "type": "cosine_decay_with_warmup",
203
+ "num_warmup_steps": 1000,
204
+ "num_decay_steps": 30000,
205
+ "peak_lr": 2.5e-05,
206
+ "decay_lr": 2.5e-06
207
+ },
208
+ "eval": {
209
+ "n_episodes": 50,
210
+ "batch_size": 50,
211
+ "use_async_envs": false
212
+ },
213
+ "wandb": {
214
+ "enable": true,
215
+ "disable_artifact": false,
216
+ "project": "lerobot",
217
+ "entity": null,
218
+ "notes": null,
219
+ "run_id": "r0d8dsu3",
220
+ "mode": null
221
+ },
222
+ "checkpoint_path": null,
223
+ "rename_map": {}
224
+ }