File size: 1,258 Bytes
b7868c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Traceback (most recent call last):
  File "/tmp/openbmb_MiniCPM4-0.5B_0DzE7Y5.py", line 17, in <module>
    pipe(messages)
    ~~~~^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 295, in __call__
    return super().__call__(Chat(text_inputs), **kwargs)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1431, in __call__
    return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1437, in run_single
    model_inputs = self.preprocess(inputs, **preprocess_params)
  File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 331, in preprocess
    inputs = self.tokenizer.apply_chat_template(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'