ortexvortex's picture
Add banner
9c23ce3 verified
|
Raw History Blame Contribute Delete
4.53 kB
metadata
license: apache-2.0
language:
  - en
pretty_name: Qwen4Max-Hy4Flash-Distill
size_categories:
  - 1K<n<10K
task_categories:
  - text-generation
tags:
  - agent
  - agentic-coding
  - tool-use
  - distillation
  - sft
  - code
  - software-engineering
  - opencode
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*.jsonl

Qwen4Max-Hy4Flash-Distill

Qwen4Max-Hy4Flash-Distill

8,529 multi-turn agentic coding trajectories for supervised fine-tuning. Every trajectory was verified by running the repository's test suite, and only passing runs are included.

The trajectories were recorded from two teacher models working inside the OpenCode agent harness on real open-source Python repositories, with full tool use (read, edit, write, grep, bash, ...) and the teachers' reasoning:

teacher examples
Hy4 Flash (high reasoning) 7,441
Qwen4 Max (xhigh reasoning) 1,088

Task kinds

kind examples what the agent gets
single 2,120 a GitHub-style bug report for one injected bug; fix it
multi 2,237 a report covering several bugs across files; fix all
implement 2,269 a function body was removed; implement it from the docstring / issue
multi_impl 243 several stubbed functions to implement together
tdd_fix 461 failing test output only; find and fix the cause
test_only 619 a bug with no description beyond failing tests
write_test 580 write tests that catch a described bug

Bugs are AST mutations (negated conditions, swapped arguments, removed statements, flipped comparisons, ...) and LLM-written realistic rewrites, applied to lines that the repo's own tests cover. Issue texts were written 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 no previously passing test breaks.

Diversity: 54 repositories (arrow, attrs, click, jinja, lark, marshmallow, mpmath, networkx, pyparsing, sqlparse, textual, tomlkit, werkzeug, yapf, ...); the five largest repos together make up 15% of examples. On average 22 assistant turns per trajectory.

Format

JSON Lines, one trajectory per line:

{
  "id": "arrow-018235b1a59d",
  "repo": "arrow",
  "kind": "single",
  "teacher": "Hy4 Flash",
  "teacher_provider": "opencode-go",
  "n_turns": 17,
  "prompt_tokens": 197504,
  "completion_tokens": 3878,
  "messages": [
    {"role": "system", "content": "..."},
    {"role": "user", "content": "..."},
    {"role": "assistant", "content": "", "reasoning_content": "...",
     "tool_calls": [{"id": "...", "type": "function",
                     "function": {"name": "read", "arguments": {"filePath": "..."}}}]},
    {"role": "tool", "tool_call_id": "...", "content": "..."},
    ...
  ],
  "tools": [ ... OpenAI-style function schemas ... ]
}
  • messages is in the OpenAI / Hugging Face chat format. Assistant turns carry the teacher's reasoning in reasoning_content; tool-call arguments are JSON objects (not strings).
  • tools holds the exact tool schemas the teacher was given.
  • prompt_tokens / completion_tokens are the teacher's usage summed over the trajectory.
  • The system prompt is OpenCode's default agent prompt without its "# Your Model" block (which normally names the serving model). Add your own model's identity there if you want it. Trajectories in which the model named itself were removed, so the data is not tied to any particular model identity.
  • Trajectories are long: roughly 15% exceed 40k tokens (mostly multi and implement); filter by length for your context window.

Licensing and terms

The dataset card is Apache-2.0. Two things inside it come with their own terms, which you must follow too:

  • Teacher outputs: assistant turns were generated by Hy4 Flash (Tencent) and Qwen4 Max (Alibaba). Check those models' terms of use for training on their outputs before using this data.
  • Repository code: tool outputs contain source code from the 54 open-source repositories, each under its own license (mostly MIT, BSD and Apache-2.0).

Limitations

  • Python only, single-repository tasks with injected bugs; real-world issues are messier.
  • Only successful trajectories are kept, so the data shows no recovery from failed final attempts.
  • Teacher reasoning is included as produced and can be long or wander.