网上的搜索了,都不对,不符合我的要求。
项目背景:一个基于Chatglm的大模型,有ptuning的过程,目前不清楚到底是用的1还是2,作者单独搞了个src的目录,放置一些模型的参数文件。我挨个替换成1和2的都不对,卧槽,这是咋了?
- This IS NOT expected if you are initializing ChatGLMForConditionalGeneration from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Some weights of ChatGLMForConditionalGeneration were not initialized from the model checkpoint at demo/model/LexiLaw and are newly initialized: ['lm_head.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Traceback (most recent call last):
File "/data/g/LexiLaw/inference_ptuning.py", line 59, in <module>