Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,61 +1,40 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
language:
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
- midtraining
|
| 7 |
-
- code
|
| 8 |
-
- agentic
|
| 9 |
-
- software-engineering
|
| 10 |
-
- multi-agent
|
| 11 |
-
task_categories:
|
| 12 |
-
- text-generation
|
| 13 |
-
configs:
|
| 14 |
-
- config_name: default
|
| 15 |
-
data_files:
|
| 16 |
-
- split: train
|
| 17 |
-
path: data/train-*
|
| 18 |
-
dataset_info:
|
| 19 |
-
features:
|
| 20 |
-
- name: text
|
| 21 |
-
dtype: string
|
| 22 |
-
- name: source
|
| 23 |
-
dtype: string
|
| 24 |
-
splits:
|
| 25 |
-
- name: train
|
| 26 |
-
num_bytes: 1610042422
|
| 27 |
-
num_examples: 727337
|
| 28 |
-
download_size: 806246956
|
| 29 |
-
dataset_size: 1610042422
|
| 30 |
---
|
| 31 |
|
| 32 |
# CooperData v3 — Midtraining Blend (Qwen3.5-9B cooperative SWE agents)
|
| 33 |
|
| 34 |
-
All-token **midtraining** mixture that bridges `Qwen/Qwen3.5-9B` (instruct) toward the
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
## Composition
|
| 40 |
-
| source | tokens | share |
|
| 41 |
-
|---|---|---|
|
| 42 |
-
| `web` | 210.0M | 54% |
|
| 43 |
-
| `math` | 55.0M | 14% |
|
| 44 |
-
| `instruct` | 25.0M | 6% |
|
| 45 |
-
| `coop` |
|
| 46 |
-
| `
|
|
|
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
- `coop`: our cooperative multi-agent SWE trajectories (mini-swe-agent, **structured tool-calling**), rendered with the model's **real** chat template → native `<tool_call>`/`<tool_response>` (matches the `qwen3_coder` serving parser). This also carries the "good collaborator" signal — the agents coordinate as colleagues on a shared codebase.
|
| 52 |
-
- `agentic`: [ricdomolm/mini-coder-trajs-400k](https://huggingface.co/datasets/ricdomolm/mini-coder-trajs-400k), verified rollouts (bash-in-content style — midtrain *exposure* only; the SFT stage uses coop tool-calling exclusively).
|
| 53 |
|
| 54 |
## Methodology
|
| 55 |
-
Grounded in ["Midtraining Bridges Pretraining and Posttraining Distributions" (2510.14865)](https://arxiv.org/abs/2510.14865):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
##
|
| 58 |
-
All-token (full LM loss), `packing=False`:
|
| 59 |
```python
|
| 60 |
from trl import SFTTrainer, SFTConfig
|
| 61 |
from datasets import load_dataset
|
|
@@ -63,4 +42,7 @@ ds = load_dataset("CooperBench/cooperdata-v3-midtrain-blend", split="train")
|
|
| 63 |
SFTTrainer(model="Qwen/Qwen3.5-9B", train_dataset=ds,
|
| 64 |
args=SFTConfig(dataset_text_field="text", packing=False, max_length=8192))
|
| 65 |
```
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
language: [en]
|
| 4 |
+
tags: [midtraining, code, agentic, software-engineering, multi-agent]
|
| 5 |
+
task_categories: [text-generation]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# CooperData v3 — Midtraining Blend (Qwen3.5-9B cooperative SWE agents)
|
| 9 |
|
| 10 |
+
All-token **midtraining** mixture that bridges `Qwen/Qwen3.5-9B` (instruct) toward the cooperative
|
| 11 |
+
multi-agent SWE-coding SFT distribution. **One document per row** (`text`, tagged by `source`) — NOT
|
| 12 |
+
packed — so `trl.SFTTrainer(packing=False)` tokenizes per-doc and the Gated-DeltaNet recurrence
|
| 13 |
+
stays per-document. **~390M tokens.**
|
| 14 |
|
| 15 |
## Composition
|
| 16 |
+
| source | tokens | share | role |
|
| 17 |
+
|---|---|---|---|
|
| 18 |
+
| `web` | 210.0M | 54% | general |
|
| 19 |
+
| `math` | 55.0M | 14% | general |
|
| 20 |
+
| `instruct` | 25.0M | 6% | general |
|
| 21 |
+
| `coop` | 60.0M | 15% | bridge |
|
| 22 |
+
| `swe_smith` | 15.0M | 4% | bridge |
|
| 23 |
+
| `nebius` | 15.0M | 4% | bridge |
|
| 24 |
+
| `social` | 10.0M | 3% | bridge |
|
| 25 |
|
| 26 |
+
General **~74%** / bridge **~26%** (coop-dominant). Agentic/social sources are rendered with
|
| 27 |
+
the model's **real** chat template (so coop tool-calls become native `<tool_call>`/`<tool_response>`,
|
| 28 |
+
matching the `qwen3_coder` serving parser).
|
|
|
|
|
|
|
| 29 |
|
| 30 |
## Methodology
|
| 31 |
+
Grounded in ["Midtraining Bridges Pretraining and Posttraining Distributions" (2510.14865)](https://arxiv.org/abs/2510.14865):
|
| 32 |
+
specialized data is introduced *late* (a finished instruct model), so the conservative-weight finding
|
| 33 |
+
(high specialized weight late -> catastrophic forgetting) dictates a **general-dominant** mix. The
|
| 34 |
+
bridge is coop-dominant — near-domain agentic-coding on a coding model (low forgetting risk) and the
|
| 35 |
+
exact SFT target. Heavy agentic specialization is left to SFT.
|
| 36 |
|
| 37 |
+
## Usage (all-token, packing=False)
|
|
|
|
| 38 |
```python
|
| 39 |
from trl import SFTTrainer, SFTConfig
|
| 40 |
from datasets import load_dataset
|
|
|
|
| 42 |
SFTTrainer(model="Qwen/Qwen3.5-9B", train_dataset=ds,
|
| 43 |
args=SFTConfig(dataset_text_field="text", packing=False, max_length=8192))
|
| 44 |
```
|
| 45 |
+
|
| 46 |
+
## Build
|
| 47 |
+
`coopertrain/train/modal/datamix/` (sources + mixture + cleaning). Inherits the licenses of its
|
| 48 |
+
constituent datasets (Dolmino, mini-coder-trajs, OdysSim) + our coop trajectories.
|