Instructions to use dgrachev/pi05_subtask_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use dgrachev/pi05_subtask_base with LeRobot:
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- config.json +82 -0
- model.safetensors +3 -0
- policy_postprocessor.json +30 -0
- policy_preprocessor.json +53 -0
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "pi05_subtask",
|
| 3 |
+
"n_obs_steps": 1,
|
| 4 |
+
"input_features": {
|
| 5 |
+
"observation.images.base_0_rgb": {
|
| 6 |
+
"type": "VISUAL",
|
| 7 |
+
"shape": [
|
| 8 |
+
3,
|
| 9 |
+
224,
|
| 10 |
+
224
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
"observation.images.left_wrist_0_rgb": {
|
| 14 |
+
"type": "VISUAL",
|
| 15 |
+
"shape": [
|
| 16 |
+
3,
|
| 17 |
+
224,
|
| 18 |
+
224
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"observation.images.right_wrist_0_rgb": {
|
| 22 |
+
"type": "VISUAL",
|
| 23 |
+
"shape": [
|
| 24 |
+
3,
|
| 25 |
+
224,
|
| 26 |
+
224
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
"observation.state": {
|
| 30 |
+
"type": "STATE",
|
| 31 |
+
"shape": [
|
| 32 |
+
32
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"output_features": {
|
| 37 |
+
"action": {
|
| 38 |
+
"type": "ACTION",
|
| 39 |
+
"shape": [
|
| 40 |
+
32
|
| 41 |
+
]
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"device": "mps",
|
| 45 |
+
"use_amp": false,
|
| 46 |
+
"push_to_hub": true,
|
| 47 |
+
"repo_id": null,
|
| 48 |
+
"private": null,
|
| 49 |
+
"tags": null,
|
| 50 |
+
"license": null,
|
| 51 |
+
"paligemma_variant": "gemma_2b",
|
| 52 |
+
"action_expert_variant": "gemma_300m",
|
| 53 |
+
"dtype": "float32",
|
| 54 |
+
"chunk_size": 50,
|
| 55 |
+
"n_action_steps": 50,
|
| 56 |
+
"max_action_dim": 32,
|
| 57 |
+
"max_state_dim": 32,
|
| 58 |
+
"num_inference_steps": 10,
|
| 59 |
+
"time_sampling_beta_alpha": 1.5,
|
| 60 |
+
"time_sampling_beta_beta": 1.0,
|
| 61 |
+
"min_period": 0.004,
|
| 62 |
+
"max_period": 4.0,
|
| 63 |
+
"image_resolution": [
|
| 64 |
+
224,
|
| 65 |
+
224
|
| 66 |
+
],
|
| 67 |
+
"gradient_checkpointing": false,
|
| 68 |
+
"compile_model": false,
|
| 69 |
+
"compile_mode": "max-autotune",
|
| 70 |
+
"optimizer_lr": 2.5e-05,
|
| 71 |
+
"optimizer_betas": [
|
| 72 |
+
0.9,
|
| 73 |
+
0.95
|
| 74 |
+
],
|
| 75 |
+
"optimizer_eps": 1e-08,
|
| 76 |
+
"optimizer_weight_decay": 0.01,
|
| 77 |
+
"optimizer_grad_clip_norm": 1.0,
|
| 78 |
+
"scheduler_warmup_steps": 1000,
|
| 79 |
+
"scheduler_decay_steps": 30000,
|
| 80 |
+
"scheduler_decay_lr": 2.5e-06,
|
| 81 |
+
"tokenizer_max_length": 200
|
| 82 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0eb11ca9587678c1d2ef8cf32807c29f8ce53a2bfdfc1aa4a4c96f16fca59b0f
|
| 3 |
+
size 14467165872
|
policy_postprocessor.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "policy_postprocessor",
|
| 3 |
+
"steps": [
|
| 4 |
+
{
|
| 5 |
+
"registry_name": "unnormalizer_processor",
|
| 6 |
+
"config": {
|
| 7 |
+
"eps": 1e-08,
|
| 8 |
+
"features": {},
|
| 9 |
+
"norm_map": {
|
| 10 |
+
"VISUAL": "IDENTITY",
|
| 11 |
+
"STATE": "QUANTILES",
|
| 12 |
+
"ACTION": "QUANTILES"
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"registry_name": "absolute_actions_processor",
|
| 18 |
+
"config": {
|
| 19 |
+
"enabled": false
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"registry_name": "device_processor",
|
| 24 |
+
"config": {
|
| 25 |
+
"device": "cpu",
|
| 26 |
+
"float_dtype": null
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
policy_preprocessor.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "policy_preprocessor",
|
| 3 |
+
"steps": [
|
| 4 |
+
{
|
| 5 |
+
"registry_name": "rename_observations_processor",
|
| 6 |
+
"config": {
|
| 7 |
+
"rename_map": {}
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"registry_name": "to_batch_processor",
|
| 12 |
+
"config": {}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"registry_name": "relative_actions_processor",
|
| 16 |
+
"config": {
|
| 17 |
+
"enabled": false,
|
| 18 |
+
"exclude_joints": [
|
| 19 |
+
"gripper"
|
| 20 |
+
],
|
| 21 |
+
"action_names": null
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"registry_name": "normalizer_processor",
|
| 26 |
+
"config": {
|
| 27 |
+
"eps": 1e-08,
|
| 28 |
+
"features": {},
|
| 29 |
+
"norm_map": {
|
| 30 |
+
"VISUAL": "IDENTITY",
|
| 31 |
+
"STATE": "QUANTILES",
|
| 32 |
+
"ACTION": "QUANTILES"
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"registry_name": "pi05_subtask_tokenize_processor_step",
|
| 38 |
+
"config": {
|
| 39 |
+
"tokenizer_name": "google/paligemma-3b-pt-224",
|
| 40 |
+
"max_length": 200,
|
| 41 |
+
"task_key": "task",
|
| 42 |
+
"subtask_key": "subtask"
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"registry_name": "device_processor",
|
| 47 |
+
"config": {
|
| 48 |
+
"device": "cpu",
|
| 49 |
+
"float_dtype": null
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
}
|