SCIR-HI / Med-ChatGLM

Repo for Chinese Medical ChatGLM 基于中文医学知识的ChatGLM指令微调
Apache License 2.0
961 stars 153 forks source link

windows下会出现以下报错: #21

Closed wudajun7509 closed 1 year ago

wudajun7509 commented 1 year ago

File "C:\python code\Med-ChatGLM-main\modeling_chatglm.py", line 979, in prepare_inputs_for_generation mask_position = seq.index(mask_token) ValueError: 130001 is not in list

Zhang-star-master commented 1 year ago

linux也有这个问题

fxb392 commented 1 year ago

咋解决的?

wudajun7509 commented 1 year ago

还没解决呢...

fxb392 commented 1 year ago

MASK, gMASK = 150000, 150001就好了

s65b40 commented 1 year ago

可能大家使用的相关依赖版本不同,当前仓库中的代码的是MASK, gMASK = 130000, 130001,如报错建议大家回退至第一版模型参数