lugman's picture
Store messages as native chat objects
95e7802 verified
|
Raw History Blame Contribute Delete
2.82 kB
---
language:
- en
task_categories:
- text-generation
tags:
- agent
- tool-use
- data-analysis
- bash
- sft
size_categories:
- 1K<n<10K
configs:
- config_name: default
data_files:
- split: train
path: train.jsonl
---
# SmolDataAgent-Trajectories
2,833 multi-turn agent trajectories for training small data-analysis agents, built on tasks from [SmolDataEnvs](https://huggingface.co/datasets/FineEnvs/SmolDataEnvs). Used to train [lugman/LFM2.5-350M-SmolDataAgent](https://huggingface.co/lugman/LFM2.5-350M-SmolDataAgent).
In each trajectory the agent answers a question about a sandbox of data files using a single `bash` tool, and writes its final answer to `/workdir/answer.txt`.
## Composition
The trajectories started as rollouts from two teacher models, LFM2.5-2.6B and Claude Haiku 5.5. They were then edited (cleaned, and trimmed of tool calls made after the answer was written) and synthetically enriched.
| Source | easy | medium | hard | Total |
|---|---|---|---|---|
| LFM2.5-2.6B | 91 | 1,267 | 21 | 1,379 |
| Claude Haiku 5.5 | 40 | 140 | 140 | 320 |
| Synthetic enrichment | 1,007 | 126 | 1 | 1,134 |
| **Total** | **1,138** | **1,533** | **162** | **2,833** |
| Source | G1 lookup | G2 multistep | G3 analysis |
|---|---|---|---|
| LFM2.5-2.6B | 0 | 1,362 | 17 |
| Claude Haiku 5.5 | 0 | 0 | 320 |
| Synthetic enrichment | 1,112 | 19 | 3 |
## Why not SmolDataEnvs-sft
[FineEnvs/SmolDataEnvs-sft](https://huggingface.co/datasets/FineEnvs/SmolDataEnvs-sft) is the existing SFT set for this environment. A custom set was generated instead because:
1. **Mixed harnesses.** Its rows come from two agent harnesses (`bash`, `seta`) with different habits, e.g. 71% of `seta` rows use a "Plan:" scaffold. Every trajectory here follows one convention.
2. **Lenient grading.** Its grader takes the first number anywhere in the answer; 10.4% of re-gradable rows fail the stricter single-value grader used here.
3. **Better results.** In a controlled comparison, LFM2.5-350M trained on this custom curated set outperformed the same model trained on SmolDataEnvs-sft.
## Format
One JSON object per line in `train.jsonl`:
| Field | Description |
|---|---|
| `task_id` | [SmolDataEnvs](https://huggingface.co/datasets/FineEnvs/SmolDataEnvs) task identifier |
| `difficulty_tier` | `easy`, `medium` or `hard` |
| `source` | `<origin>:<group>`, where origin is `lfm` (LFM2.5-2.6B), `haiku` (Claude Haiku 5.5) or `synthetic`, and group is `G1_lookup`, `G2_multistep` or `G3_analysis` |
| `tools` | OpenAI-style tool definitions (the `bash` tool) |
| `messages` | Chat messages (`system`, `user`, `assistant` with `tool_calls`, `tool`) in OpenAI/TRL format |
```python
from datasets import load_dataset
ds = load_dataset("lugman/SmolDataAgent-Trajectories", split="train")
messages = ds[0]["messages"]
```