Datasets:
8,605 verified agentic coding trajectories (Hy4 Flash + Qwen4 Max in OpenCode)
Browse files- .gitattributes +4 -0
- README.md +122 -0
- data/train-00000-of-00004.jsonl +3 -0
- data/train-00001-of-00004.jsonl +3 -0
- data/train-00002-of-00004.jsonl +3 -0
- data/train-00003-of-00004.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/train-00000-of-00004.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
data/train-00001-of-00004.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
data/train-00002-of-00004.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
data/train-00003-of-00004.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: LFM3 Agentic Coding Distill
|
| 6 |
+
size_categories:
|
| 7 |
+
- 1K<n<10K
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-generation
|
| 10 |
+
tags:
|
| 11 |
+
- agent
|
| 12 |
+
- agentic-coding
|
| 13 |
+
- tool-use
|
| 14 |
+
- distillation
|
| 15 |
+
- sft
|
| 16 |
+
- code
|
| 17 |
+
- software-engineering
|
| 18 |
+
- opencode
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: default
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: data/train-*.jsonl
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# LFM3 Agentic Coding Distill
|
| 27 |
+
|
| 28 |
+
8,605 multi-turn agentic coding trajectories for supervised fine-tuning of small models. Every trajectory
|
| 29 |
+
was **verified by running the repository's test suite** and only passing runs are included.
|
| 30 |
+
|
| 31 |
+
The trajectories were recorded from two teacher models working inside the [OpenCode](https://opencode.ai)
|
| 32 |
+
agent harness on real open-source Python repositories, with full tool use (read, edit, write, grep, bash, ...)
|
| 33 |
+
and the teachers' reasoning:
|
| 34 |
+
|
| 35 |
+
| teacher | examples |
|
| 36 |
+
|---|---|
|
| 37 |
+
| Hy4 Flash (high reasoning) | 7,462 |
|
| 38 |
+
| Qwen4 Max (xhigh reasoning) | 1,143 |
|
| 39 |
+
|
| 40 |
+
It was built to distill agentic coding into **LiquidAI LFM3-1.7B**. Training on successive slices of this
|
| 41 |
+
data took the model on a 40-task held-out panel (10 repos that are **not** in this dataset):
|
| 42 |
+
|
| 43 |
+
| model | solved (of 40) | implement | multi-file bug | single bug | write test |
|
| 44 |
+
|---|---|---|---|---|---|
|
| 45 |
+
| LFM3-1.7B stock | 6 | 0/4 | 0/11 | 4/15 | 2/10 |
|
| 46 |
+
| + 297 examples | 16 | 2/4 | 1/11 | 8/15 | 5/10 |
|
| 47 |
+
| + 944 more | 19 | 1/4 | 1/11 | 10/15 | 7/10 |
|
| 48 |
+
| + 2,313 more | 23 | 3/4 | 5/11 | 7/15 | 8/10 |
|
| 49 |
+
| Hy4 Flash (teacher) | 39 | 4/4 | 11/11 | 14/15 | 10/10 |
|
| 50 |
+
|
| 51 |
+
## Task kinds
|
| 52 |
+
|
| 53 |
+
| kind | examples | what the agent gets |
|
| 54 |
+
|---|---|---|
|
| 55 |
+
| `single` | 2,122 | a GitHub-style bug report for one injected bug; fix it |
|
| 56 |
+
| `multi` | 2,267 | a report covering several bugs across files; fix all |
|
| 57 |
+
| `implement` | 2,301 | a function body was removed; implement it from the docstring / issue |
|
| 58 |
+
| `multi_impl` | 243 | several stubbed functions to implement together |
|
| 59 |
+
| `tdd_fix` | 463 | failing test output only; find and fix the cause |
|
| 60 |
+
| `test_only` | 626 | a bug with no description beyond failing tests |
|
| 61 |
+
| `write_test` | 583 | write tests that catch a described bug |
|
| 62 |
+
|
| 63 |
+
Bugs are AST mutations (negated conditions, swapped arguments, removed statements, flipped comparisons, ...)
|
| 64 |
+
and LLM-written realistic rewrites, applied to lines that the repo's own tests cover. Issue texts were written
|
| 65 |
+
by an LLM from the diff and are written not to reveal the fix. A task passes only if the previously failing tests pass and
|
| 66 |
+
no previously passing test breaks.
|
| 67 |
+
|
| 68 |
+
**Diversity:** 54 repositories (arrow, attrs, click, jinja, lark, marshmallow, mpmath, networkx, pyparsing,
|
| 69 |
+
sqlparse, textual, tomlkit, werkzeug, yapf, ... ), 5,700+ distinct target functions, the five largest repos
|
| 70 |
+
together make up 16% of examples. On average 22 assistant turns per trajectory.
|
| 71 |
+
|
| 72 |
+
## Format
|
| 73 |
+
|
| 74 |
+
JSON Lines, one trajectory per line:
|
| 75 |
+
|
| 76 |
+
```json
|
| 77 |
+
{
|
| 78 |
+
"id": "arrow-018235b1a59d",
|
| 79 |
+
"repo": "arrow",
|
| 80 |
+
"kind": "single",
|
| 81 |
+
"teacher": "Hy4 Flash",
|
| 82 |
+
"teacher_provider": "opencode-go",
|
| 83 |
+
"n_turns": 17,
|
| 84 |
+
"prompt_tokens": 197504,
|
| 85 |
+
"completion_tokens": 3878,
|
| 86 |
+
"messages": [
|
| 87 |
+
{"role": "system", "content": "..."},
|
| 88 |
+
{"role": "user", "content": "..."},
|
| 89 |
+
{"role": "assistant", "content": "", "reasoning_content": "...",
|
| 90 |
+
"tool_calls": [{"id": "...", "type": "function",
|
| 91 |
+
"function": {"name": "read", "arguments": {"filePath": "..."}}}]},
|
| 92 |
+
{"role": "tool", "tool_call_id": "...", "content": "..."},
|
| 93 |
+
...
|
| 94 |
+
],
|
| 95 |
+
"tools": [ ... OpenAI-style function schemas ... ]
|
| 96 |
+
}
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
- `messages` is in the OpenAI / Hugging Face chat format. Assistant turns carry the teacher's reasoning in
|
| 100 |
+
`reasoning_content`; tool-call `arguments` are JSON objects (not strings).
|
| 101 |
+
- `tools` holds the exact tool schemas the teacher was given.
|
| 102 |
+
- `prompt_tokens` / `completion_tokens` are the teacher's usage summed over the trajectory.
|
| 103 |
+
- The system prompt is OpenCode's default agent prompt. Its model-identity block was rewritten to
|
| 104 |
+
"LFM3 1.7B", and teacher self-references in the turns were rewritten the same way; trajectories that still
|
| 105 |
+
named a teacher afterwards were dropped.
|
| 106 |
+
- Trajectories are long: roughly 15% exceed 40k tokens (mostly `multi` and `implement`); filter by length
|
| 107 |
+
for your context window.
|
| 108 |
+
|
| 109 |
+
## Licensing and terms
|
| 110 |
+
|
| 111 |
+
The dataset card is Apache-2.0. Two things inside it come with their own terms, which you must follow too:
|
| 112 |
+
|
| 113 |
+
- **Teacher outputs:** assistant turns were generated by Hy4 Flash (Tencent) and Qwen4 Max (Alibaba). Check
|
| 114 |
+
those models' terms of use for training on their outputs before using this data.
|
| 115 |
+
- **Repository code:** tool outputs contain source code from the 54 open-source repositories, each under its
|
| 116 |
+
own license (mostly MIT, BSD and Apache-2.0).
|
| 117 |
+
|
| 118 |
+
## Limitations
|
| 119 |
+
|
| 120 |
+
- Python only, single-repository tasks with injected bugs; real-world issues are messier.
|
| 121 |
+
- Only successful trajectories are kept, so the data shows no recovery from failed final attempts.
|
| 122 |
+
- Teacher reasoning is included as produced and can be long or wander.
|
data/train-00000-of-00004.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2c286c40edabf73c6831752addeea0d39cc4e00010db54760194b88320f72ff
|
| 3 |
+
size 236922530
|
data/train-00001-of-00004.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3342a5ada89c6a2f948b94babe882a7f6f8478122433ac9e0b297e41e277c00e
|
| 3 |
+
size 234309289
|
data/train-00002-of-00004.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8870ee46248f6760763dd322c34063eb118d448ce8cd9f0309e109d94694e68c
|
| 3 |
+
size 232313794
|
data/train-00003-of-00004.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd3b166c470c19d816215128e11c2ffbf53e1d4b9cbd7827e07a98c7ba089fac
|
| 3 |
+
size 232585448
|