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

Exception has occurred: ValueError 130001 is not in list #25

Closed
CyberFork opened this issue May 7, 2023 · 8 comments
Closed

Exception has occurred: ValueError 130001 is not in list #25

CyberFork opened this issue May 7, 2023 · 8 comments

Comments

@CyberFork
Copy link

@modeling_chatglm.py line: 979
Exception has occurred: ValueError
130001 is not in list
File "E:\OpenSourceModel\Med-ChatGLM-main\Med-ChatGLM-main\modeling_chatglm.py", line 979, in prepare_inputs_for_generation
mask_position = seq.index(mask_token)
File "E:\OpenSourceModel\Med-ChatGLM-main\Med-ChatGLM-main\modeling_chatglm.py", line 1114, in chat
outputs = self.generate(**input_ids, **gen_kwargs)
File "E:\OpenSourceModel\Med-ChatGLM-main\Med-ChatGLM-main\infer.py", line 12, in
response, history = model.chat(tokenizer, "问题:" + a.strip() + '\n答案:', max_length=256, history=[])
ValueError: 130001 is not in list

@panyuetj
Copy link

panyuetj commented May 8, 2023

same error

1 similar comment
@RuohaoYan
Copy link

same error

@SilenceWinter
Copy link

Same exception

@zhougz2018
Copy link

同上,这个是什么原因?

@CyberFork
Copy link
Author

修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.

或者通过 git log 查看到 commit 61471075ed222e6cb3cc9d4bf87c9a2809e117d1这个节点,回退回去即可。

@zh2010
Copy link

zh2010 commented May 22, 2023

修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.

或者通过 git log 查看到 commit 61471075ed222e6cb3cc9d4bf87c9a2809e117d1这个节点,回退回去即可。
“修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.”这个是写错了吧,里面没有13000,只有130000和130001,并且替换之后也不对,请再确认下?

@CyberFork
Copy link
Author

修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.
或者通过 git log 查看到 commit 61471075ed222e6cb3cc9d4bf87c9a2809e117d1这个节点,回退回去即可。
“修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.”这个是写错了吧,里面没有13000,只有130000和130001,并且替换之后也不对,请再确认下?

130000和130001 不就是包含 13000?

@CyberFork
Copy link
Author

修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.
或者通过 git log 查看到 commit 61471075ed222e6cb3cc9d4bf87c9a2809e117d1这个节点,回退回去即可。
“修改 modeling_chatglm.py 中的所有13000 为 15000.推荐使用批量替换.”这个是写错了吧,里面没有13000,只有130000和130001,并且替换之后也不对,请再确认下?

通过 git log 查看到 commit 61471075ed222e6cb3cc9d4bf87c9a2809e117d1这个节点,回退回去吧,可能还有其他需要修改的

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

6 participants