Med-ChatGLM icon indicating copy to clipboard operation
Med-ChatGLM copied to clipboard

运行Python infer.py 报错 value 130001 not in list ,切换版本后,运行微调报错 value 150001 not in list 这该如何解决

Open GHremedy opened this issue 9 months ago • 2 comments

GHremedy avatar May 14 '24 07:05 GHremedy

尝试 修改 modeling_chatglm.py 文件的831行,975行,如下: MASK, gMASK = 150000, 150001

lpmld avatar May 20 '24 03:05 lpmld

我按照文档回滚到指定解决问题的代码。 MASK, gMASK = 130000, 130001 mask_token = MASK if MASK in input_ids else gMASK use_gmask = False if MASK in input_ids else gMASK seq = input_ids[0].tolist() mask_position = seq.index(mask_token) 运行还是报错:ValueError: 130001 is not in list

shihzenq avatar Jul 22 '24 13:07 shihzenq