Sera-4.6-Lite-T2-v4-316
收藏资源简介:
laion/Sera-4.6-Lite-T2-v4-316是allenai/Sera-4.6-Lite-T2数据集的一个子集,专为训练SERA-8B模型而设计。该数据集将OpenAI的`tool_calls`预渲染为Hermes/Qwen3风格的`<tool_call>...</tool_call>`标记,并将工具响应包装为`<tool_response>...</tool_response>`。数据集包含316行数据(源自36,083行的源数据集),格式为原始JSONL,每行包含`messages: list[{role, content, train}]`,其中角色包括`system | user | assistant`,工具观察以`role: user`表示,并带有`<tool_response>...</tool_response>`包装。`train: bool`字段用于axolotl的`message_field_training: train`损失掩码。数据集适用于文本生成任务,特别是与工具调用相关的场景。
laion/Sera-4.6-Lite-T2-v4-316 is a subset of the allenai/Sera-4.6-Lite-T2 dataset, specifically designed for training the SERA-8B model. This dataset pre-renders OpenAIs `tool_calls` into Hermes/Qwen3-style `<tool_call>...</tool_call>` tags and wraps tool responses as `<tool_response>...</tool_response>`. The dataset contains 316 rows of data (derived from a source dataset of 36,083 rows) in raw JSONL format, with each row containing `messages: list[{role, content, train}]`, where roles include `system | user | assistant`, and tool observations are represented with `role: user` and wrapped in `<tool_response>...</tool_response>`. The `train: bool` field is used for axolotls `message_field_training: train` loss masking. The dataset is suitable for text generation tasks, particularly those involving tool calls.
数据集概述:laion/Sera-4.6-Lite-T2-v4-316
基本信息
- 许可协议:Apache-2.0
- 任务类别:文本生成(text-generation)
- 标签:sft、agent、swe-bench、axolotl、hermes-tool-calls
数据集来源
该数据集是 allenai/Sera-4.6-Lite-T2 的行子集。上游数据集被用于训练 SERA-8B 模型。
数据预处理
- 将 OpenAI 的
tool_calls预渲染为 Hermes/Qwen3 风格的<tool_call>...</tool_call>线令牌,并嵌入到内容字符串中。 - 工具响应被包裹为
<tool_response>...</tool_response>。 - 此预处理步骤对应于 Ai2 的
sera/datagen/data/postprocess/utils.py::transform_traj_hermes函数(默认tool_call_format: "hermes"),这是从公开的 Sera-4.6-Lite-T2 数据集到 axolotl 训练之间缺失的环节。若缺少此预渲染,axolotl 的chat_template: chatml会丢弃结构化的tool_calls字段,导致 SFT 模型无法学习生成工具调用。
数据规模
- 总行数:316 行(来源数据集为 36,083 行)
- 采样方式:确定性随机采样,种子为 42,按行索引从完整的 36,083 行源数据中提取。
数据格式
- 格式:原始 JSONL
- 每行结构:
messages: list[{role, content, train}]- 角色:
system、user、assistant - 工具观测:以
role: user表示,内容由<tool_response>...</tool_response>包裹(遵循 SERA 惯例) - 训练掩码:每条消息的
train: bool字段是逐消息的损失掩码,供 axolotl 的message_field_training: train使用
- 角色:
使用示例(axolotl 配置)
yaml datasets:
- path: laion/Sera-4.6-Lite-T2-v4-316
data_files:
- sera-4.6-lite-t2_v4_316.jsonl type: chat_template field_messages: messages ds_type: json message_field_training: train chat_template: chatml




