manbomanbo commited on
Commit
e8c42ec
·
verified ·
1 Parent(s): fb55791

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +62 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. pistar06_save_info.json +11 -0
  5. value_train_config.json +226 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: rwrl
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pistar06
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - pistar06
11
+ ---
12
+
13
+ # Model Card for pistar06
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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pistar06",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 12
9
+ ]
10
+ },
11
+ "observation.images.left_wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.right_wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.right_front": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 720,
32
+ 1280
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 12
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": true,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "manbomanbo/pickvalue",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": null,
53
+ "vision_repo_id": "google/siglip-so400m-patch14-384",
54
+ "language_repo_id": "google/gemma-3-270m",
55
+ "vision_revision": null,
56
+ "language_revision": null,
57
+ "task_field": "task",
58
+ "camera_features": [
59
+ "observation.images.left_wrist",
60
+ "observation.images.right_wrist",
61
+ "observation.images.right_front"
62
+ ],
63
+ "state_feature": "observation.state",
64
+ "include_state_in_prompt": true,
65
+ "max_state_dim": 32,
66
+ "state_discretization_bins": 256,
67
+ "target_key": "observation.value_target",
68
+ "loss_weight_key": "observation.value_loss_weight",
69
+ "task_index_feature": "task_index",
70
+ "tokenizer_max_length": 200,
71
+ "state_proj_dim": 512,
72
+ "fusion_hidden_dim": 512,
73
+ "fusion_num_layers": 2,
74
+ "fusion_num_heads": 8,
75
+ "num_bins": 201,
76
+ "bin_min": -1.0,
77
+ "bin_max": 0.0,
78
+ "dropout": 0.1,
79
+ "dtype": "bfloat16",
80
+ "freeze_vision_encoder": true,
81
+ "freeze_language_model": true,
82
+ "use_gradient_checkpointing": true,
83
+ "optimizer_lr": 5e-05,
84
+ "optimizer_weight_decay": 1e-05,
85
+ "optimizer_grad_clip_norm": 10.0,
86
+ "scheduler_warmup_steps": 500,
87
+ "scheduler_decay_steps": 8000,
88
+ "scheduler_decay_lr": 1e-06,
89
+ "normalization_mapping": {
90
+ "VISUAL": "IDENTITY",
91
+ "STATE": "QUANTILES",
92
+ "ACTION": "IDENTITY"
93
+ }
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e068d735719d0b9b97366d148cfca67a266c885a0ae2157e457115416e46f11a
3
+ size 6194892
pistar06_save_info.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "excluded_prefixes": [
3
+ "model.vision_encoder.",
4
+ "model.language_model."
5
+ ],
6
+ "format_version": 1,
7
+ "freeze_language_model": true,
8
+ "freeze_vision_encoder": true,
9
+ "saved_tensor_count": 10,
10
+ "weights_mode": "partial"
11
+ }
value_train_config.json ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "rwrl",
4
+ "root": "/root/autodl-tmp/Evo-RL/rwrl",
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
+ "value": {
83
+ "type": "pistar06",
84
+ "n_obs_steps": 1,
85
+ "input_features": {
86
+ "observation.state": {
87
+ "type": "STATE",
88
+ "shape": [
89
+ 12
90
+ ]
91
+ },
92
+ "observation.images.left_wrist": {
93
+ "type": "VISUAL",
94
+ "shape": [
95
+ 3,
96
+ 480,
97
+ 640
98
+ ]
99
+ },
100
+ "observation.images.right_wrist": {
101
+ "type": "VISUAL",
102
+ "shape": [
103
+ 3,
104
+ 480,
105
+ 640
106
+ ]
107
+ },
108
+ "observation.images.right_front": {
109
+ "type": "VISUAL",
110
+ "shape": [
111
+ 3,
112
+ 720,
113
+ 1280
114
+ ]
115
+ }
116
+ },
117
+ "output_features": {
118
+ "action": {
119
+ "type": "ACTION",
120
+ "shape": [
121
+ 12
122
+ ]
123
+ }
124
+ },
125
+ "device": "cuda",
126
+ "use_amp": true,
127
+ "use_peft": false,
128
+ "push_to_hub": true,
129
+ "repo_id": "manbomanbo/pickvalue",
130
+ "private": null,
131
+ "tags": null,
132
+ "license": null,
133
+ "pretrained_path": null,
134
+ "vision_repo_id": "google/siglip-so400m-patch14-384",
135
+ "language_repo_id": "google/gemma-3-270m",
136
+ "vision_revision": null,
137
+ "language_revision": null,
138
+ "task_field": "task",
139
+ "camera_features": [
140
+ "observation.images.left_wrist",
141
+ "observation.images.right_wrist",
142
+ "observation.images.right_front"
143
+ ],
144
+ "state_feature": "observation.state",
145
+ "include_state_in_prompt": true,
146
+ "max_state_dim": 32,
147
+ "state_discretization_bins": 256,
148
+ "target_key": "observation.value_target",
149
+ "loss_weight_key": "observation.value_loss_weight",
150
+ "task_index_feature": "task_index",
151
+ "tokenizer_max_length": 200,
152
+ "state_proj_dim": 512,
153
+ "fusion_hidden_dim": 512,
154
+ "fusion_num_layers": 2,
155
+ "fusion_num_heads": 8,
156
+ "num_bins": 201,
157
+ "bin_min": -1.0,
158
+ "bin_max": 0.0,
159
+ "dropout": 0.1,
160
+ "dtype": "bfloat16",
161
+ "freeze_vision_encoder": true,
162
+ "freeze_language_model": true,
163
+ "use_gradient_checkpointing": true,
164
+ "optimizer_lr": 5e-05,
165
+ "optimizer_weight_decay": 1e-05,
166
+ "optimizer_grad_clip_norm": 10.0,
167
+ "scheduler_warmup_steps": 500,
168
+ "scheduler_decay_steps": 8000,
169
+ "scheduler_decay_lr": 1e-06,
170
+ "normalization_mapping": {
171
+ "VISUAL": "IDENTITY",
172
+ "STATE": "QUANTILES",
173
+ "ACTION": "IDENTITY"
174
+ }
175
+ },
176
+ "env": null,
177
+ "output_dir": "/root/autodl-tmp/Evo-RL/outputs/value_train/pick",
178
+ "job_name": "pick",
179
+ "resume": false,
180
+ "seed": 1000,
181
+ "num_workers": 4,
182
+ "batch_size": 4,
183
+ "steps": 8000,
184
+ "log_freq": 200,
185
+ "tolerance_s": 0.0001,
186
+ "save_checkpoint": true,
187
+ "save_freq": 4000,
188
+ "use_value_training_preset": true,
189
+ "use_policy_training_preset": true,
190
+ "optimizer": {
191
+ "type": "adamw",
192
+ "lr": 5e-05,
193
+ "weight_decay": 1e-05,
194
+ "grad_clip_norm": 10.0,
195
+ "betas": [
196
+ 0.9,
197
+ 0.999
198
+ ],
199
+ "eps": 1e-08
200
+ },
201
+ "scheduler": {
202
+ "type": "cosine_decay_with_warmup",
203
+ "num_warmup_steps": 500,
204
+ "num_decay_steps": 8000,
205
+ "peak_lr": 5e-05,
206
+ "decay_lr": 1e-06
207
+ },
208
+ "targets": {
209
+ "success_field": "episode_success",
210
+ "default_success": "failure",
211
+ "c_fail_coef": 1.0,
212
+ "target_field": "observation.value_target"
213
+ },
214
+ "wandb": {
215
+ "enable": true,
216
+ "disable_artifact": false,
217
+ "project": "lerobot",
218
+ "entity": null,
219
+ "notes": null,
220
+ "run_id": "wyd2giuy",
221
+ "mode": null
222
+ },
223
+ "peft": null,
224
+ "rename_map": {},
225
+ "checkpoint_path": null
226
+ }