TeleChat2-3B推理示例报错:AttributeError: 'Telechat2Tokenizer' object has no attribute 'apply_chat_template'
Closed this issue · 1 comments
yechaoying commented
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'
yechaoying commented
Deepspeed for Telechat 的README.md的Transformers是4.30.0,更新到main下的requirement.txt的transformers==4.45.0,报错解决