Robotics
LeRobot
Safetensors
reward-model
temporal_siglip_value_function
lilkm HF Staff commited on
Commit
c9cfd7b
·
verified ·
1 Parent(s): 1a029bd

Upload reward model weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +57 -0
  2. config.json +60 -0
  3. model.safetensors +3 -0
  4. train_config.json +213 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lilkm/stackblocks_recap_all_for_vf_v3
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: temporal_siglip_value_function
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - reward-model
10
+ - robotics
11
+ - temporal_siglip_value_function
12
+ ---
13
+
14
+ # Reward Model Card for temporal_siglip_value_function
15
+
16
+ <!-- Provide a quick summary of what the reward model is/does. -->
17
+
18
+
19
+ _Reward model type not recognized — please update this template._
20
+
21
+
22
+ This reward model has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
23
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
24
+
25
+ ---
26
+
27
+ ## How to Get Started with the Reward Model
28
+
29
+ ### Train from scratch
30
+
31
+ ```bash
32
+ lerobot-train \
33
+ --dataset.repo_id=${HF_USER}/<dataset> \
34
+ --reward_model.type=temporal_siglip_value_function \
35
+ --output_dir=outputs/train/<desired_reward_model_repo_id> \
36
+ --job_name=lerobot_reward_training \
37
+ --reward_model.device=cuda \
38
+ --reward_model.repo_id=${HF_USER}/<desired_reward_model_repo_id> \
39
+ --wandb.enable=true
40
+ ```
41
+
42
+ _Writes checkpoints to `outputs/train/<desired_reward_model_repo_id>/checkpoints/`._
43
+
44
+ ### Load the reward model in Python
45
+
46
+ ```python
47
+ from lerobot.rewards import make_reward_model
48
+
49
+ reward_model = make_reward_model(pretrained_path="<hf_user>/<reward_model_repo_id>")
50
+ reward = reward_model.compute_reward(batch)
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Model Details
56
+
57
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "temporal_siglip_value_function",
3
+ "input_features": {
4
+ "observation.state": {
5
+ "type": "STATE",
6
+ "shape": [
7
+ 6
8
+ ]
9
+ },
10
+ "observation.images.top": {
11
+ "type": "VISUAL",
12
+ "shape": [
13
+ 3,
14
+ 480,
15
+ 640
16
+ ]
17
+ },
18
+ "observation.images.wrist": {
19
+ "type": "VISUAL",
20
+ "shape": [
21
+ 3,
22
+ 480,
23
+ 640
24
+ ]
25
+ }
26
+ },
27
+ "output_features": {},
28
+ "device": "cuda",
29
+ "pretrained_path": null,
30
+ "pretrained_revision": null,
31
+ "push_to_hub": true,
32
+ "repo_id": "lilkm/vf_stackblocks_temporal_siglip_v2_fixed",
33
+ "license": null,
34
+ "tags": null,
35
+ "private": null,
36
+ "siglip_path": "google/siglip2-so400m-patch14-384",
37
+ "image_resolution": [
38
+ 384,
39
+ 384
40
+ ],
41
+ "tokenizer_max_length": 64,
42
+ "history_steps": 6,
43
+ "frame_gap": 30,
44
+ "state_key": "observation.state",
45
+ "state_dim": 32,
46
+ "hidden_size": 512,
47
+ "num_layers": 4,
48
+ "num_heads": 8,
49
+ "dropout": 0.1,
50
+ "num_value_bins": 201,
51
+ "value_support_min": -1.0,
52
+ "value_support_max": 0.0,
53
+ "hl_gauss_sigma_ratio": 0.75,
54
+ "target_method": "dirac_delta",
55
+ "use_one_hot_terminal": true,
56
+ "normalization_mapping": {
57
+ "VISUAL": "IDENTITY",
58
+ "STATE": "MEAN_STD"
59
+ }
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:260ae1b15a3ab26018a1bfa8540ac9778fd10fe9ca69128bce1ff8c67834b54c
3
+ size 4604352476
train_config.json ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lilkm/stackblocks_recap_all_for_vf_v3",
4
+ "root": null,
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": "pyav",
80
+ "return_uint8": false,
81
+ "depth_output_unit": "mm",
82
+ "streaming": false,
83
+ "eval_split": 0.1
84
+ },
85
+ "env": null,
86
+ "policy": null,
87
+ "reward_model": {
88
+ "type": "temporal_siglip_value_function",
89
+ "input_features": {
90
+ "observation.state": {
91
+ "type": "STATE",
92
+ "shape": [
93
+ 6
94
+ ]
95
+ },
96
+ "observation.images.top": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 480,
101
+ 640
102
+ ]
103
+ },
104
+ "observation.images.wrist": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 480,
109
+ 640
110
+ ]
111
+ }
112
+ },
113
+ "output_features": {},
114
+ "device": "cuda",
115
+ "pretrained_path": null,
116
+ "pretrained_revision": null,
117
+ "push_to_hub": true,
118
+ "repo_id": "lilkm/vf_stackblocks_temporal_siglip_v2_fixed",
119
+ "license": null,
120
+ "tags": null,
121
+ "private": null,
122
+ "siglip_path": "google/siglip2-so400m-patch14-384",
123
+ "image_resolution": [
124
+ 384,
125
+ 384
126
+ ],
127
+ "tokenizer_max_length": 64,
128
+ "history_steps": 6,
129
+ "frame_gap": 30,
130
+ "state_key": "observation.state",
131
+ "state_dim": 32,
132
+ "hidden_size": 512,
133
+ "num_layers": 4,
134
+ "num_heads": 8,
135
+ "dropout": 0.1,
136
+ "num_value_bins": 201,
137
+ "value_support_min": -1.0,
138
+ "value_support_max": 0.0,
139
+ "hl_gauss_sigma_ratio": 0.75,
140
+ "target_method": "dirac_delta",
141
+ "use_one_hot_terminal": true,
142
+ "normalization_mapping": {
143
+ "VISUAL": "IDENTITY",
144
+ "STATE": "MEAN_STD"
145
+ }
146
+ },
147
+ "output_dir": "outputs/vf_stackblocks_temporal_siglip_v2_fixed",
148
+ "job_name": "vf_stackblocks_temporal_siglip_v2_fixed",
149
+ "resume": false,
150
+ "seed": 1000,
151
+ "cudnn_deterministic": false,
152
+ "num_workers": 4,
153
+ "batch_size": 4,
154
+ "prefetch_factor": 4,
155
+ "persistent_workers": true,
156
+ "steps": 2000,
157
+ "env_eval_freq": -1,
158
+ "log_freq": 50,
159
+ "eval_steps": 250,
160
+ "max_eval_samples": 2000,
161
+ "tolerance_s": 0.0001,
162
+ "save_checkpoint": true,
163
+ "save_freq": 1000,
164
+ "use_policy_training_preset": true,
165
+ "optimizer": {
166
+ "type": "adamw",
167
+ "lr": 0.0001,
168
+ "weight_decay": 0.0001,
169
+ "grad_clip_norm": 1.0,
170
+ "betas": [
171
+ 0.9,
172
+ 0.999
173
+ ],
174
+ "eps": 1e-08
175
+ },
176
+ "scheduler": {
177
+ "type": "cosine_decay_with_warmup",
178
+ "num_warmup_steps": 500,
179
+ "num_decay_steps": 40000,
180
+ "peak_lr": 0.0001,
181
+ "decay_lr": 1e-06
182
+ },
183
+ "eval": {
184
+ "n_episodes": 50,
185
+ "batch_size": 50,
186
+ "use_async_envs": true,
187
+ "recording": false,
188
+ "recording_repo_id": null,
189
+ "recording_private": false
190
+ },
191
+ "wandb": {
192
+ "enable": true,
193
+ "disable_artifact": true,
194
+ "project": "recap-vf",
195
+ "entity": null,
196
+ "notes": null,
197
+ "run_id": "75pq8d77",
198
+ "mode": null,
199
+ "add_tags": true
200
+ },
201
+ "peft": null,
202
+ "job": {
203
+ "target": null,
204
+ "image": "huggingface/lerobot-gpu:latest",
205
+ "timeout": "2d",
206
+ "detach": false,
207
+ "tags": []
208
+ },
209
+ "save_checkpoint_to_hub": false,
210
+ "sample_weighting": null,
211
+ "rename_map": {},
212
+ "checkpoint_path": null
213
+ }