如何把第9节课的大模型微调里面的问答数据和第5节课的funcation结合起来? #484

Open
opened 2025-01-21 00:49:42 +08:00 by MXHmxhc · 3 comments

{
"instruction": "你好",
"input": "",
"output": "您好,我是 信息中心 AI 助手,一个由 信息中心 AI 研发中心 打造的人工智能助手,
请问有什么可以帮助您的吗?"
}

如何把instruction和output,结合function?比如从instruction里面提取关键字,然后调用funcation calling里面定义的方法,不同的instruction里面提取参数,同时调用不同的方法,或者相同的方法,传递不同的参数?而不是像第5节课那样,只能写死单独的提示词工程

也就是给定几万条问答数据,每条数据里面,提取关键词参数,调佣不同的function calling里面的方法

{ "instruction": "你好", "input": "", "output": "您好,我是 信息中心 AI 助手,一个由 信息中心 AI 研发中心 打造的人工智能助手, 请问有什么可以帮助您的吗?" } 如何把instruction和output,结合function?比如从instruction里面提取关键字,然后调用funcation calling里面定义的方法,不同的instruction里面提取参数,同时调用不同的方法,或者相同的方法,传递不同的参数?而不是像第5节课那样,只能写死单独的提示词工程 也就是给定几万条问答数据,每条数据里面,提取关键词参数,调佣不同的function calling里面的方法

可以参考第五节课使用的数据集的格式,修改问答数据的格式来训练。

可以参考第五节课使用的数据集的格式,修改问答数据的格式来训练。
Author

麻烦给个例子,本来就是不会参考才提问的,感谢

麻烦给个例子,本来就是不会参考才提问的,感谢

https://zhuanlan.zhihu.com/p/674859843 可以参考这篇文章的方案

https://zhuanlan.zhihu.com/p/674859843 可以参考这篇文章的方案
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#484
No description provided.