Upload google_translategemma-4b-it_2.txt with huggingface_hub
Browse files
google_translategemma-4b-it_2.txt
CHANGED
|
@@ -27,7 +27,7 @@ print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
|
|
| 27 |
|
| 28 |
ERROR:
|
| 29 |
Traceback (most recent call last):
|
| 30 |
-
File "/tmp/google_translategemma-4b-
|
| 31 |
inputs = processor.apply_chat_template(
|
| 32 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 33 |
messages,
|
|
@@ -37,21 +37,17 @@ Traceback (most recent call last):
|
|
| 37 |
^^^^^^^^^^^^^^^^^^^^
|
| 38 |
).to(model.device)
|
| 39 |
^
|
| 40 |
-
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/
|
| 41 |
-
return func(*args, **kwargs)
|
| 42 |
-
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func
|
| 43 |
-
return func(*args, **kwargs)
|
| 44 |
-
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/processing_utils.py", line 1675, in apply_chat_template
|
| 45 |
prompt, generation_indices = render_jinja_template(
|
| 46 |
~~~~~~~~~~~~~~~~~~~~~^
|
| 47 |
conversations=conversations,
|
| 48 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 49 |
...<2 lines>...
|
| 50 |
-
**
|
| 51 |
-
|
| 52 |
)
|
| 53 |
^
|
| 54 |
-
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line
|
| 55 |
rendered_chat = compiled_template.render(
|
| 56 |
messages=chat,
|
| 57 |
...<3 lines>...
|
|
@@ -66,6 +62,6 @@ Traceback (most recent call last):
|
|
| 66 |
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/jinja2/sandbox.py", line 401, in call
|
| 67 |
return __context.call(__obj, *args, **kwargs)
|
| 68 |
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
|
| 69 |
-
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line
|
| 70 |
raise jinja2.exceptions.TemplateError(message)
|
| 71 |
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)`.
|
|
|
|
| 27 |
|
| 28 |
ERROR:
|
| 29 |
Traceback (most recent call last):
|
| 30 |
+
File "/tmp/google_translategemma-4b-it_2pFe5GR.py", line 37, in <module>
|
| 31 |
inputs = processor.apply_chat_template(
|
| 32 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 33 |
messages,
|
|
|
|
| 37 |
^^^^^^^^^^^^^^^^^^^^
|
| 38 |
).to(model.device)
|
| 39 |
^
|
| 40 |
+
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/processing_utils.py", line 1792, in apply_chat_template
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
prompt, generation_indices = render_jinja_template(
|
| 42 |
~~~~~~~~~~~~~~~~~~~~~^
|
| 43 |
conversations=conversations,
|
| 44 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 45 |
...<2 lines>...
|
| 46 |
+
**special_tokens_map, # tokenizer special tokens are used by some templates
|
| 47 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 48 |
)
|
| 49 |
^
|
| 50 |
+
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 537, in render_jinja_template
|
| 51 |
rendered_chat = compiled_template.render(
|
| 52 |
messages=chat,
|
| 53 |
...<3 lines>...
|
|
|
|
| 62 |
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/jinja2/sandbox.py", line 401, in call
|
| 63 |
return __context.call(__obj, *args, **kwargs)
|
| 64 |
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
|
| 65 |
+
File "/tmp/.cache/uv/environments-v2/472dbc3769380f36/lib/python3.13/site-packages/transformers/utils/chat_template_utils.py", line 445, in raise_exception
|
| 66 |
raise jinja2.exceptions.TemplateError(message)
|
| 67 |
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)`.
|