SentientNapkin commited on
Commit
ddf7aa7
·
verified ·
1 Parent(s): 1e861ea

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. config.json +176 -0
  2. model.safetensors +3 -0
  3. train_config.json +347 -0
config.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "sac_residual",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 9
9
+ ]
10
+ },
11
+ "observation.images.camera1": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 128,
16
+ 128
17
+ ]
18
+ },
19
+ "observation.images.camera2": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 128,
24
+ 128
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 3
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": false,
40
+ "repo_id": null,
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "normalization_mapping": {
46
+ "VISUAL": "MEAN_STD",
47
+ "STATE": "MIN_MAX",
48
+ "ENV": "MIN_MAX",
49
+ "ACTION": "MIN_MAX"
50
+ },
51
+ "dataset_stats": {
52
+ "observation.image": {
53
+ "mean": [
54
+ 0.485,
55
+ 0.456,
56
+ 0.406
57
+ ],
58
+ "std": [
59
+ 0.229,
60
+ 0.224,
61
+ 0.225
62
+ ]
63
+ },
64
+ "observation.state": {
65
+ "min": [
66
+ 0.0,
67
+ 0.0
68
+ ],
69
+ "max": [
70
+ 1.0,
71
+ 1.0
72
+ ]
73
+ },
74
+ "action": {
75
+ "min": [
76
+ 0.0,
77
+ 0.0,
78
+ 0.0
79
+ ],
80
+ "max": [
81
+ 1.0,
82
+ 1.0,
83
+ 1.0
84
+ ]
85
+ }
86
+ },
87
+ "storage_device": "cpu",
88
+ "vision_encoder_name": null,
89
+ "freeze_vision_encoder": true,
90
+ "image_encoder_hidden_dim": 32,
91
+ "shared_encoder": true,
92
+ "num_discrete_actions": null,
93
+ "image_embedding_pooling_dim": 8,
94
+ "online_steps": 200000,
95
+ "online_buffer_capacity": 40000,
96
+ "offline_buffer_capacity": 100000,
97
+ "async_prefetch": false,
98
+ "online_step_before_learning": 200,
99
+ "policy_update_freq": 1,
100
+ "discount": 0.99,
101
+ "temperature_init": 1.0,
102
+ "num_critics": 2,
103
+ "num_subsample_critics": null,
104
+ "critic_lr": 0.0003,
105
+ "actor_lr": 0.0003,
106
+ "temperature_lr": 0.0003,
107
+ "critic_target_update_weight": 0.005,
108
+ "utd_ratio": 1,
109
+ "state_encoder_hidden_dim": 256,
110
+ "latent_dim": 256,
111
+ "target_entropy": null,
112
+ "use_backup_entropy": true,
113
+ "grad_clip_norm": 40.0,
114
+ "critic_network_kwargs": {
115
+ "hidden_dims": [
116
+ 256,
117
+ 256
118
+ ],
119
+ "activate_final": true,
120
+ "final_activation": null
121
+ },
122
+ "actor_network_kwargs": {
123
+ "hidden_dims": [
124
+ 256,
125
+ 256
126
+ ],
127
+ "activate_final": true
128
+ },
129
+ "policy_kwargs": {
130
+ "use_tanh_squash": true,
131
+ "std_min": 1e-05,
132
+ "std_max": 10.0,
133
+ "init_final": 0.05
134
+ },
135
+ "discrete_critic_network_kwargs": {
136
+ "hidden_dims": [
137
+ 256,
138
+ 256
139
+ ],
140
+ "activate_final": true,
141
+ "final_activation": null
142
+ },
143
+ "actor_learner_config": {
144
+ "learner_host": "127.0.0.1",
145
+ "learner_port": 50051,
146
+ "policy_parameters_push_frequency": 2,
147
+ "queue_get_timeout": 2
148
+ },
149
+ "concurrency": {
150
+ "actor": "threads",
151
+ "learner": "threads"
152
+ },
153
+ "use_torch_compile": true,
154
+ "base_policy_path": "SentientNapkin/smolvla-nut-threading",
155
+ "base_policy_type": "smolvla",
156
+ "base_policy_task": "Pick up the pipe and position it ready to thread onto the fitting",
157
+ "residual_scale": 0.1,
158
+ "base_policy_inference_stride": 5,
159
+ "base_policy_chunk_stride": 3,
160
+ "base_policy_augment_batch_size": 8,
161
+ "urdf_path": "/home/sebastian-vargas/lerobot/assets/so-arm100/Simulation/SO101/so101_new_calib.urdf",
162
+ "target_frame_name": "gripper_frame_link",
163
+ "arm_joint_names": [
164
+ "shoulder_pan",
165
+ "shoulder_lift",
166
+ "elbow_flex",
167
+ "wrist_flex",
168
+ "wrist_roll"
169
+ ],
170
+ "end_effector_step_sizes": {
171
+ "x": 0.03,
172
+ "y": 0.03,
173
+ "z": 0.03
174
+ },
175
+ "gripper_hold_deadband": 1.0
176
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae04e905dfe134c4a63eec038f36d69dc48af6dd0d8098796569cc3049f210f1
3
+ size 912846060
train_config.json ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": null,
3
+ "env": {
4
+ "type": "gym_manipulator",
5
+ "task": null,
6
+ "fps": 10,
7
+ "features": {},
8
+ "features_map": {},
9
+ "max_parallel_tasks": 1,
10
+ "disable_env_checker": true,
11
+ "robot": {
12
+ "type": "so101_follower",
13
+ "id": "sebs_follower_arm",
14
+ "calibration_dir": null,
15
+ "port": "/dev/ttyACM0",
16
+ "disable_torque_on_disconnect": true,
17
+ "max_relative_target": null,
18
+ "cameras": {
19
+ "camera1": {
20
+ "type": "opencv",
21
+ "fps": 30,
22
+ "width": 640,
23
+ "height": 480,
24
+ "index_or_path": 0,
25
+ "color_mode": "rgb",
26
+ "rotation": 0,
27
+ "warmup_s": 1,
28
+ "fourcc": null
29
+ },
30
+ "camera2": {
31
+ "type": "opencv",
32
+ "fps": 30,
33
+ "width": 640,
34
+ "height": 480,
35
+ "index_or_path": 2,
36
+ "color_mode": "rgb",
37
+ "rotation": 0,
38
+ "warmup_s": 1,
39
+ "fourcc": null
40
+ }
41
+ },
42
+ "use_degrees": true
43
+ },
44
+ "teleop": {
45
+ "type": "gamepad",
46
+ "id": null,
47
+ "calibration_dir": null,
48
+ "use_gripper": true,
49
+ "x_step_size": 1.0,
50
+ "y_step_size": 1.0,
51
+ "z_step_size": 1.0
52
+ },
53
+ "processor": {
54
+ "control_mode": "gamepad",
55
+ "observation": {
56
+ "add_joint_velocity_to_observation": false,
57
+ "add_current_to_observation": false,
58
+ "display_cameras": false
59
+ },
60
+ "image_preprocessing": {
61
+ "crop_params_dict": {},
62
+ "resize_size": [
63
+ 128,
64
+ 128
65
+ ]
66
+ },
67
+ "gripper": {
68
+ "use_gripper": true,
69
+ "gripper_penalty": 0.0
70
+ },
71
+ "reset": {
72
+ "fixed_reset_joint_positions": [
73
+ -4.75,
74
+ -15.34,
75
+ 31.91,
76
+ 86.64,
77
+ 8.84,
78
+ 11.84
79
+ ],
80
+ "reset_time_s": 6.0,
81
+ "control_time_s": 20.0,
82
+ "terminate_on_success": true
83
+ },
84
+ "inverse_kinematics": {
85
+ "urdf_path": "/home/sebastian-vargas/lerobot/assets/so-arm100/Simulation/SO101/so101_new_calib.urdf",
86
+ "target_frame_name": "gripper_frame_link",
87
+ "end_effector_bounds": {
88
+ "min": [
89
+ -0.3499,
90
+ -0.457,
91
+ -0.2049
92
+ ],
93
+ "max": [
94
+ 0.4864,
95
+ 0.457,
96
+ 0.5521
97
+ ]
98
+ },
99
+ "end_effector_step_sizes": {
100
+ "x": 0.03,
101
+ "y": 0.03,
102
+ "z": 0.03
103
+ },
104
+ "max_ee_step_m": 0.08
105
+ },
106
+ "reward_classifier": null,
107
+ "pipe_reward_classifier": {
108
+ "pretrained_path": "reward_classifier_checkpoints/pipe_reward_classifier.pt",
109
+ "scalarization_method": "threshold",
110
+ "tau": 0.5,
111
+ "success_stage_threshold": 0.5,
112
+ "success_reward": 1.0
113
+ },
114
+ "max_gripper_pos": 100.0
115
+ },
116
+ "name": "real_robot"
117
+ },
118
+ "policy": {
119
+ "type": "sac_residual",
120
+ "n_obs_steps": 1,
121
+ "input_features": {
122
+ "observation.state": {
123
+ "type": "STATE",
124
+ "shape": [
125
+ 9
126
+ ]
127
+ },
128
+ "observation.images.camera1": {
129
+ "type": "VISUAL",
130
+ "shape": [
131
+ 3,
132
+ 128,
133
+ 128
134
+ ]
135
+ },
136
+ "observation.images.camera2": {
137
+ "type": "VISUAL",
138
+ "shape": [
139
+ 3,
140
+ 128,
141
+ 128
142
+ ]
143
+ }
144
+ },
145
+ "output_features": {
146
+ "action": {
147
+ "type": "ACTION",
148
+ "shape": [
149
+ 3
150
+ ]
151
+ }
152
+ },
153
+ "device": "cuda",
154
+ "use_amp": false,
155
+ "use_peft": false,
156
+ "push_to_hub": false,
157
+ "repo_id": null,
158
+ "private": null,
159
+ "tags": null,
160
+ "license": null,
161
+ "pretrained_path": null,
162
+ "normalization_mapping": {
163
+ "VISUAL": "MEAN_STD",
164
+ "STATE": "MIN_MAX",
165
+ "ENV": "MIN_MAX",
166
+ "ACTION": "MIN_MAX"
167
+ },
168
+ "dataset_stats": {
169
+ "observation.image": {
170
+ "mean": [
171
+ 0.485,
172
+ 0.456,
173
+ 0.406
174
+ ],
175
+ "std": [
176
+ 0.229,
177
+ 0.224,
178
+ 0.225
179
+ ]
180
+ },
181
+ "observation.state": {
182
+ "min": [
183
+ 0.0,
184
+ 0.0
185
+ ],
186
+ "max": [
187
+ 1.0,
188
+ 1.0
189
+ ]
190
+ },
191
+ "action": {
192
+ "min": [
193
+ 0.0,
194
+ 0.0,
195
+ 0.0
196
+ ],
197
+ "max": [
198
+ 1.0,
199
+ 1.0,
200
+ 1.0
201
+ ]
202
+ }
203
+ },
204
+ "storage_device": "cpu",
205
+ "vision_encoder_name": null,
206
+ "freeze_vision_encoder": true,
207
+ "image_encoder_hidden_dim": 32,
208
+ "shared_encoder": true,
209
+ "num_discrete_actions": null,
210
+ "image_embedding_pooling_dim": 8,
211
+ "online_steps": 200000,
212
+ "online_buffer_capacity": 40000,
213
+ "offline_buffer_capacity": 100000,
214
+ "async_prefetch": false,
215
+ "online_step_before_learning": 200,
216
+ "policy_update_freq": 1,
217
+ "discount": 0.99,
218
+ "temperature_init": 1.0,
219
+ "num_critics": 2,
220
+ "num_subsample_critics": null,
221
+ "critic_lr": 0.0003,
222
+ "actor_lr": 0.0003,
223
+ "temperature_lr": 0.0003,
224
+ "critic_target_update_weight": 0.005,
225
+ "utd_ratio": 1,
226
+ "state_encoder_hidden_dim": 256,
227
+ "latent_dim": 256,
228
+ "target_entropy": null,
229
+ "use_backup_entropy": true,
230
+ "grad_clip_norm": 40.0,
231
+ "critic_network_kwargs": {
232
+ "hidden_dims": [
233
+ 256,
234
+ 256
235
+ ],
236
+ "activate_final": true,
237
+ "final_activation": null
238
+ },
239
+ "actor_network_kwargs": {
240
+ "hidden_dims": [
241
+ 256,
242
+ 256
243
+ ],
244
+ "activate_final": true
245
+ },
246
+ "policy_kwargs": {
247
+ "use_tanh_squash": true,
248
+ "std_min": 1e-05,
249
+ "std_max": 10.0,
250
+ "init_final": 0.05
251
+ },
252
+ "discrete_critic_network_kwargs": {
253
+ "hidden_dims": [
254
+ 256,
255
+ 256
256
+ ],
257
+ "activate_final": true,
258
+ "final_activation": null
259
+ },
260
+ "actor_learner_config": {
261
+ "learner_host": "127.0.0.1",
262
+ "learner_port": 50051,
263
+ "policy_parameters_push_frequency": 2,
264
+ "queue_get_timeout": 2
265
+ },
266
+ "concurrency": {
267
+ "actor": "threads",
268
+ "learner": "threads"
269
+ },
270
+ "use_torch_compile": true,
271
+ "base_policy_path": "SentientNapkin/smolvla-nut-threading",
272
+ "base_policy_type": "smolvla",
273
+ "base_policy_task": "Pick up the pipe and position it ready to thread onto the fitting",
274
+ "residual_scale": 0.1,
275
+ "base_policy_inference_stride": 5,
276
+ "base_policy_chunk_stride": 3,
277
+ "base_policy_augment_batch_size": 8,
278
+ "urdf_path": "/home/sebastian-vargas/lerobot/assets/so-arm100/Simulation/SO101/so101_new_calib.urdf",
279
+ "target_frame_name": "gripper_frame_link",
280
+ "arm_joint_names": [
281
+ "shoulder_pan",
282
+ "shoulder_lift",
283
+ "elbow_flex",
284
+ "wrist_flex",
285
+ "wrist_roll"
286
+ ],
287
+ "end_effector_step_sizes": {
288
+ "x": 0.03,
289
+ "y": 0.03,
290
+ "z": 0.03
291
+ },
292
+ "gripper_hold_deadband": 1.0
293
+ },
294
+ "output_dir": "outputs/train/2026-08-02/18-49-14_pipe_threading_residual_sac",
295
+ "job_name": "pipe_threading_residual_sac",
296
+ "resume": false,
297
+ "seed": 1000,
298
+ "num_workers": 4,
299
+ "batch_size": 256,
300
+ "steps": 200000,
301
+ "eval_freq": 20000,
302
+ "log_freq": 50,
303
+ "tolerance_s": 0.0001,
304
+ "save_checkpoint": true,
305
+ "save_freq": 2000,
306
+ "use_policy_training_preset": true,
307
+ "optimizer": {
308
+ "type": "multi_adam",
309
+ "lr": 0.001,
310
+ "weight_decay": 0.0,
311
+ "grad_clip_norm": 10.0,
312
+ "optimizer_groups": {
313
+ "actor": {
314
+ "lr": 0.0003
315
+ },
316
+ "critic": {
317
+ "lr": 0.0003
318
+ },
319
+ "temperature": {
320
+ "lr": 0.0003
321
+ }
322
+ }
323
+ },
324
+ "scheduler": null,
325
+ "eval": {
326
+ "n_episodes": 50,
327
+ "batch_size": 50,
328
+ "use_async_envs": false
329
+ },
330
+ "wandb": {
331
+ "enable": true,
332
+ "disable_artifact": false,
333
+ "project": "pipe-threading-residual-rl",
334
+ "entity": null,
335
+ "notes": null,
336
+ "run_id": "4u14erbz",
337
+ "mode": null
338
+ },
339
+ "peft": null,
340
+ "use_rabc": false,
341
+ "rabc_progress_path": null,
342
+ "rabc_kappa": 0.01,
343
+ "rabc_epsilon": 1e-06,
344
+ "rabc_head_mode": "sparse",
345
+ "rename_map": {},
346
+ "checkpoint_path": null
347
+ }