valoomba/agent_traces
收藏资源简介:
pi-mono Unsloth SFT数据集是一个用于监督微调(SFT)的数据集,源自badlogicgames/pi-mono。它将pi coding-agent的会话轨迹转换为每个助手回合一行数据的格式。每行数据中,提示部分序列化了该回合之前的系统、用户、工具和助手上下文,而输出部分则为下一个助手消息或工具调用。数据集采用JSONL格式,包含instruction和output字段。它被分割为训练集(train.jsonl)和验证集(validation.jsonl)。转换设置包括:源仓库为badlogicgames/pi-mono,输出格式为studio_flat,分支模式为longest,最大上下文消息数为8,最大工具结果字符数为4000,最小助手字符数为40,最大指令字符数为70000,最大输出字符数为24000,最大总字符数为80000,验证比例为0.05。此外,数据预处理省略了助手的thinking块,工具调用和结果以XML-like文本块表示,并合并了相邻同角色消息以提高与常见聊天模板的兼容性。如果导出中存在会话特定的系统或开发者提示,则使用该提示;否则插入通用的pi coding-agent系统提示。
The pi-mono Unsloth SFT Dataset is a Supervised Fine-Tuning (SFT) dataset derived from badlogicgames/pi-mono. It converts the conversation trajectories of the pi coding-agent into a format where each assistant turn occupies one line of data. In each line, the `instruction` field serializes the system, user, tool, and assistant contexts prior to that turn, while the `output` field contains the next assistant message or tool call. The dataset is stored in JSONL format and includes the `instruction` and `output` fields, and is split into a training set (train.jsonl) and a validation set (validation.jsonl). The conversion settings are as follows: the source repository is badlogicgames/pi-mono, the output format is studio_flat, the branching mode is longest, the maximum number of context messages is 8, the maximum character count for tool results is 4000, the minimum character count for assistant responses is 40, the maximum character count for instructions is 70000, the maximum character count for outputs is 24000, the maximum total character count is 80000, and the validation split ratio is 0.05. Additionally, the data preprocessing omits the assistant's thinking blocks, tool calls and results are represented as XML-like text blocks, and adjacent messages from the same role are merged to improve compatibility with common chat templates. If session-specific system or developer prompts exist in the export, they are used; otherwise, a generic pi coding-agent system prompt is inserted.




