Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GHremedy opened this issue May 14, 2024 · 2 comments

Comments

@GHremedy
Copy link

No description provided.

@lpmld
Copy link

lpmld commented May 20, 2024

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

@shihzenq
Copy link

我按照文档回滚到指定解决问题的代码。
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants