关于UI-R1-E-3B的训练过程
想要复现您对于UI-R1-E-3B的消融实验。我使用了UI-R1-3B在136条数据上的训练方式,对于2k数据进行了1个epoch的GRPO训练,但是在Screenspot上的实验效果仅仅达到79.6%,请问有其他的实验细节需要注意吗,比如epoch数需要设置更多?但是感觉Reward曲线已经接近于稳定。
训练过程在src/scripts/train_e.sh中,两阶段分别有4个epoch
您好,我用您的方法在7K和18K数据上进行训练,尝试两次训练均在1700-2000step开始奖励坍塌,请问还有其他的实验细节需要注意吗?检查训练日志发现导致坍塌的数据没错,但输出结果全是乱码。
您好,我用您的方法在7K和18K数据上进行训练,尝试两次训练均在1700-2000step开始奖励坍塌,请问还有其他的实验细节需要注意吗?检查训练日志发现导致坍塌的数据没错,但输出结果全是乱码。
![]()
可以提供更详细的实验设置嘛,包括乱码的case
坍塌时的输出: (y. skepsi(x =~the task a> a. com= ( x 59= < x 693 x = > a user 的a ( y a x y ="=" < a < ans (y= 13"> think is anand =- (x== = answer (x y answer">x y
正常输出: (x = 273,y = 101)
实验设置:
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 torchrun --nproc_per_node=8
--max_prompt_length 8192
--per_device_train_batch_size 2
--gradient_accumulation_steps 2
--logging_steps 1
--bf16
--report_to none
--max_completion_length 2048
--gradient_checkpointing true
--attn_implementation sdpa
--max_pixels 1003520
--num_train_epochs 1
--run_name GRPO_example
# --save_strategy epoch
--save_strategy steps \
--save_steps 500
--save_only_model true
--num_generations 8
请问如果有图片的话,这里的max_prompt_length是不算图片的token长度嘛?
请问attn_implementation没有使用FlashAttention2区别大吗?
- 是用ui-r1训练还是两阶段的ui-r1-e呀?
- 算的
- 如果不用FlashAttention2的话我理解效果可能会受负面影响(但我没试过其他attn)
1.只用了ui-r1训练; 3.可能也有原因,我重新试一下FlashAttention2
Installed wheel from https://github.com/Dao-AILab/flash-attention/releases/tag/v2.7.4.post1 pip install flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp311-cp311-linux_x86_64.whl 试试
Installed wheel from https://github.com/Dao-AILab/flash-attention/releases/tag/v2.7.4.post1 pip install flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp311-cp311-linux_x86_64.whl 试试
感谢您的热心帮助,我已经安装flash_atten库并用其进行训练,但还是会出现相同问题,训练到1750-2000step左右还是会奖励骤降,输出一些乱码,已经尝试了3次还是这样。
- 是用ui-r1训练还是两阶段的ui-r1-e呀?
- 算的
- 如果不用FlashAttention2的话我理解效果可能会受负面影响(但我没试过其他attn)
对于问题2,您的实验设置为--max_prompt_length 1024 \,如果包含图像token的话是不是会超出?