Robotics
LeRobot
Safetensors
smolvla
felsager commited on
Commit
b477516
·
verified ·
1 Parent(s): 4301864

Upload DataProcessorPipeline

Browse files
policy_preprocessor.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "smolvla_new_line_processor",
16
+ "config": {}
17
+ },
18
+ {
19
+ "registry_name": "tokenizer_processor",
20
+ "config": {
21
+ "max_length": 48,
22
+ "task_key": "task",
23
+ "padding_side": "right",
24
+ "padding": "max_length",
25
+ "truncation": true,
26
+ "tokenizer_name": "tokenizer"
27
+ },
28
+ "artifacts": {
29
+ "tokenizer_name": "tokenizer"
30
+ }
31
+ },
32
+ {
33
+ "registry_name": "device_processor",
34
+ "config": {
35
+ "device": "cuda",
36
+ "float_dtype": null
37
+ }
38
+ },
39
+ {
40
+ "registry_name": "relative_ee_actions",
41
+ "config": {
42
+ "enabled": true,
43
+ "state_frame": 0
44
+ }
45
+ },
46
+ {
47
+ "registry_name": "ee_state",
48
+ "config": {
49
+ "enabled": true
50
+ }
51
+ },
52
+ {
53
+ "registry_name": "normalizer_processor",
54
+ "config": {
55
+ "eps": 1e-08,
56
+ "features": {
57
+ "observation.state": {
58
+ "type": "STATE",
59
+ "shape": [
60
+ 10
61
+ ]
62
+ },
63
+ "observation.images.top": {
64
+ "type": "VISUAL",
65
+ "shape": [
66
+ 3,
67
+ 480,
68
+ 640
69
+ ]
70
+ },
71
+ "observation.images.wrist": {
72
+ "type": "VISUAL",
73
+ "shape": [
74
+ 3,
75
+ 480,
76
+ 640
77
+ ]
78
+ },
79
+ "observation.images.empty_camera_0": {
80
+ "type": "VISUAL",
81
+ "shape": [
82
+ 3,
83
+ 480,
84
+ 640
85
+ ]
86
+ },
87
+ "action": {
88
+ "type": "ACTION",
89
+ "shape": [
90
+ 10
91
+ ]
92
+ }
93
+ },
94
+ "norm_map": {
95
+ "VISUAL": "IDENTITY",
96
+ "STATE": "MEAN_STD",
97
+ "ACTION": "MEAN_STD"
98
+ }
99
+ },
100
+ "state_file": "policy_preprocessor_step_7_normalizer_processor.safetensors"
101
+ }
102
+ ]
103
+ }
policy_preprocessor_step_7_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:393d9a359b3e87a646938f32eff2c8e4d4e53e755eb3b8897dd3d342058d215a
3
+ size 10880
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ <|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>
2
+ {% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|im_start|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "end_of_utterance_token": "<end_of_utterance>",
7
+ "eos_token": "<end_of_utterance>",
8
+ "errors": "replace",
9
+ "fake_image_token": "<fake_token_around_image>",
10
+ "global_image_token": "<global-img>",
11
+ "image_token": "<image>",
12
+ "is_local": false,
13
+ "legacy": false,
14
+ "model_max_length": 8192,
15
+ "model_specific_special_tokens": {
16
+ "end_of_utterance_token": "<end_of_utterance>",
17
+ "fake_image_token": "<fake_token_around_image>",
18
+ "global_image_token": "<global-img>",
19
+ "image_token": "<image>"
20
+ },
21
+ "pad_token": "<|im_end|>",
22
+ "processor_class": "SmolVLMProcessor",
23
+ "tokenizer_class": "GPT2Tokenizer",
24
+ "truncation_side": "left",
25
+ "unk_token": "<|endoftext|>",
26
+ "vocab_size": 49152
27
+ }