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

qwen1.5 int4模型回复出现解码问题:UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 72-73: invalid continuation byte #461

Open
zhang415 opened this issue Jun 5, 2024 · 0 comments

Comments

@zhang415
Copy link

zhang415 commented Jun 5, 2024

出错代码为:(最后一行报错)
for i, his in enumerate(history):
round_idx = 0
for (q,a) in his:
history_str[i] = g_model.make_history(history_str[i], round_idx, q, a)
round_idx += 1
final_round = round_idx
prompts = [g_model.make_input(history_str[i], final_round, prompts[i])[-args.max_input_length:] for i in range(len(prompts))]
results = []
for response in g_model.batch_response(prompts, None, config):

报错:
6

7
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 72-73: invalid continuation byte

输入格式为:{
"contents":["反光板复活复活复活南方女孩妇女和功能和发v飞鸟飞过发表过打不过打不过打不过打不过打不过打不过打不过打不过打不过打不过的不敢当不敢当不敢当不敢当不敢当不敢当吧"],
"prompt":[[["今天星期几","三"],["今天星期几", "四"]]],
"prefix":["给出结果"],
"system":"现在你是一名秘书"
}

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

1 participant