lilkm HF Staff commited on
Commit
704d7b2
·
verified ·
1 Parent(s): 9eaaea5

Upload reward model weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +57 -0
  2. config.json +32 -0
  3. model.safetensors +3 -0
  4. train_config.json +185 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lilkm/stackblocks_recap_all_for_vf
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: distributional_value_function
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - reward-model
9
+ - robotics
10
+ - distributional_value_function
11
+ - lerobot
12
+ ---
13
+
14
+ # Reward Model Card for distributional_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=distributional_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,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "distributional_value_function",
3
+ "input_features": {},
4
+ "output_features": {},
5
+ "device": "cuda",
6
+ "pretrained_path": null,
7
+ "pretrained_revision": null,
8
+ "push_to_hub": true,
9
+ "repo_id": "lilkm/vf_stackblocks_iter1_v2",
10
+ "license": null,
11
+ "tags": null,
12
+ "private": null,
13
+ "paligemma_variant": "gemma_2b",
14
+ "num_hidden_layers": 6,
15
+ "num_vision_layers": 13,
16
+ "num_value_bins": 201,
17
+ "value_support_min": -1.0,
18
+ "value_support_max": 0.0,
19
+ "hl_gauss_sigma_ratio": 5.0,
20
+ "target_method": "hl_gauss",
21
+ "use_one_hot_terminal": true,
22
+ "image_resolution": [
23
+ 224,
24
+ 224
25
+ ],
26
+ "tokenizer_max_length": 64,
27
+ "init_from_actor_path": "lerobot/pi05_base",
28
+ "normalization_mapping": {
29
+ "VISUAL": "IDENTITY",
30
+ "STATE": "IDENTITY"
31
+ }
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3aaf15dab9ca666ff1e0acbbd02cf48bf8479dbc8e106b49c973c15a2225b88e
3
+ size 5556600948
train_config.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lilkm/stackblocks_recap_all_for_vf",
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.0
84
+ },
85
+ "env": null,
86
+ "policy": null,
87
+ "reward_model": {
88
+ "type": "distributional_value_function",
89
+ "input_features": {},
90
+ "output_features": {},
91
+ "device": "cuda",
92
+ "pretrained_path": null,
93
+ "pretrained_revision": null,
94
+ "push_to_hub": true,
95
+ "repo_id": "lilkm/vf_stackblocks_iter1_v2",
96
+ "license": null,
97
+ "tags": null,
98
+ "private": null,
99
+ "paligemma_variant": "gemma_2b",
100
+ "num_hidden_layers": 6,
101
+ "num_vision_layers": 13,
102
+ "num_value_bins": 201,
103
+ "value_support_min": -1.0,
104
+ "value_support_max": 0.0,
105
+ "hl_gauss_sigma_ratio": 5.0,
106
+ "target_method": "hl_gauss",
107
+ "use_one_hot_terminal": true,
108
+ "image_resolution": [
109
+ 224,
110
+ 224
111
+ ],
112
+ "tokenizer_max_length": 64,
113
+ "init_from_actor_path": "lerobot/pi05_base",
114
+ "normalization_mapping": {
115
+ "VISUAL": "IDENTITY",
116
+ "STATE": "IDENTITY"
117
+ }
118
+ },
119
+ "output_dir": "outputs/vf_stackblocks_iter1_v2",
120
+ "job_name": "vf_stackblocks_v2",
121
+ "resume": false,
122
+ "seed": 1000,
123
+ "cudnn_deterministic": false,
124
+ "num_workers": 4,
125
+ "batch_size": 32,
126
+ "prefetch_factor": 4,
127
+ "persistent_workers": true,
128
+ "steps": 20000,
129
+ "env_eval_freq": -1,
130
+ "log_freq": 50,
131
+ "eval_steps": 0,
132
+ "max_eval_samples": 0,
133
+ "tolerance_s": 0.0001,
134
+ "save_checkpoint": true,
135
+ "save_freq": 5000,
136
+ "use_policy_training_preset": true,
137
+ "optimizer": {
138
+ "type": "adamw",
139
+ "lr": 0.0003,
140
+ "weight_decay": 0.0001,
141
+ "grad_clip_norm": 1.0,
142
+ "betas": [
143
+ 0.9,
144
+ 0.999
145
+ ],
146
+ "eps": 1e-08
147
+ },
148
+ "scheduler": {
149
+ "type": "cosine_decay_with_warmup",
150
+ "num_warmup_steps": 500,
151
+ "num_decay_steps": 50000,
152
+ "peak_lr": 0.0003,
153
+ "decay_lr": 1e-06
154
+ },
155
+ "eval": {
156
+ "n_episodes": 50,
157
+ "batch_size": 50,
158
+ "use_async_envs": true,
159
+ "recording": false,
160
+ "recording_repo_id": null,
161
+ "recording_private": false
162
+ },
163
+ "wandb": {
164
+ "enable": true,
165
+ "disable_artifact": true,
166
+ "project": "recap-vf",
167
+ "entity": null,
168
+ "notes": null,
169
+ "run_id": "jxq72rdw",
170
+ "mode": null,
171
+ "add_tags": true
172
+ },
173
+ "peft": null,
174
+ "job": {
175
+ "target": null,
176
+ "image": "huggingface/lerobot-gpu:latest",
177
+ "timeout": "2d",
178
+ "detach": false,
179
+ "tags": []
180
+ },
181
+ "save_checkpoint_to_hub": false,
182
+ "sample_weighting": null,
183
+ "rename_map": {},
184
+ "checkpoint_path": null
185
+ }