Nadeem-Shoukath115113 commited on
Commit
d3fac82
·
verified ·
1 Parent(s): e6e840e

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +62 -0
  2. adapter_config.json +44 -0
  3. adapter_model.safetensors +3 -0
  4. config.json +86 -0
  5. train_config.json +231 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: LightwheelAI/leisaac-pick-orange
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0_fast
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - pi0_fast
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for pi0_fast
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
adapter_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "PI0FastPolicy",
7
+ "parent_library": "lerobot.policies.pi0_fast.modeling_pi0_fast"
8
+ },
9
+ "base_model_name_or_path": "lerobot/pi0fast-base",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 8,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.0,
25
+ "megatron_config": null,
26
+ "megatron_core": "megatron.core",
27
+ "modules_to_save": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.18.1",
30
+ "qalora_group_size": 16,
31
+ "r": 64,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "v_proj",
36
+ "q_proj"
37
+ ],
38
+ "target_parameters": null,
39
+ "task_type": null,
40
+ "trainable_token_indices": null,
41
+ "use_dora": false,
42
+ "use_qalora": false,
43
+ "use_rslora": false
44
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2b3917b0d5fff3791c8e7d1b474f7cb622b2309f2e619d1b5495437fea3103e
3
+ size 61377480
config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi0_fast",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 6
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": true,
39
+ "push_to_hub": true,
40
+ "repo_id": "Orange_Picker",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "lerobot/pi0fast-base",
45
+ "paligemma_variant": "gemma_2b",
46
+ "action_expert_variant": "gemma_300m",
47
+ "dtype": "bfloat16",
48
+ "chunk_size": 10,
49
+ "n_action_steps": 10,
50
+ "max_state_dim": 32,
51
+ "max_action_dim": 32,
52
+ "max_action_tokens": 256,
53
+ "rtc_config": null,
54
+ "image_resolution": [
55
+ 224,
56
+ 224
57
+ ],
58
+ "empty_cameras": 0,
59
+ "tokenizer_max_length": 200,
60
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
61
+ "action_tokenizer_name": "physical-intelligence/fast",
62
+ "temperature": 0.0,
63
+ "max_decoding_steps": 256,
64
+ "fast_skip_tokens": 128,
65
+ "validate_action_token_prefix": true,
66
+ "use_kv_cache": true,
67
+ "normalization_mapping": {
68
+ "VISUAL": "IDENTITY",
69
+ "STATE": "MEAN_STD",
70
+ "ACTION": "MEAN_STD"
71
+ },
72
+ "gradient_checkpointing": true,
73
+ "compile_model": false,
74
+ "compile_mode": "max-autotune",
75
+ "optimizer_lr": 2.5e-05,
76
+ "optimizer_betas": [
77
+ 0.9,
78
+ 0.95
79
+ ],
80
+ "optimizer_eps": 1e-08,
81
+ "optimizer_weight_decay": 0.01,
82
+ "optimizer_grad_clip_norm": 1.0,
83
+ "scheduler_warmup_steps": 1000,
84
+ "scheduler_decay_steps": 30000,
85
+ "scheduler_decay_lr": 1e-05
86
+ }
train_config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "LightwheelAI/leisaac-pick-orange",
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_fast",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.state": {
88
+ "type": "STATE",
89
+ "shape": [
90
+ 6
91
+ ]
92
+ },
93
+ "observation.images.front": {
94
+ "type": "VISUAL",
95
+ "shape": [
96
+ 3,
97
+ 480,
98
+ 640
99
+ ]
100
+ },
101
+ "observation.images.wrist": {
102
+ "type": "VISUAL",
103
+ "shape": [
104
+ 3,
105
+ 480,
106
+ 640
107
+ ]
108
+ }
109
+ },
110
+ "output_features": {
111
+ "action": {
112
+ "type": "ACTION",
113
+ "shape": [
114
+ 6
115
+ ]
116
+ }
117
+ },
118
+ "device": "cuda",
119
+ "use_amp": false,
120
+ "use_peft": true,
121
+ "push_to_hub": true,
122
+ "repo_id": "Orange_Picker",
123
+ "private": null,
124
+ "tags": null,
125
+ "license": null,
126
+ "pretrained_path": "lerobot/pi0fast-base",
127
+ "paligemma_variant": "gemma_2b",
128
+ "action_expert_variant": "gemma_300m",
129
+ "dtype": "bfloat16",
130
+ "chunk_size": 10,
131
+ "n_action_steps": 10,
132
+ "max_state_dim": 32,
133
+ "max_action_dim": 32,
134
+ "max_action_tokens": 256,
135
+ "rtc_config": null,
136
+ "image_resolution": [
137
+ 224,
138
+ 224
139
+ ],
140
+ "empty_cameras": 0,
141
+ "tokenizer_max_length": 200,
142
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
143
+ "action_tokenizer_name": "physical-intelligence/fast",
144
+ "temperature": 0.0,
145
+ "max_decoding_steps": 256,
146
+ "fast_skip_tokens": 128,
147
+ "validate_action_token_prefix": true,
148
+ "use_kv_cache": true,
149
+ "normalization_mapping": {
150
+ "VISUAL": "IDENTITY",
151
+ "STATE": "MEAN_STD",
152
+ "ACTION": "MEAN_STD"
153
+ },
154
+ "gradient_checkpointing": true,
155
+ "compile_model": false,
156
+ "compile_mode": "max-autotune",
157
+ "optimizer_lr": 2.5e-05,
158
+ "optimizer_betas": [
159
+ 0.9,
160
+ 0.95
161
+ ],
162
+ "optimizer_eps": 1e-08,
163
+ "optimizer_weight_decay": 0.01,
164
+ "optimizer_grad_clip_norm": 1.0,
165
+ "scheduler_warmup_steps": 1000,
166
+ "scheduler_decay_steps": 30000,
167
+ "scheduler_decay_lr": 1e-05
168
+ },
169
+ "output_dir": "outputs/pi0fast_training",
170
+ "job_name": "pi0fast_training",
171
+ "resume": false,
172
+ "seed": 1000,
173
+ "num_workers": 4,
174
+ "batch_size": 8,
175
+ "steps": 50000,
176
+ "eval_freq": 20000,
177
+ "log_freq": 200,
178
+ "tolerance_s": 0.0001,
179
+ "save_checkpoint": true,
180
+ "save_freq": 25000,
181
+ "use_policy_training_preset": true,
182
+ "optimizer": {
183
+ "type": "adamw",
184
+ "lr": 2.5e-05,
185
+ "weight_decay": 0.01,
186
+ "grad_clip_norm": 1.0,
187
+ "betas": [
188
+ 0.9,
189
+ 0.95
190
+ ],
191
+ "eps": 1e-08
192
+ },
193
+ "scheduler": {
194
+ "type": "cosine_decay_with_warmup",
195
+ "num_warmup_steps": 1000,
196
+ "num_decay_steps": 30000,
197
+ "peak_lr": 2.5e-05,
198
+ "decay_lr": 1e-05
199
+ },
200
+ "eval": {
201
+ "n_episodes": 50,
202
+ "batch_size": 50,
203
+ "use_async_envs": false
204
+ },
205
+ "wandb": {
206
+ "enable": true,
207
+ "disable_artifact": false,
208
+ "project": "pi0fast-orange",
209
+ "entity": null,
210
+ "notes": null,
211
+ "run_id": "2mpq9ev8",
212
+ "mode": null
213
+ },
214
+ "peft": {
215
+ "target_modules": [
216
+ "q_proj",
217
+ "v_proj"
218
+ ],
219
+ "full_training_modules": null,
220
+ "method_type": "LORA",
221
+ "init_type": null,
222
+ "r": 64
223
+ },
224
+ "use_rabc": false,
225
+ "rabc_progress_path": null,
226
+ "rabc_kappa": 0.01,
227
+ "rabc_epsilon": 1e-06,
228
+ "rabc_head_mode": "sparse",
229
+ "rename_map": {},
230
+ "checkpoint_path": null
231
+ }