thomas0829 commited on
Commit
eb9047a
·
verified ·
1 Parent(s): 3be0519

Upload PI0.5 PyTorch base model

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: unknown
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - pi05
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi05
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ **π₀.₅ (Pi05) Policy**
19
+
20
+ π₀.₅ is a Vision-Language-Action model with open-world generalization, from Physical Intelligence. The LeRobot implementation is adapted from their open source OpenPI repository.
21
+
22
+ **Model Overview**
23
+
24
+ π₀.₅ represents a significant evolution from π₀, developed by Physical Intelligence to address a big challenge in robotics: open-world generalization. While robots can perform impressive tasks in controlled environments, π₀.₅ is designed to generalize to entirely new environments and situations that were never seen during training.
25
+
26
+ For more details, see the [Physical Intelligence π₀.₅ blog post](https://www.physicalintelligence.company/blog/pi05).
27
+
28
+
29
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
30
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
31
+
32
+ ---
33
+
34
+ ## How to Get Started with the Model
35
+
36
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
37
+ Below is the short version on how to train and run inference/eval:
38
+
39
+ ### Train from scratch
40
+
41
+ ```bash
42
+ lerobot-train \
43
+ --dataset.repo_id=${HF_USER}/<dataset> \
44
+ --policy.type=act \
45
+ --output_dir=outputs/train/<desired_policy_repo_id> \
46
+ --job_name=lerobot_training \
47
+ --policy.device=cuda \
48
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
49
+ --wandb.enable=true
50
+ ```
51
+
52
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
53
+
54
+ ### Evaluate the policy/run inference
55
+
56
+ ```bash
57
+ lerobot-record \
58
+ --robot.type=so100_follower \
59
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
60
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
61
+ --episodes=10
62
+ ```
63
+
64
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
65
+
66
+ ---
67
+
68
+ ## Model Details
69
+
70
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 14
9
+ ]
10
+ },
11
+ "observation.images.top": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 224,
16
+ 224
17
+ ]
18
+ },
19
+ "observation.images.left": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 224,
24
+ 224
25
+ ]
26
+ },
27
+ "observation.images.right": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 224,
32
+ 224
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 14
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "push_to_hub": true,
47
+ "repo_id": null,
48
+ "private": null,
49
+ "tags": null,
50
+ "license": null,
51
+ "pretrained_path": null,
52
+ "paligemma_variant": "gemma_2b",
53
+ "action_expert_variant": "gemma_300m",
54
+ "dtype": "bfloat16",
55
+ "chunk_size": 50,
56
+ "n_action_steps": 50,
57
+ "max_state_dim": 32,
58
+ "max_action_dim": 32,
59
+ "num_inference_steps": 10,
60
+ "time_sampling_beta_alpha": 1.5,
61
+ "time_sampling_beta_beta": 1.0,
62
+ "time_sampling_scale": 0.999,
63
+ "time_sampling_offset": 0.001,
64
+ "min_period": 0.004,
65
+ "max_period": 4.0,
66
+ "rtc_config": null,
67
+ "image_resolution": [
68
+ 224,
69
+ 224
70
+ ],
71
+ "empty_cameras": 0,
72
+ "tokenizer_max_length": 200,
73
+ "normalization_mapping": {
74
+ "VISUAL": "MEAN_STD",
75
+ "STATE": "MIN_MAX",
76
+ "ACTION": "MEAN_STD"
77
+ },
78
+ "gradient_checkpointing": true,
79
+ "compile_model": false,
80
+ "compile_mode": "max-autotune",
81
+ "optimizer_lr": 2.5e-05,
82
+ "optimizer_betas": [
83
+ 0.9,
84
+ 0.95
85
+ ],
86
+ "optimizer_eps": 1e-08,
87
+ "optimizer_weight_decay": 0.01,
88
+ "optimizer_grad_clip_norm": 1.0,
89
+ "scheduler_warmup_steps": 1000,
90
+ "scheduler_decay_steps": 30000,
91
+ "scheduler_decay_lr": 2.5e-06
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f793f192f77b896de5ea6454e7b5fe471c07bed8d4f8e6b976ff8c386ad4bd6d
3
+ size 14467170760
policy_postprocessor.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "device_processor",
6
+ "config": {
7
+ "device": "cpu",
8
+ "float_dtype": null
9
+ }
10
+ },
11
+ {
12
+ "registry_name": "unnormalizer_processor",
13
+ "config": {
14
+ "eps": 1e-08,
15
+ "features": {
16
+ "action": {
17
+ "type": "ACTION",
18
+ "shape": [
19
+ 6
20
+ ],
21
+ "normalization": {
22
+ "mode": "MEAN_STD",
23
+ "mean": [
24
+ -9.538637424210057,
25
+ -23.303302123398584,
26
+ 27.980357810668227,
27
+ 71.35812899968884,
28
+ 4.055796461816514,
29
+ 12.675294114861119
30
+ ],
31
+ "std": [
32
+ 19.682557487896783,
33
+ 34.25780489772143,
34
+ 32.804336590385184,
35
+ 13.80158144415263,
36
+ 9.76913612979956,
37
+ 8.606452004202943
38
+ ]
39
+ }
40
+ }
41
+ },
42
+ "norm_map": {
43
+ "ACTION": "MEAN_STD"
44
+ }
45
+ }
46
+ }
47
+ ]
48
+ }
policy_preprocessor.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "normalizer_processor",
16
+ "config": {
17
+ "eps": 1e-08,
18
+ "features": {
19
+ "observation.state": {
20
+ "type": "STATE",
21
+ "shape": [
22
+ 6
23
+ ],
24
+ "normalization": {
25
+ "mode": "MIN_MAX",
26
+ "min": [
27
+ -54.06871795654297,
28
+ -97.31949615478516,
29
+ -29.040971755981445,
30
+ 35.838382720947266,
31
+ -19.853479385375977,
32
+ 0.737265408039093
33
+ ],
34
+ "max": [
35
+ 34.32188034057617,
36
+ 35.40856170654297,
37
+ 99.1895523071289,
38
+ 98.30303192138672,
39
+ 29.377288818359375,
40
+ 30.697050094604492
41
+ ]
42
+ }
43
+ },
44
+ "observation.images.top": {
45
+ "type": "VISUAL",
46
+ "shape": [
47
+ 3,
48
+ 224,
49
+ 224
50
+ ],
51
+ "normalization": {
52
+ "mode": "MEAN_STD",
53
+ "mean": [
54
+ 0.4534227455943007,
55
+ 0.42901222558577234,
56
+ 0.4044911766773638
57
+ ],
58
+ "std": [
59
+ 0.2815573315091434,
60
+ 0.2542026950261449,
61
+ 0.2563229871857081
62
+ ]
63
+ }
64
+ },
65
+ "observation.images.wrist": {
66
+ "type": "VISUAL",
67
+ "shape": [
68
+ 3,
69
+ 224,
70
+ 224
71
+ ],
72
+ "normalization": {
73
+ "mode": "MEAN_STD",
74
+ "mean": [
75
+ 0.5329215492594676,
76
+ 0.49891376312335955,
77
+ 0.5109464269401987
78
+ ],
79
+ "std": [
80
+ 0.31091577456313274,
81
+ 0.29490511281918097,
82
+ 0.31577234793989206
83
+ ]
84
+ }
85
+ },
86
+ "action": {
87
+ "type": "ACTION",
88
+ "shape": [
89
+ 6
90
+ ],
91
+ "normalization": {
92
+ "mode": "MEAN_STD",
93
+ "mean": [
94
+ -9.538637424210057,
95
+ -23.303302123398584,
96
+ 27.980357810668227,
97
+ 71.35812899968884,
98
+ 4.055796461816514,
99
+ 12.675294114861119
100
+ ],
101
+ "std": [
102
+ 19.682557487896783,
103
+ 34.25780489772143,
104
+ 32.804336590385184,
105
+ 13.80158144415263,
106
+ 9.76913612979956,
107
+ 8.606452004202943
108
+ ]
109
+ }
110
+ }
111
+ },
112
+ "norm_map": {
113
+ "VISUAL": "MEAN_STD",
114
+ "STATE": "MIN_MAX",
115
+ "ACTION": "MEAN_STD"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "registry_name": "pi05_prepare_state_tokenizer_processor_step",
121
+ "config": {}
122
+ },
123
+ {
124
+ "registry_name": "tokenizer_processor",
125
+ "config": {
126
+ "max_length": 200,
127
+ "task_key": "task",
128
+ "padding_side": "right",
129
+ "padding": "max_length",
130
+ "truncation": true,
131
+ "tokenizer_name": "google/paligemma-3b-pt-224"
132
+ }
133
+ },
134
+ {
135
+ "registry_name": "device_processor",
136
+ "config": {
137
+ "device": "cuda",
138
+ "float_dtype": null
139
+ }
140
+ }
141
+ ]
142
+ }