yuanzhoulvpi2017 / zero_nlp

中文nlp解决方案(大模型、数据、模型、训练、推理)
MIT License
2.95k stars 363 forks source link

'ChatGLM Tokenizer' object has no attribute 'eos_token_id' #67

Closed OneStepAndTwoSteps closed 1 year ago

OneStepAndTwoSteps commented 1 year ago

是chatglm更新的太快了吗,早上还可以正常运行的代码下午就报错了

gaoyangthu commented 1 year ago

同样的报错,请问如何修正?

yuanzhoulvpi2017 commented 1 year ago

这个好像是官方代码问题。我看昨晚上,代码又更新了。你再试一试?

截屏2023-04-12 10 21 12
valkryhx commented 1 year ago

今天下午尝试chatglm-6b-int4 同样有这个问题

yuanzhoulvpi2017 commented 1 year ago

哪一个文件夹下的问题,报给我一下。

liyanallen commented 1 year ago
1681732307816 1681732359592
liyanallen commented 1 year ago

thank u very much

yuanzhoulvpi2017 commented 1 year ago

留意一下,我04-16发布的版本https://github.com/yuanzhoulvpi2017/zero_nlp/tree/main/simple_thu_chatglm6b#04-16-%E7%89%88%E6%9C%AC 我自己维护了一套chatglm6b模型

liyanallen commented 1 year ago

留意一下,我04-16发布的版本https://github.com/yuanzhoulvpi2017/zero_nlp/tree/main/simple_thu_chatglm6b#04-16-%E7%89%88%E6%9C%AC 我自己维护了一套chatglm6b模型

It does work, thank u very much