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

请问能否将模型的提示词和输入输出在--log-level=debug模式下打印出来方便模型微调 #986

Closed
xs818818 opened this issue Feb 5, 2024 · 2 comments
Milestone

Comments

@xs818818
Copy link

xs818818 commented Feb 5, 2024

我发现模型微调时的对齐很重要,我在https://github.com/hiyouga/LLaMA-Factory下微调了数据集格式如下:

@XprobeBot XprobeBot added this to the v0.8.5 milestone Feb 5, 2024
@xs818818
Copy link
Author

xs818818 commented Feb 5, 2024

    "conversations": [
        {
            "from": "human",
            "value": "查看人脸识别测试检测图片"
        },
        {
            "from": "function_call",
            "value": "{\"name\": \"search_ai_file\", \"arguments\": {\"case\": \"人脸识别测试检测\",\"type\": \"图片\"}}"
        },
        {
            "from": "observation",
            "value": "{\"answer\": \"success\"}"
        },
        {
            "from": "gpt",
            "value": "已成功查看。"
        }
    ],
    "tools": "[{\"name\": \"search_ai_file\", \"description\": \"查询AI平台案例的文件地址\", \"parameters\": {\"type\": \"object\", \"properties\": {\"case\": {\"type\": \"string\", \"description\": \"案例的名称\"},\"type\": {\"type\": \"string\", \"description\": \"查询文件的类型\"}}, \"required\": [\"case\",\"type\"]}},{\"name\": \"open_web\", \"description\": \"控制网页跳转\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"网页的名称\"}}, \"required\": [\"name\"]}},{\"name\": \"refresh_web\", \"description\": \"更新网页信息\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"网页的名称\"},\"data_name\": {\"type\": \"string\", \"description\": \"信息的名称\"}}, \"required\": [\"name\",\"data_name\"]}}]"
}

但是无法部署,想知道您这里的格式

@xs818818 xs818818 closed this as completed Feb 6, 2024
@xs818818
Copy link
Author

xs818818 commented Feb 6, 2024

我使用快手开源的千问模型跑通了,貌似只要是react格式就行

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

2 participants