-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
qwen2的function calling数据格式不对 #4792
Comments
tool_utils.py文件中,Action: tool name (one of [{tool_names}]). 这段提示会有概率返回extract_tools无法解析的文本。你给定的文本中就出现了一个小数点.正则匹配出错了。建议将提示词修改为Action: one of [{tool_names}]。不过这段tools的逻辑还是问题蛮多的,我提交了一个issue,你可以参考一下。 |
您好,这个 tool_utils.py 文件在哪呢,我想根据我的训练数据来修改正则匹配 |
llama factory源码 |
了解!原来是我的版本太低了,hh |
fixed |
建议将tool name也去掉,我做的测试用例,Qwen2-7b-Instruct还是有挺高概率返回Action: tool name (plus_func) Action Input: {A:1,B:2},这样的字符串。这个字符串extract_tools里的正则表达式无法正确处理。 |
请问在这个问题中哪里用到了这个repo? |
Reminder
System Info
llamafactory
version: 0.8.3.dev0Reproduction
response:
Expected behavior
正常格式应该如glm4:
Others
No response
The text was updated successfully, but these errors were encountered: