Med-ChatGLM
Med-ChatGLM copied to clipboard
运行Python infer.py 报错 value 130001 not in list ,切换版本后,运行微调报错 value 150001 not in list 这该如何解决
尝试 修改 modeling_chatglm.py 文件的831行,975行,如下: MASK, gMASK = 150000, 150001
我按照文档回滚到指定解决问题的代码。 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