Tele-AI/TeleChat2

TeleChat2-3B推理示例报错:AttributeError: 'Telechat2Tokenizer' object has no attribute 'apply_chat_template'

Closed this issue · 1 comments

Traceback (most recent call last):
File "/home/hh/TeleChat2/inference_telechat/telechat_infer_demo.py", line 12, in
text = tokenizer.apply_chat_template(messages,
AttributeError: 'Telechat2Tokenizer' object has no attribute 'apply_chat_template'

Deepspeed for Telechat 的README.md的Transformers是4.30.0,更新到main下的requirement.txt的transformers==4.45.0,报错解决