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
| 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": "longest",
|
| 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": "normalizer_processor",
|
| 41 |
+
"config": {
|
| 42 |
+
"eps": 1e-08,
|
| 43 |
+
"features": {
|
| 44 |
+
"observation.state.gripper_position": {
|
| 45 |
+
"type": "STATE",
|
| 46 |
+
"shape": [
|
| 47 |
+
1
|
| 48 |
+
]
|
| 49 |
+
},
|
| 50 |
+
"observation.state.cartesian_position": {
|
| 51 |
+
"type": "STATE",
|
| 52 |
+
"shape": [
|
| 53 |
+
6
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
"observation.state.joint_position": {
|
| 57 |
+
"type": "STATE",
|
| 58 |
+
"shape": [
|
| 59 |
+
7
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
"observation.state": {
|
| 63 |
+
"type": "STATE",
|
| 64 |
+
"shape": [
|
| 65 |
+
8
|
| 66 |
+
]
|
| 67 |
+
},
|
| 68 |
+
"observation.images.wrist_left": {
|
| 69 |
+
"type": "VISUAL",
|
| 70 |
+
"shape": [
|
| 71 |
+
3,
|
| 72 |
+
180,
|
| 73 |
+
320
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"observation.images.exterior_1_left": {
|
| 77 |
+
"type": "VISUAL",
|
| 78 |
+
"shape": [
|
| 79 |
+
3,
|
| 80 |
+
180,
|
| 81 |
+
320
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
"observation.images.exterior_2_left": {
|
| 85 |
+
"type": "VISUAL",
|
| 86 |
+
"shape": [
|
| 87 |
+
3,
|
| 88 |
+
180,
|
| 89 |
+
320
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
"action.gripper_position": {
|
| 93 |
+
"type": "ACTION",
|
| 94 |
+
"shape": [
|
| 95 |
+
1
|
| 96 |
+
]
|
| 97 |
+
},
|
| 98 |
+
"action.gripper_velocity": {
|
| 99 |
+
"type": "ACTION",
|
| 100 |
+
"shape": [
|
| 101 |
+
1
|
| 102 |
+
]
|
| 103 |
+
},
|
| 104 |
+
"action.cartesian_position": {
|
| 105 |
+
"type": "ACTION",
|
| 106 |
+
"shape": [
|
| 107 |
+
6
|
| 108 |
+
]
|
| 109 |
+
},
|
| 110 |
+
"action.cartesian_velocity": {
|
| 111 |
+
"type": "ACTION",
|
| 112 |
+
"shape": [
|
| 113 |
+
6
|
| 114 |
+
]
|
| 115 |
+
},
|
| 116 |
+
"action.joint_position": {
|
| 117 |
+
"type": "ACTION",
|
| 118 |
+
"shape": [
|
| 119 |
+
7
|
| 120 |
+
]
|
| 121 |
+
},
|
| 122 |
+
"action.joint_velocity": {
|
| 123 |
+
"type": "ACTION",
|
| 124 |
+
"shape": [
|
| 125 |
+
7
|
| 126 |
+
]
|
| 127 |
+
},
|
| 128 |
+
"action.original": {
|
| 129 |
+
"type": "ACTION",
|
| 130 |
+
"shape": [
|
| 131 |
+
7
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
"action": {
|
| 135 |
+
"type": "ACTION",
|
| 136 |
+
"shape": [
|
| 137 |
+
8
|
| 138 |
+
]
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"norm_map": {
|
| 142 |
+
"VISUAL": "IDENTITY",
|
| 143 |
+
"STATE": "MEAN_STD",
|
| 144 |
+
"ACTION": "MEAN_STD"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"state_file": "policy_preprocessor_step_5_normalizer_processor.safetensors"
|
| 148 |
+
}
|
| 149 |
+
]
|
| 150 |
+
}
|
policy_preprocessor_step_5_normalizer_processor.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3146562bd073762fdcba65d8c7fc27f65316efd8d4a3249a0a9ad282e422fc65
|
| 3 |
+
size 27672
|
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 |
+
}
|