Robotics
LeRobot
Safetensors
smolvla
maedmatt commited on
Commit
826333f
·
verified ·
1 Parent(s): 8682563

Upload DataProcessorPipeline

Browse files
policy_preprocessor.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {
8
+ "observation.images.front": "observation.images.camera2"
9
+ }
10
+ }
11
+ },
12
+ {
13
+ "registry_name": "to_batch_processor",
14
+ "config": {}
15
+ },
16
+ {
17
+ "registry_name": "smolvla_new_line_processor",
18
+ "config": {}
19
+ },
20
+ {
21
+ "registry_name": "tokenizer_processor",
22
+ "config": {
23
+ "max_length": 48,
24
+ "task_key": "task",
25
+ "padding_side": "right",
26
+ "padding": "max_length",
27
+ "truncation": true,
28
+ "tokenizer_name": "tokenizer"
29
+ },
30
+ "artifacts": {
31
+ "tokenizer_name": "tokenizer"
32
+ }
33
+ },
34
+ {
35
+ "registry_name": "device_processor",
36
+ "config": {
37
+ "device": "cuda",
38
+ "float_dtype": null
39
+ }
40
+ },
41
+ {
42
+ "registry_name": "normalizer_processor",
43
+ "config": {
44
+ "eps": 1e-08,
45
+ "features": {
46
+ "observation.state": {
47
+ "type": "STATE",
48
+ "shape": [
49
+ 6
50
+ ]
51
+ },
52
+ "observation.images.camera1": {
53
+ "type": "VISUAL",
54
+ "shape": [
55
+ 3,
56
+ 256,
57
+ 256
58
+ ]
59
+ },
60
+ "observation.images.camera2": {
61
+ "type": "VISUAL",
62
+ "shape": [
63
+ 3,
64
+ 256,
65
+ 256
66
+ ]
67
+ },
68
+ "observation.images.camera3": {
69
+ "type": "VISUAL",
70
+ "shape": [
71
+ 3,
72
+ 256,
73
+ 256
74
+ ]
75
+ },
76
+ "action": {
77
+ "type": "ACTION",
78
+ "shape": [
79
+ 6
80
+ ]
81
+ }
82
+ },
83
+ "norm_map": {
84
+ "VISUAL": "IDENTITY",
85
+ "STATE": "MEAN_STD",
86
+ "ACTION": "MEAN_STD"
87
+ }
88
+ },
89
+ "state_file": "policy_preprocessor_step_5_normalizer_processor.safetensors"
90
+ }
91
+ ]
92
+ }
policy_preprocessor_step_5_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f7f569cd06b0682b5c71b05d9ae74822af9beeb57186621b3f42d516f4e3010
3
+ size 6560
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
+ }