matCercola18 commited on
Commit
7a915b6
·
verified ·
1 Parent(s): 1e73594

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +81 -0
  3. model.safetensors +3 -0
  4. train_config.json +219 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: BrunoM42/bridge_orig_lerobot
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0_ecot
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - pi0_ecot
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi0_ecot
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,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi0_ecot",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.top": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
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": true,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "matCercola18/pi0_z_L",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": "pi0_ecot",
37
+ "paligemma_variant": "gemma_2b",
38
+ "action_expert_variant": "gemma_300m",
39
+ "dtype": "bfloat16",
40
+ "chunk_size": 4,
41
+ "n_action_steps": 4,
42
+ "max_state_dim": 32,
43
+ "max_action_dim": 32,
44
+ "num_inference_steps": 10,
45
+ "time_sampling_beta_alpha": 1.5,
46
+ "time_sampling_beta_beta": 1.0,
47
+ "time_sampling_scale": 0.999,
48
+ "time_sampling_offset": 0.001,
49
+ "min_period": 0.004,
50
+ "max_period": 4.0,
51
+ "rtc_config": null,
52
+ "image_resolution": [
53
+ 224,
54
+ 224
55
+ ],
56
+ "empty_cameras": 0,
57
+ "normalization_mapping": {
58
+ "VISUAL": "IDENTITY",
59
+ "STATE": "IDENTITY",
60
+ "ACTION": "IDENTITY"
61
+ },
62
+ "gradient_checkpointing": true,
63
+ "compile_model": false,
64
+ "compile_mode": "max-autotune",
65
+ "freeze_vision_encoder": false,
66
+ "train_expert_only": true,
67
+ "optimizer_lr": 5e-05,
68
+ "optimizer_betas": [
69
+ 0.9,
70
+ 0.999
71
+ ],
72
+ "optimizer_eps": 1e-08,
73
+ "optimizer_weight_decay": 0.0,
74
+ "optimizer_grad_clip_norm": 1.0,
75
+ "scheduler_warmup_steps": 200,
76
+ "scheduler_decay_steps": 30000,
77
+ "scheduler_decay_lr": 2.5e-06,
78
+ "tokenizer_max_length": 72,
79
+ "tokenizer_pretrained": "google/paligemma-3b-pt-224",
80
+ "max_move_tokens": 8
81
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c948c618678da2061e989766dc3a74d1024ea8df855812e4495ff1b3040473e
3
+ size 7011606072
train_config.json ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "BrunoM42/bridge_orig_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": "pi0_ecot",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.top": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 224,
92
+ 224
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": true,
112
+ "use_peft": false,
113
+ "push_to_hub": true,
114
+ "repo_id": "matCercola18/pi0_z_L",
115
+ "private": null,
116
+ "tags": null,
117
+ "license": null,
118
+ "pretrained_path": "pi0_ecot",
119
+ "paligemma_variant": "gemma_2b",
120
+ "action_expert_variant": "gemma_300m",
121
+ "dtype": "bfloat16",
122
+ "chunk_size": 4,
123
+ "n_action_steps": 4,
124
+ "max_state_dim": 32,
125
+ "max_action_dim": 32,
126
+ "num_inference_steps": 10,
127
+ "time_sampling_beta_alpha": 1.5,
128
+ "time_sampling_beta_beta": 1.0,
129
+ "time_sampling_scale": 0.999,
130
+ "time_sampling_offset": 0.001,
131
+ "min_period": 0.004,
132
+ "max_period": 4.0,
133
+ "rtc_config": null,
134
+ "image_resolution": [
135
+ 224,
136
+ 224
137
+ ],
138
+ "empty_cameras": 0,
139
+ "normalization_mapping": {
140
+ "VISUAL": "IDENTITY",
141
+ "STATE": "IDENTITY",
142
+ "ACTION": "IDENTITY"
143
+ },
144
+ "gradient_checkpointing": true,
145
+ "compile_model": false,
146
+ "compile_mode": "max-autotune",
147
+ "freeze_vision_encoder": false,
148
+ "train_expert_only": true,
149
+ "optimizer_lr": 5e-05,
150
+ "optimizer_betas": [
151
+ 0.9,
152
+ 0.999
153
+ ],
154
+ "optimizer_eps": 1e-08,
155
+ "optimizer_weight_decay": 0.0,
156
+ "optimizer_grad_clip_norm": 1.0,
157
+ "scheduler_warmup_steps": 200,
158
+ "scheduler_decay_steps": 30000,
159
+ "scheduler_decay_lr": 2.5e-06,
160
+ "tokenizer_max_length": 72,
161
+ "tokenizer_pretrained": "google/paligemma-3b-pt-224",
162
+ "max_move_tokens": 8
163
+ },
164
+ "output_dir": "/home/cercola/Continuous-Reasoning/outputs/pi0_z_L",
165
+ "job_name": "pi0_z",
166
+ "resume": false,
167
+ "seed": 1000,
168
+ "num_workers": 4,
169
+ "batch_size": 64,
170
+ "steps": 15000,
171
+ "eval_freq": 20000,
172
+ "log_freq": 200,
173
+ "tolerance_s": 0.0001,
174
+ "save_checkpoint": true,
175
+ "save_freq": 20000,
176
+ "use_policy_training_preset": true,
177
+ "optimizer": {
178
+ "type": "adamw",
179
+ "lr": 5e-05,
180
+ "weight_decay": 0.0,
181
+ "grad_clip_norm": 1.0,
182
+ "betas": [
183
+ 0.9,
184
+ 0.999
185
+ ],
186
+ "eps": 1e-08
187
+ },
188
+ "scheduler": {
189
+ "type": "cosine_decay_with_warmup",
190
+ "num_warmup_steps": 200,
191
+ "num_decay_steps": 30000,
192
+ "peak_lr": 5e-05,
193
+ "decay_lr": 2.5e-06
194
+ },
195
+ "eval": {
196
+ "n_episodes": 50,
197
+ "batch_size": 50,
198
+ "use_async_envs": false
199
+ },
200
+ "wandb": {
201
+ "enable": true,
202
+ "disable_artifact": false,
203
+ "project": "pi",
204
+ "entity": null,
205
+ "notes": null,
206
+ "run_id": "l0u1i7k8",
207
+ "mode": null
208
+ },
209
+ "peft": null,
210
+ "use_rabc": false,
211
+ "rabc_progress_path": null,
212
+ "rabc_kappa": 0.01,
213
+ "rabc_epsilon": 1e-06,
214
+ "rabc_head_mode": "sparse",
215
+ "rename_map": {
216
+ "observation.images.image_0": "observation.images.top"
217
+ },
218
+ "checkpoint_path": null
219
+ }