model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-3B
|
| 4 |
+
tags: [reinforcement-learning, grpo, code-generation, mbpp, catastrophic-forgetting]
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# code-q25_3b-nobuf
|
| 8 |
+
|
| 9 |
+
GRPO on MBPP from `Qwen/Qwen2.5-3B`. Arm: **GRPO, no replay buffer**.
|
| 10 |
+
|
| 11 |
+
Part of a study of forgetting during code RL: the same run is trained with and
|
| 12 |
+
without an SFT-replay buffer, and evaluated on MBPP+ across training.
|
| 13 |
+
|
| 14 |
+
## Layout
|
| 15 |
+
|
| 16 |
+
One subfolder per checkpoint, `global_step_<N>/`, each a full Hugging Face model
|
| 17 |
+
directory. Steps are the stride-30 evaluation grid plus the run's endpoint
|
| 18 |
+
(30, 60, 90, 120, 150, 180, 210, 240, 270, 300).
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 22 |
+
m = AutoModelForCausalLM.from_pretrained("RL-Forgetting-Experiments-3/code-q25_3b-nobuf", subfolder="global_step_300")
|
| 23 |
+
t = AutoTokenizer.from_pretrained("RL-Forgetting-Experiments-3/code-q25_3b-nobuf", subfolder="global_step_300")
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## Training
|
| 27 |
+
|
| 28 |
+
- Data: 320 MBPP problems, held out from both MBPP+ (378) and MBPP's canonical
|
| 29 |
+
test split (276), so both remain reportable.
|
| 30 |
+
- GRPO, 8 rollouts per prompt, batch 64, actor lr 1e-6, response length 3072.
|
| 31 |
+
- Reward: execution of the generated program against the task's asserts (binary).
|
| 32 |
+
- Buffer arms replay 128 past rollouts per step with weight lambda=0.1, sampled
|
| 33 |
+
by `hard_cooldown`.
|
| 34 |
+
|
| 35 |
+
## Evaluation
|
| 36 |
+
|
| 37 |
+
MBPP+ (378 problems), n=160 samples, temperature 0.6, top_p 0.95, unbiased
|
| 38 |
+
pass@k. Note that scoring against MBPP+'s full test suite is substantially
|
| 39 |
+
stricter than MBPP's original 3 asserts (~8-10 points of pass@1).
|