ColinSkywalker commited on
Commit
8eb3b27
·
verified ·
1 Parent(s): 9032d7e

Add files using upload-large-folder tool

Browse files
CHECKPOINTS.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Included checkpoint steps for `pi0_ur5_real_robot_pytorch_baseline_v1`:
2
+
3
+ - 5000
4
+ - 10000
5
+ - 15000
6
+ - 20000
7
+ - 25000
8
+ - 30000
9
+
10
+ Each checkpoint directory contains:
11
+
12
+ - model.safetensors
13
+ - metadata.pt
14
+ - assets/ur5_lab_test_tube_camera_shifts/norm_stats.json
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Pi0-real-robot
2
+
3
+ PyTorch `pi0` policy fine-tuned on the local UR5 real-robot LeRobot-format dataset:
4
+
5
+ - dataset: `ur5_lab_test_tube_camera_shifts`
6
+ - training config name: `pi0_ur5_real_robot_pytorch_baseline`
7
+ - base model init: `/scratch/yz11445/pi0_base`
8
+ - saved checkpoint steps: `5000`, `10000`, `15000`, `20000`, `25000`, `30000`
9
+
10
+ ## Included Files
11
+
12
+ - `config.json`: base Pi0 model config copied from the initialization checkpoint
13
+ - `model_architecture_config.json`: fine-tuned architecture settings used by this run
14
+ - `training_config_summary.json`: training/data/run summary for this release
15
+ - `assets/ur5_lab_test_tube_camera_shifts/norm_stats.json`: normalization statistics
16
+ - `checkpoints/<step>/`: checkpoint snapshots with `model.safetensors`, `metadata.pt`, and copied assets
17
+
18
+ ## Inference
19
+
20
+ Serve any checkpoint with:
21
+
22
+ ```bash
23
+ uv run scripts/serve_policy.py policy:checkpoint \
24
+ --policy.config=pi0_ur5_real_robot_pytorch_baseline \
25
+ --policy.dir=/path/to/Pi0-real-robot/checkpoints/30000
26
+ ```
27
+
28
+ Replace `30000` with one of `5000`, `10000`, `15000`, `20000`, `25000`, or `30000`.
29
+
30
+ ## Notes
31
+
32
+ - The policy loader uses the code-defined training config `pi0_ur5_real_robot_pytorch_baseline` from `src/openpi/training/config.py`.
33
+ - Normalization stats are loaded from `assets/ur5_lab_test_tube_camera_shifts/norm_stats.json` inside each checkpoint directory.
34
+ - Tokenizer assets are not bundled in this release directory. In this codebase, the Pi0 tokenizer is loaded at runtime from external sources referenced in `src/openpi/models/tokenizer.py`.
assets/ur5_lab_test_tube_camera_shifts/norm_stats.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "norm_stats": {
3
+ "state": {
4
+ "mean": [
5
+ -3.340229034423828,
6
+ -0.993720531463623,
7
+ 1.4748752117156982,
8
+ -2.027818441390991,
9
+ -1.5979795455932617,
10
+ 4.608609199523926,
11
+ 0.5474765300750732
12
+ ],
13
+ "std": [
14
+ 0.19318173825740814,
15
+ 0.14630725979804993,
16
+ 0.2504045069217682,
17
+ 0.11725258827209473,
18
+ 0.0358712300658226,
19
+ 0.20255139470100403,
20
+ 0.49774089455604553
21
+ ],
22
+ "q01": [
23
+ -3.7030182856559755,
24
+ -1.2474105840682983,
25
+ 0.7992883544683457,
26
+ -2.24708842587471,
27
+ -1.7682025527954102,
28
+ 4.231052602767944,
29
+ 0.0
30
+ ],
31
+ "q99": [
32
+ -3.0268489632606506,
33
+ -0.5849727642059327,
34
+ 1.865938720214367,
35
+ -1.7351905375003815,
36
+ -1.5186957674026489,
37
+ 4.9647599239349365,
38
+ 0.9998
39
+ ]
40
+ },
41
+ "actions": {
42
+ "mean": [
43
+ 0.016937920823693275,
44
+ -0.004969933535903692,
45
+ 0.009962701238691807,
46
+ -0.001688019372522831,
47
+ 0.0012489908840507269,
48
+ 0.018919125199317932,
49
+ 0.5474765300750732
50
+ ],
51
+ "std": [
52
+ 0.06978615373373032,
53
+ 0.06991613656282425,
54
+ 0.09595422446727753,
55
+ 0.059662021696567535,
56
+ 0.010708698071539402,
57
+ 0.06966347992420197,
58
+ 0.49774089455604553
59
+ ],
60
+ "q01": [
61
+ -0.1645936336517334,
62
+ -0.21226087988615036,
63
+ -0.2664332183122635,
64
+ -0.1527675679922104,
65
+ -0.02410040438175201,
66
+ -0.154551212310791,
67
+ 0.0
68
+ ],
69
+ "q99": [
70
+ 0.21269720268249515,
71
+ 0.21668597954511637,
72
+ 0.3531587926626205,
73
+ 0.18083614184856417,
74
+ 0.03492184810638427,
75
+ 0.21823061800003052,
76
+ 0.9998
77
+ ]
78
+ }
79
+ }
80
+ }
checkpoints/20000/metadata.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93b1478b17f8fee49e995ac18202419b34ea480b51a104b96c483601561880fc
3
+ size 4019
checkpoints/20000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3651c6e4a571a02353d5783dba6eb5650a0d0a36b45774dfee6d40866e0b7f7d
3
+ size 7011543960
checkpoints/25000/assets/ur5_lab_test_tube_camera_shifts/norm_stats.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "norm_stats": {
3
+ "state": {
4
+ "mean": [
5
+ -3.340229034423828,
6
+ -0.993720531463623,
7
+ 1.4748752117156982,
8
+ -2.027818441390991,
9
+ -1.5979795455932617,
10
+ 4.608609199523926,
11
+ 0.5474765300750732
12
+ ],
13
+ "std": [
14
+ 0.19318173825740814,
15
+ 0.14630725979804993,
16
+ 0.2504045069217682,
17
+ 0.11725258827209473,
18
+ 0.0358712300658226,
19
+ 0.20255139470100403,
20
+ 0.49774089455604553
21
+ ],
22
+ "q01": [
23
+ -3.7030182856559755,
24
+ -1.2474105840682983,
25
+ 0.7992883544683457,
26
+ -2.24708842587471,
27
+ -1.7682025527954102,
28
+ 4.231052602767944,
29
+ 0.0
30
+ ],
31
+ "q99": [
32
+ -3.0268489632606506,
33
+ -0.5849727642059327,
34
+ 1.865938720214367,
35
+ -1.7351905375003815,
36
+ -1.5186957674026489,
37
+ 4.9647599239349365,
38
+ 0.9998
39
+ ]
40
+ },
41
+ "actions": {
42
+ "mean": [
43
+ 0.016937920823693275,
44
+ -0.004969933535903692,
45
+ 0.009962701238691807,
46
+ -0.001688019372522831,
47
+ 0.0012489908840507269,
48
+ 0.018919125199317932,
49
+ 0.5474765300750732
50
+ ],
51
+ "std": [
52
+ 0.06978615373373032,
53
+ 0.06991613656282425,
54
+ 0.09595422446727753,
55
+ 0.059662021696567535,
56
+ 0.010708698071539402,
57
+ 0.06966347992420197,
58
+ 0.49774089455604553
59
+ ],
60
+ "q01": [
61
+ -0.1645936336517334,
62
+ -0.21226087988615036,
63
+ -0.2664332183122635,
64
+ -0.1527675679922104,
65
+ -0.02410040438175201,
66
+ -0.154551212310791,
67
+ 0.0
68
+ ],
69
+ "q99": [
70
+ 0.21269720268249515,
71
+ 0.21668597954511637,
72
+ 0.3531587926626205,
73
+ 0.18083614184856417,
74
+ 0.03492184810638427,
75
+ 0.21823061800003052,
76
+ 0.9998
77
+ ]
78
+ }
79
+ }
80
+ }
checkpoints/25000/metadata.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ef04082116ec930da8cf0648a0528ac7199222c539f3077d97a587caac5bcb2
3
+ size 4019
checkpoints/25000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdcaeb60581a29622555f00be244828e006809a8f7622a129895d27dd13cd460
3
+ size 7011543960
checkpoints/30000/assets/ur5_lab_test_tube_camera_shifts/norm_stats.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "norm_stats": {
3
+ "state": {
4
+ "mean": [
5
+ -3.340229034423828,
6
+ -0.993720531463623,
7
+ 1.4748752117156982,
8
+ -2.027818441390991,
9
+ -1.5979795455932617,
10
+ 4.608609199523926,
11
+ 0.5474765300750732
12
+ ],
13
+ "std": [
14
+ 0.19318173825740814,
15
+ 0.14630725979804993,
16
+ 0.2504045069217682,
17
+ 0.11725258827209473,
18
+ 0.0358712300658226,
19
+ 0.20255139470100403,
20
+ 0.49774089455604553
21
+ ],
22
+ "q01": [
23
+ -3.7030182856559755,
24
+ -1.2474105840682983,
25
+ 0.7992883544683457,
26
+ -2.24708842587471,
27
+ -1.7682025527954102,
28
+ 4.231052602767944,
29
+ 0.0
30
+ ],
31
+ "q99": [
32
+ -3.0268489632606506,
33
+ -0.5849727642059327,
34
+ 1.865938720214367,
35
+ -1.7351905375003815,
36
+ -1.5186957674026489,
37
+ 4.9647599239349365,
38
+ 0.9998
39
+ ]
40
+ },
41
+ "actions": {
42
+ "mean": [
43
+ 0.016937920823693275,
44
+ -0.004969933535903692,
45
+ 0.009962701238691807,
46
+ -0.001688019372522831,
47
+ 0.0012489908840507269,
48
+ 0.018919125199317932,
49
+ 0.5474765300750732
50
+ ],
51
+ "std": [
52
+ 0.06978615373373032,
53
+ 0.06991613656282425,
54
+ 0.09595422446727753,
55
+ 0.059662021696567535,
56
+ 0.010708698071539402,
57
+ 0.06966347992420197,
58
+ 0.49774089455604553
59
+ ],
60
+ "q01": [
61
+ -0.1645936336517334,
62
+ -0.21226087988615036,
63
+ -0.2664332183122635,
64
+ -0.1527675679922104,
65
+ -0.02410040438175201,
66
+ -0.154551212310791,
67
+ 0.0
68
+ ],
69
+ "q99": [
70
+ 0.21269720268249515,
71
+ 0.21668597954511637,
72
+ 0.3531587926626205,
73
+ 0.18083614184856417,
74
+ 0.03492184810638427,
75
+ 0.21823061800003052,
76
+ 0.9998
77
+ ]
78
+ }
79
+ }
80
+ }
checkpoints/30000/metadata.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:168b76983708d6d76584dfdfca736609cd2a3bf9db9decb8446109573a95f20d
3
+ size 4019
checkpoints/30000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4a4f2f2e61894e10b52d72a8ce1d4a75d5f6916c032d938a77d03eb105acd93
3
+ size 7011543960
config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "action_dim": 32,
3
+ "action_horizon": 50,
4
+ "paligemma_variant": "gemma_2b",
5
+ "action_expert_variant": "gemma_300m",
6
+ "precision": "bfloat16"
7
+ }
model_architecture_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_family": "pi0",
3
+ "framework": "pytorch",
4
+ "dtype": "bfloat16",
5
+ "paligemma_variant": "gemma_2b",
6
+ "action_expert_variant": "gemma_300m",
7
+ "action_dim": 32,
8
+ "action_horizon": 50,
9
+ "max_token_len": 48,
10
+ "pi05": false,
11
+ "discrete_state_input": false,
12
+ "pose_enc_type": "null",
13
+ "ray_enc_type": false,
14
+ "view_enc_type": false,
15
+ "cross_view": {
16
+ "type": "none"
17
+ },
18
+ "disable_geometric_augs": true,
19
+ "action_loss_weight": 1.0,
20
+ "aux_point_head": {
21
+ "enabled": false
22
+ },
23
+ "ray_embed_pi3x_init_path": null,
24
+ "ray_embed_pi3x_init_scale": 1.0
25
+ }
training_config_summary.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repo_name": "Pi0-real-robot",
3
+ "train_config_name": "pi0_ur5_real_robot_pytorch_baseline",
4
+ "exp_name": "pi0_ur5_real_robot_pytorch_baseline_v1",
5
+ "dataset_path": "/scratch/yz11445/real_robot_data/ur5_lab_test_tube_camera_shifts",
6
+ "dataset_repo_id": "ur5_lab_test_tube_camera_shifts",
7
+ "norm_stats_source": "/scratch/yz11445/pi0_ur5_real_robot/ur5_lab_test_tube_camera_shifts",
8
+ "checkpoint_base_dir": "/scratch/yz11445/tmp/openpi_cam/checkpoints",
9
+ "base_model_path": "/scratch/yz11445/pi0_base",
10
+ "init_weights_path": "/scratch/yz11445/pi0_base",
11
+ "num_gpus": 4,
12
+ "batch_size": 32,
13
+ "num_train_steps": 30000,
14
+ "save_interval": 1000,
15
+ "keep_period": 5000,
16
+ "completed_checkpoint_steps": [
17
+ 5000,
18
+ 10000,
19
+ 15000,
20
+ 20000,
21
+ 25000,
22
+ 30000
23
+ ],
24
+ "base_camera_key": "observation.images.context_top_rgb",
25
+ "wrist_camera_key": "observation.images.wrist_right_rgb",
26
+ "prompt_from_task": true,
27
+ "delta_actions_first_6_joints_only": true,
28
+ "wandb_project": "openpi_cam_real_robot",
29
+ "wandb_entity": "NYU-robotics",
30
+ "wandb_run_id": "31wxo1lp",
31
+ "serve_command_example": "uv run scripts/serve_policy.py policy:checkpoint --policy.config=pi0_ur5_real_robot_pytorch_baseline --policy.dir=/path/to/Pi0-real-robot/checkpoints/30000",
32
+ "train_command_reference": "uv run python scripts/train_pytorch.py pi0_ur5_real_robot_pytorch_baseline --exp_name ur5_real_robot_baseline_v1",
33
+ "norm_stats_command_reference": "uv run scripts/compute_norm_stats.py --config-name pi0_ur5_real_robot_pytorch_baseline"
34
+ }
wandb_id.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 31wxo1lp