Upload google_translategemma-4b-it_2.txt with huggingface_hub
Browse files26 unmodified lines27282930303132333 unmodified lines373839404142434440414243444550514647484954505152538 unmodified lines6263646965666726 unmodified lines
ERROR: Traceback (most recent call last): File "/tmp/google_translategemma-4b-it_2s9IIpf.py", line 37, in <module> File "/tmp/google_translategemma-4b-it_2pFe5GR.py", line 37, in <module> inputs = processor.apply_chat_template( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ messages,3 unmodified lines ^^^^^^^^^^^^^^^^^^^^ ).to(model.device) ^ File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/processing_utils.py", line 1675, in apply_chat_template File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/processing_utils.py", line 1792, in apply_chat_template prompt, generation_indices = render_jinja_template( ~~~~~~~~~~~~~~~~~~~~~^ conversations=conversations, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... **self.tokenizer.special_tokens_map, # tokenizer special tokens are used by some templates ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ **special_tokens_map, # tokenizer special tokens are used by some templates ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 539, in render_jinja_template File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 537, in render_jinja_template rendered_chat = compiled_template.render( messages=chat, ...<3 lines>...8 unmodified lines File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/jinja2/sandbox.py", line 401, in call return __context.call(__obj, *args, **kwargs) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 447, in raise_exception File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 445, in raise_exception raise jinja2.exceptions.TemplateError(message)jinja2.exceptions.TemplateError: User role must provide `content` as an iterable with exactly one item. That item must be a `mapping(type:'text' | 'image', source_lang_code:string, target_lang_code:string, text:string | none, image:string | none)`.google_translategemma-4b-it_2.txt+6-10