Aflow 运行报错
运行Aflow 命令,只运行完成round1的执行。然后就都报错,是否不支持qwen 和 deepseek模型来实现?
命令:
python -m examples.aflow.optimize --dataset MATH --opt_model_name deepseek-v3 --exec_model_name qwen2.5 --if_first_optimize=false
模型配置:
models: "qwen2.5": api_type: "dashscope" model: "qwen2.5-72b-instruct" base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1" api_key: "sk-xxxx" temperature: 0.5 "deepseek-v3": api_type: "dashscope" model: "deepseek-v3" base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1" api_key: "sk-xxxx" temperature: 0.5
报错信息:
Bug description
2025-02-20 16:25:18.965 | INFO | metagpt.ext.aflow.scripts.optimizer:optimize:93 - Error occurred: Unable to serialize unknown type: <class 'numpy.int64'>. Retrying... (Attempt 1/1)
2025-02-20 16:25:18.968 | INFO | metagpt.ext.aflow.scripts.optimizer:optimize:95 - Max retries reached. Moving to next round.
2025-02-20 16:25:23.971 | INFO | metagpt.ext.aflow.scripts.optimizer:optimize:106 - Score for round 2: None
Traceback (most recent call last):
File "
Did you solve it?
请问一下用的是哪个版本的metagpt,用Version: 0.8.1似乎于aflow代码不太兼容, 2025-03-14 15:51:04.570 | INFO | metagpt.ext.aflow.benchmark.gsm8k:evaluate_problem:53 - Maximum retries reached. Skipping this sample. Error: ActionNode.fill() got an unexpected keyword argument 'context', 最新版本的metagpt,ActionNode.fill()变成了req,将aflow中的context改为req,但还是报错 2025-03-17 16:08:22.409 | INFO | metagpt.ext.aflow.benchmark.gsm8k:evaluate_problem:56 - Maximum retries reached. Skipping this sample. Error: ActionNode.fill() missing 1 required keyword-only argument: 'req'
问题+1
解决了,将action_node换成这个链接的就行了https://github.com/geekan/MetaGPT/pull/1510/files?short_path=66cde96
坏了,遇到一楼老哥的错误了,@qjs2000 哥,问题解决了吗
Hi, we will update a easier to use version of AFLOW in https://github.com/FoundationAgents/AFlow. The time maybe Bejing Time 3.19 20:00 @helloword1 @qjs2000 @Guo-Jintao @Clairegggg
Hello, are you ok?@didiforgithub
Hello, you can use the code in https://github.com/FoundationAgents/AFlow. @stellaHSR you can close this issue, i think they have used the code in new link.
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.