Closed Xuan-ZW closed 1 year ago
我这边修改strict=False后输出的结果是很差的,基本等同乱码,是不是不太能这么搞,感觉就像参数错乱了
比如: input 影响黄金价格的因素有哪些? output 等等。等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,等等,474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747
https://github.com/ssbuild/chatglm_finetuning/blob/089404c0ffd59ea5c9e2d889ccb4c48f866c867c/infer_finetuning.py#L40 lm_head 是共享权重 ,修改 strict = False 即可