Skip to content

Gemma4微调的问题请教 #9206

@liandanlao

Description

@liandanlao

Checklist / 检查清单

  • I have searched existing issues, and this is a new question or discussion topic. / 我已经搜索过现有的 issues,确认这是一个新的问题与讨论。

Question Description / 问题描述

我知道微调这个模型要用这两个参数:--add_non_thinking_prefix true和--loss_scale ignore_empty_think,
我的数据是这样的:
{"messages": [{"role": "user", "content": "Where is the capital of Zhejiang?"}, {"role": "assistant", "content": "The capital of Zhejiang is Hangzhou."}]}
必须改成下面这样吗?<|channel>thought\n<channel|>这个字段一定要加吗?
{"messages": [{"role": "user", "content": "Where is the capital of Zhejiang?"}, {"role": "assistant", "content": "<|channel>thought\n<channel|>The capital of Zhejiang is Hangzhou."}]}
多谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions