liucongg / ChatGLM-Finetuning

基于ChatGLM-6B、ChatGLM2-6B、ChatGLM3-6B模型,进行下游具体任务微调,涉及Freeze、Lora、P-tuning、全参微调等

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

解决 AttributeError: 'ChatGLMTokenizer' object has no attribute 'tokenizer'

gangtie95 opened this issue · comments

运行单卡 ChatGLM2的时候,报这个错
报错 “AttributeError: 'ChatGLMTokenizer' object has no attribute 'tokenizer'”
问题解决,去ChatGLM2源码里面更新一下这个文件tokenization_chatglm.py的代码就好了

因为官方代码更新啦,对应修改即可,项目中已经增加说明