RLEF Qwen3-4B
Lzvick/rlef-qwen3-4b
Merged fp16 checkpoint of Qwen/Qwen3-4B-Instruct-2507 after format SFT and 250 steps of GRPO. The training artifact is a rank-16 LoRA. The weights in this repository are that LoRA merged into the base. Every number below was measured by loading the LoRA on the fp16 instruct base before the merge, not by re-running the benchmarks on this saved file.
Training
- Base:
Qwen/Qwen3-4B-Instruct-2507 - Format SFT: 80 steps on gold
write_filetraces, LoRA rank 16, alpha 16 - RLEF: GRPO,
loss_type=dr_grpo, 250 steps, continued from the SFT adapter - Reward: binary hidden tests, plus a small format bonus
- Hardware: one Nvidia T4
Project eval
Hidden tests, k=4, temperature 0.8, 512 new tokens. pass@1 is the first sample. pass@4 is whether any of the four passed.
| Split | Tasks | Instruct pass@1 | Instruct pass@4 | Format SFT pass@1 | Format SFT pass@4 | RLEF pass@1 | RLEF pass@4 |
|---|---|---|---|---|---|---|---|
| Smoke | 6 | 0.00 | 0.17 | 0.50 | 1.00 | 1.00 | 1.00 |
| Agent | 4 | 0.00 | 0.50 | 0.25 | 1.00 | 1.00 | 1.00 |
Instruct smoke pass@4 is 1 of 6 tasks. Source: rlef-4b-grpo.
GSM8K
lm-eval, full test set (1319), 5-shot, fp16, greedy, chat template. Notebook.
| Model | Strict | Flexible |
|---|---|---|
| Qwen3-4B-Instruct-2507 | 73.4% | 79.2% |
| RLEF Qwen3-4B | 83.7% | 86.3% |
| Qwen2.5-Coder-3B-Instruct | 66.6% | 67.8% |
Strict stderr is about 1.0 to 1.3 points.
IFEval
lm-eval, full set (541), 0-shot, fp16, greedy, chat template. Notebook. Prompt-level strict accuracy is the headline. Its standard error is about 1.6 points for the 4B models, so the RLEF edge over the instruct checkpoint sits inside that noise.
| Model | Prompt strict | Prompt loose | Instruction strict | Instruction loose |
|---|---|---|---|---|
| Qwen3-4B-Instruct-2507 | 82.4% | 86.0% | 87.8% | 90.0% |
| RLEF Qwen3-4B | 83.5% | 87.2% | 89.0% | 91.4% |
| Qwen2.5-Coder-3B-Instruct | 47.9% | 50.1% | 57.3% | 59.5% |
ARC-Challenge, Winogrande, TruthfulQA
lm-eval, 0-shot, fp16, multiple choice, chat template. Notebook. ARC reports accuracy. Normalized accuracy is within a point of it.
| Model | ARC-Challenge (1172) | Winogrande (1267) | TruthfulQA MC2 (817) |
|---|---|---|---|
| Qwen3-4B-Instruct-2507 | 43.2% | 55.5% | 58.2% |
| RLEF Qwen3-4B | 48.3% | 60.8% | 60.2% |
| Qwen2.5-Coder-3B-Instruct | 41.6% | 60.1% | 47.2% |
Standard errors are about 1.4 to 1.7 points. The RLEF gains on ARC and Winogrande clear that band. The TruthfulQA gap against the instruct checkpoint does not.
Left out
HumanEval pass@1 was 0 for every model that finished, including the 3B coder. The create_test filter did not accept the generations. That column is not reported.
Qwen3.5-4B scored 4.2% flexible on GSM8K in this harness. It spent the token budget inside its thinking trace. That run is not reported as a math result.
Raw numbers
results/benchmarks.json is the copy used for the card and for a later figure.