Views
No views yet
correctness + lambda * length_penalty
correctness: 1.0 if answer matches ground truth, 0.0 otherwiselength_penalty: -num_tokens / max_completion_length| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen3-4B |
| Method | GRPO with GDPO length penalty |
| Lambda (length penalty weight) | 0.5 |
| LoRA rank | 16 |
| LoRA alpha | 16 |
| LoRA target modules | all-linear (q, k, v, o, gate, up, down proj) |
| Learning rate | 5e-5 (constant schedule) |
| KL penalty (beta) | 0.0 |
| Temperature | 1.0 |
| Top-p | 0.95 |
| Prompts per step | 6 |
| Rollouts per prompt | 8 |
| Batch size | 48 (6 x 8) |
| Max completion length | 15,000 tokens |
| Total steps | 200 |
| Optimizer | AdamW (weight_decay=0.1, betas=[0.9, 0.99]) |
| Max grad norm | 1.0 |
| PPO epochs | 1 |
| Clip ratio | 0.2 |
| Framework | Verl v0.6.1 + FSDP2 |
| Hardware | 4x NVIDIA H200 |
agentica-org/DeepScaleR-Preview-Dataset)| Metric | Step 1 | Step 100 | Step 199 |
|---|---|---|---|
| Mean response length | 1,414 | 61 | 92 |
| Max response length | 4,289 | 134 | 204 |
| KL divergence | 0.0 | 0.29 | 0.22 |
| Policy loss | 0.032 | 0.003 | 0.007 |
| Grad norm | 0.019 | 0.195 | 0.149 |
| Entropy | 0.140 | 0.057 | 0.061 |
checkpoints/global_step_20/ through checkpoints/global_step_200/adapter_model.safetensors (~127MB) - LoRA adapter weightsadapter_config.json - PEFT/LoRA configuration1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B")
5tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B")
6
7# Load a specific checkpoint
8model = PeftModel.from_pretrained(base_model, "brikdavies/deepscaleR/checkpoints/global_step_200")20260223_182638_deepscaler_gdpo_lambda0.5grpo-deepscaler