BlockStacking_wb_icub_50 / tokenizer /chat_template.jinja
mklovin's picture
Upload SmolVLA policy (stacking_mj_wb, step 20000)
b1d9deb verified
Raw History Blame Contribute Delete
403 Bytes
<|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>
{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}