nanochat-jp-sft
收藏资源简介:
nanochat-jp-sft 是一个用于日语监督微调(SFT)的数据集,专为 nanochat-jp(nanochat 的日语分支)设计。该数据集以 JSONL 格式分发,每行表示一个对话,格式为包含 role 和 content 字段的 JSON 数组,对话以 user 开场并以 assistant 结束。数据集由两部分组成:1)来自公开数据集 llm-jp/llm-jp-4-thinking-sft-data 的子集,移除了编码和数学相关数据;2)通过 self-chat 方法生成的多轮日语对话,生成过程利用 nvidia/Nemotron-Personas-Japan 中的人物角色(包括文化背景、技能、兴趣、职业、性别、婚姻状况、学历、居住地等)进行条件设置,并控制对话起始方式(咨询、提问、闲聊、自由)和语气。同一模型分别扮演用户和助手角色,生成最多 4 轮对话,随后转换为 nanochat SFT 格式,并经过基于 n-gram 重复、跨轮重复、消息重复、表格行重复和压缩率的规则过滤。使用的教师模型包括:openai/gpt-oss-120b、google/gemma-4-31B-it(NVFP4 量化)、nvidia/NVIDIA-Nemotron-3-Super-120B-A12B(NVFP4 量化)、Qwen/Qwen3.5-122B-A10B(NVFP4 量化,两批不同采样设置)以及 llm-jp/llm-jp-4-32b-a3b-thinking。该数据集适用于文本生成任务,特别是日语对话模型的监督微调。许可方面,数据集整体为混合许可(other),各文件继承原数据的许可:公开数据部分遵循 llm-jp/llm-jp-4-thinking-sft-data 的许可;self-chat 部分中,人物角色采用 CC BY 4.0,对话文本则需遵循各教师模型的许可(多数为 Apache-2.0,NVIDIA-Nemotron-3-Super 为 NVIDIA Open Model License)。注意:所有 self-chat 对话均由 LLM 生成,不保证事实性,且可能包含不适当内容或错误信息;人物角色均为合成数据,不代表真实人物。
nanochat-jp-sft is a dataset for Japanese supervised fine-tuning (SFT) designed for nanochat-jp (the Japanese branch of nanochat). It is distributed in JSONL format, where each line represents a conversation as a JSON array with fields role and content, starting with user and ending with assistant. The dataset consists of two parts: 1) a subset of the public dataset llm-jp/llm-jp-4-thinking-sft-data, with coding and math-related data removed; 2) multi-turn Japanese conversations generated via self-chat, conditioned on personas from nvidia/Nemotron-Personas-Japan (including cultural background, skills, interests, occupation, gender, marital status, education, residence, etc.), with control over conversation start type (consultation, question, chitchat, free) and tone. The same model plays both user and assistant roles, generating up to 4 turns, then converted to nanochat SFT format and filtered by rules based on n-gram repetition, cross-turn repetition, message repetition, table row repetition, and compression ratio. Teacher models used include: openai/gpt-oss-120b, google/gemma-4-31B-it (NVFP4 quantized), nvidia/NVIDIA-Nemotron-3-Super-120B-A12B (NVFP4 quantized), Qwen/Qwen3.5-122B-A10B (NVFP4 quantized, two batches with different sampling settings), and llm-jp/llm-jp-4-32b-a3b-thinking. The dataset is suitable for text generation tasks, especially supervised fine-tuning of Japanese dialogue models. Licensing: overall dataset is under a mixed license (other), with each file inheriting the license of its source data: the public data part follows the license of llm-jp/llm-jp-4-thinking-sft-data; for the self-chat part, personas are under CC BY 4.0, and conversation texts follow the licenses of the respective teacher models (mostly Apache-2.0, NVIDIA-Nemotron-3-Super under NVIDIA Open Model License). Note: all self-chat conversations are generated by LLMs, factual accuracy is not guaranteed, and they may contain inappropriate content or errors; personas are synthetic and do not represent real people.
nanochat-jp-sft 数据集详情
数据集简介
nanochat-jp-sft 是 nanochat 日语分支(nanochat-jp)所使用的SFT(监督微调)日语数据集。该数据集混合了公开的日语指令数据以及基于人格条件生成的日语多轮对话(self-chat),并以 nanochat 的 SFT 数据加载器可直接读取的 JSONL 格式发布。
语言与任务
- 语言:日语(ja)
- 任务类别:文本生成(text-generation)
数据格式
数据集中每一行代表一个对话,每行是一个 messages 的 JSON 数组,呈现从 user 开始、以 assistant 结束的交替序列:
json [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]
将 v1/ 目录下的文件放置在 $NANOCHAT_BASE_DIR/datasets/nanochat-jp-sft/v1/ 下,nanochat-jp 的 scripts/chat_sft.py 会将其作为默认混合内容读取,具体训练文件组合请参考该脚本。
数据构成
1. 公开数据来源
该部分为 llm-jp/llm-jp-4-thinking-sft-data 的子集,移除了其中与编码和数学相关的数据。
2. self-chat 数据
self_chat_*.nanochat_sft.chat_filtered.jsonl 是按以下流程新生成的日语多轮对话数据:
- 人格条件设定:将 nvidia/Nemotron-Personas-Japan 中各人格(文化背景、技能、爱好、职业、性别、婚姻状况、学历、职业、都道府县)与对话切入方式(咨询、提问、闲聊、自由)及语气嵌入提示词中。
- self-chat 生成:使用同一模型分别扮演用户角色(作为人格本人)和助手角色,生成最多 4 轮的对话。
- 格式转换:在 user/assistant 交替性被破坏时截断对话,仅保留以 assistant 结尾的前缀,转换为 nanochat SFT 格式。
- 质量过滤:基于 n-gram 重复、跨轮重复、消息重复、表格行重复及压缩率进行规则过滤。
教师模型一览
| 文件 | 教师模型 |
|---|---|
self_chat_gpt_oss.* |
openai/gpt-oss-120b |
self_chat_gemma4.* |
google/gemma-4-31B-it(使用 NVFP4 量化版) |
self_chat_nemotron.* |
nvidia/NVIDIA-Nemotron-3-Super-120B-A12B(使用 NVFP4 量化版) |
self_chat_qwen3.*、self_chat_qwen3_v0.* |
Qwen/Qwen3.5-122B-A10B(使用 NVFP4 量化版,含采样设置不同的两个批次) |
self_chat_llm_jp_v4.* |
llm-jp/llm-jp-4-32b-a3b-thinking |
许可证
由于混合了多种具有不同许可证的数据,该数据集整体未设置单一许可证(标注为 other)。各文件沿用其原始数据的许可证及使用条件:
| 构成要素 | 许可证 |
|---|---|
| 公开数据来源部分 | 遵循 llm-jp/llm-jp-4-thinking-sft-data 的许可证 |
self-chat(self_chat_*.jsonl) |
人格数据采用 CC BY 4.0(nvidia/Nemotron-Personas-Japan);对话正文为上述教师模型生成物,使用时需遵循各模型的许可证与使用条款(gpt-oss-120b、gemma-4-31B-it、Qwen3.5-122B-A10B、llm-jp-4-32b-a3b-thinking 为 Apache-2.0,NVIDIA-Nemotron-3-Super 为 NVIDIA Open Model License) |
注意事项
- self-chat 对话均为 LLM 生成物,不保证事实准确性,且会继承教师模型的回答倾向和措辞习惯。
- 人格数据为合成数据,不涉及真实人物。
- 即使经过过滤,仍可能包含不当内容或错误信息。
致谢
数据集构建过程中,感谢公开指令数据的 LLM-jp 团队,以及为项目推进提供多方协助的 Tohoku NLP Group 成员。




