Skip to content

Can not reproduce the results, showing the model downgrade performance. #2

Description

@linkedlist771

Hi, I really appreciate your work on the R1 reproduce experiments, I have tried to reproduce you work on a 8x3090 server with the train_1.5b.sh, the workflow runs, but the model's accuracy downgrades. here is my config:

  1. Config
/workspace/simpleR1/src/run_grpo.py \
  --do_train True \
  --config configs/grpo_config.yaml \
  --output_dir outputs/models/Qwen2.5-1.5B-Instruct_data-hendrycks-MATH-benchmark_date-2025-07-12 \
  --check_gpu_idle True \
  --model_name_or_path /home/llm_models/Qwen2.5-1.5B-Instruct \
  --train_dataset_name nlile/hendrycks-MATH-benchmark \
  --eval_dataset_name HuggingFaceH4/MATH-500 \
  --num_train_epochs 1 \
  --num_generations 24 \
  --num_eval_generations 1 \
  --per_device_train_batch_size 3 \
  --per_device_eval_batch_size 2 \
  --dynamic_sampling True \
  --max_resample_attempts 3 \
  --gradient_accumulation_steps 1 \
  --num_iterations 3 \
  --torch_empty_cache_steps 1 \
  --num_train_samples_per_dataset 2000 \
  --num_test_samples_per_dataset -1 \
  --max_completion_length 2048 \
  --max_eval_completion_length 4096 \
  --use_vllm True \
  --vllm_mode colocate \
  --vllm_gpu_memory_utilization 0.3 \
  --reward_funcs accuracy format tag \
  --reward_weights 8 1 1 \
  --loss_type bnpo \
  --scale_rewards False \
  --mask_truncated_completions True \
  --epsilon 0.2 \
  --epsilon_high 0.3 \
  --temperature 1.0 \
  --top_p 0.95 \
  --eval_temperature 0.7 \
  --eval_top_p 0.95 \
  --repetition_penalty 1.0 \
  --beta 1e-6 \
  --compute_kl True \
  --lr_scheduler_type constant \
  --learning_rate 5e-6 \
  --save_strategy steps \
  --save_steps 100 \
  --eval_strategy steps \
  --eval_steps 10 \
  --eval_on_start True \
  --log_level info \
  --wandb_project simpleR1-test \
  --run_name Qwen2.5-1.5B-Instruct_data-hendrycks-MATH-benchmark_date-2025-07-12

Here is the results:

  1. Results:
Image Image Image Image

The accuracy related reward keeps on fluctuating and in eval stage the model's performance keeps downgrade. For the eval results below, it seems that the model learns nothing.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions