custom_code_execution_files / ERNIE-4.5-0.3B-PT_0.txt
ariG23498's picture
ariG23498 HF Staff
Upload ERNIE-4.5-0.3B-PT_0.txt with huggingface_hub
c4e393e verified
Traceback (most recent call last):
File "/tmp/ERNIE-4.5-0.3B-PT_0KLQwjq.py", line 17, in <module>
pipe(messages)
~~~~^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/61531d63445076a1/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 309, in __call__
return super().__call__(Chat(text_inputs), **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/61531d63445076a1/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1464, in __call__
return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/61531d63445076a1/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1470, in run_single
model_inputs = self.preprocess(inputs, **preprocess_params)
File "/tmp/.cache/uv/environments-v2/61531d63445076a1/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 345, in preprocess
inputs = self.tokenizer.apply_chat_template(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'