Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# deepagents-rl
|
| 2 |
+
|
| 3 |
+
Post-train a small coding LM with **GRPO** + verifiable unit-test rewards, using:
|
| 4 |
+
|
| 5 |
+
- Local **deepagents-style** harness smoke (`scripts/smoke_e2e.py`)
|
| 6 |
+
- **Langfuse** traces (every tool + checkpoint eval)
|
| 7 |
+
- **Weights & Biases** metrics
|
| 8 |
+
- **Hugging Face** adapters (`vanishingradient/deepagents-rl-coding`)
|
| 9 |
+
- **Kaggle T4×2** training (`notebooks/kaggle_grpo.ipynb`)
|
| 10 |
+
|
| 11 |
+
## Checkpoint rule
|
| 12 |
+
|
| 13 |
+
Before every HF checkpoint push: run held-out eval → write **Langfuse** `kaggle-ckpt-eval` → log W&B → then push revision `grpo-step-{n}`.
|
| 14 |
+
|
| 15 |
+
## Quick start
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
# local smoke (model on :8792)
|
| 19 |
+
python scripts/smoke_e2e.py
|
| 20 |
+
|
| 21 |
+
# build + push MBPP dataset
|
| 22 |
+
python scripts/prepare_mbpp_and_push.py
|
| 23 |
+
|
| 24 |
+
# upload trainer to HF for Kaggle download
|
| 25 |
+
python scripts/push_trainer_to_hf.py
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Then open the Kaggle notebook with **GPU T4 x2** and attach secrets — see [`kaggle/KAGGLE_SETUP.md`](kaggle/KAGGLE_SETUP.md).
|
| 29 |
+
|
| 30 |
+
## Dataset
|
| 31 |
+
|
| 32 |
+
`vanishingradient/deepagents-rl-mbpp` — filtered MBPP sanitized (reference must pass sandbox).
|