File size: 1,254 Bytes
28f39d3
c4e393e
28f39d3
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'