Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0018--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0045--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0047--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0083--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0105--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0106--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0135--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0002--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0020--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0051--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0089--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0121--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0172--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0193--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0101--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0111--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0134--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0136--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0171--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0193--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0257--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0275--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0326--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0330--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0352--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0364--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0367--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0380--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0006--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0026--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0033--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0131--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0141--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0144--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0145--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0199--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0200--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0250--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0335--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0377--2d_none--0000_000.png +3 -0
- benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0395--2d_none--0000_000.png +3 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/Makefile +18 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/README.md +33 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/baselines/qwen2_5_vl_3b_clevr.sh +19 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/baselines/qwen2_5_vl_3b_geoqa8k.sh +19 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/config.yaml +96 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/format_prompt/caption_format.jinja +1 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/llama3.2v_critic_grpo.sh +29 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/mimo_vl_7b_llava_critic_grpo.sh +19 -0
- 之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/mimo_vl_rl_7b_llava_critic_grpo.sh +19 -0
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0018--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0045--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0047--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0083--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0105--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0106--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--N0135--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0002--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0020--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0051--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0089--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0121--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0172--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--P0193--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0101--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0111--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0134--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0136--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0171--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0193--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0257--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0275--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0326--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0330--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0352--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0364--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0367--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--T0380--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0006--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0026--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0033--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0131--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0141--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0144--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0145--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0199--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0200--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0250--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0335--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0377--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
benchmarks/VGMED/image_folder/SAMed2D_v1/fundus_photography/masks/fundus_photography--PALM19--V0395--2d_none--0000_000.png
ADDED
|
Git LFS Details
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/Makefile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.PHONY: build commit quality style
|
| 2 |
+
|
| 3 |
+
check_dirs := examples scripts verl setup.py
|
| 4 |
+
|
| 5 |
+
build:
|
| 6 |
+
python3 setup.py sdist bdist_wheel
|
| 7 |
+
|
| 8 |
+
commit:
|
| 9 |
+
pre-commit install
|
| 10 |
+
pre-commit run --all-files
|
| 11 |
+
|
| 12 |
+
quality:
|
| 13 |
+
ruff check $(check_dirs)
|
| 14 |
+
ruff format --check $(check_dirs)
|
| 15 |
+
|
| 16 |
+
style:
|
| 17 |
+
ruff check $(check_dirs) --fix
|
| 18 |
+
ruff format $(check_dirs)
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EasyR1 for LLaVA-Critic-R1
|
| 2 |
+
|
| 3 |
+
This codebase is a customized extension of [EasyR1](https://github.com/hiyouga/EasyR1), specifically modified to support RL training using LLaMA-3.2-Vision-11B-Instruct as the base model. For RL training using Qwen-2.5-VL and Mimo-VL as base models, please use the original EasyR1 codebase. We will integrate support for all models into a unified codebase in the future.
|
| 4 |
+
|
| 5 |
+
## Training based on Qwen-2.5-VL
|
| 6 |
+
|
| 7 |
+
```
|
| 8 |
+
bash ./examples/qwen2_5_vl_7b_llava_critic_grpo.sh
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Training based on ThinkLite-VL
|
| 12 |
+
|
| 13 |
+
```
|
| 14 |
+
bash ./examples/thinklite_vl_7b_llava_critic_grpo.sh
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Training based on Mimo-VL
|
| 18 |
+
|
| 19 |
+
### SFT checkpoint
|
| 20 |
+
```
|
| 21 |
+
bash ./examples/mimo_vl_7b_llava_critic_grpo.sh
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
### RL checkpoint
|
| 25 |
+
```
|
| 26 |
+
bash ./examples/mimo_vl_rl_7b_llava_critic_grpo.sh
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Training based on LLaMA-3.2-Vision
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
bash ./examples/llama3.2v_critic_grpo.sh
|
| 33 |
+
```
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/baselines/qwen2_5_vl_3b_clevr.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -x
|
| 4 |
+
|
| 5 |
+
export PYTHONUNBUFFERED=1
|
| 6 |
+
|
| 7 |
+
MODEL_PATH=Qwen/Qwen2.5-VL-3B-Instruct # replace it with your local file path
|
| 8 |
+
|
| 9 |
+
python3 -m verl.trainer.main \
|
| 10 |
+
config=examples/config.yaml \
|
| 11 |
+
data.train_files=BUAADreamer/clevr_count_70k@train \
|
| 12 |
+
data.val_files=BUAADreamer/clevr_count_70k@test \
|
| 13 |
+
data.format_prompt=./examples/format_prompt/r1v_format.jinja \
|
| 14 |
+
worker.actor.model.model_path=${MODEL_PATH} \
|
| 15 |
+
worker.rollout.tensor_parallel_size=1 \
|
| 16 |
+
worker.reward.reward_type=sequential \
|
| 17 |
+
worker.reward.reward_function=./examples/reward_function/r1v.py:compute_score \
|
| 18 |
+
trainer.experiment_name=qwen2_5_vl_3b_clevr \
|
| 19 |
+
trainer.n_gpus_per_node=2
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/baselines/qwen2_5_vl_3b_geoqa8k.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -x
|
| 4 |
+
|
| 5 |
+
export PYTHONUNBUFFERED=1
|
| 6 |
+
|
| 7 |
+
MODEL_PATH=Qwen/Qwen2.5-VL-3B-Instruct # replace it with your local file path
|
| 8 |
+
|
| 9 |
+
python3 -m verl.trainer.main \
|
| 10 |
+
config=examples/config.yaml \
|
| 11 |
+
data.train_files=leonardPKU/GEOQA_8K_R1V@train \
|
| 12 |
+
data.val_files=leonardPKU/GEOQA_8K_R1V@test \
|
| 13 |
+
data.format_prompt=./examples/format_prompt/r1v_format.jinja \
|
| 14 |
+
worker.actor.model.model_path=${MODEL_PATH} \
|
| 15 |
+
worker.rollout.tensor_parallel_size=1 \
|
| 16 |
+
worker.reward.reward_type=sequential \
|
| 17 |
+
worker.reward.reward_function=./examples/reward_function/r1v.py:compute_score \
|
| 18 |
+
trainer.experiment_name=qwen2_5_vl_3b_geoqa8k \
|
| 19 |
+
trainer.n_gpus_per_node=8
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/config.yaml
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
train_files: hiyouga/math12k@train
|
| 3 |
+
val_files: hiyouga/math12k@test
|
| 4 |
+
prompt_key: problem
|
| 5 |
+
answer_key: answer
|
| 6 |
+
image_key: image
|
| 7 |
+
max_prompt_length: 4096
|
| 8 |
+
max_response_length: 2048
|
| 9 |
+
rollout_batch_size: 256
|
| 10 |
+
val_batch_size: 1024
|
| 11 |
+
format_prompt: ./examples/format_prompt/math_format.jinja
|
| 12 |
+
override_chat_template: null
|
| 13 |
+
shuffle: true
|
| 14 |
+
seed: 1
|
| 15 |
+
max_pixels: 4194304
|
| 16 |
+
min_pixels: 262144
|
| 17 |
+
filter_overlong_prompts: true
|
| 18 |
+
|
| 19 |
+
algorithm:
|
| 20 |
+
adv_estimator: grpo
|
| 21 |
+
disable_kl: false
|
| 22 |
+
use_kl_loss: true
|
| 23 |
+
kl_penalty: low_var_kl
|
| 24 |
+
kl_coef: 1.0e-2
|
| 25 |
+
|
| 26 |
+
worker:
|
| 27 |
+
actor:
|
| 28 |
+
global_batch_size: 128
|
| 29 |
+
micro_batch_size_per_device_for_update: 4
|
| 30 |
+
micro_batch_size_per_device_for_experience: 8
|
| 31 |
+
max_grad_norm: 1.0
|
| 32 |
+
padding_free: true
|
| 33 |
+
ulysses_sequence_parallel_size: 1
|
| 34 |
+
is_entropy_reg: False
|
| 35 |
+
entropy_coef: 0.001
|
| 36 |
+
model:
|
| 37 |
+
model_path: Qwen/Qwen2.5-7B-Instruct
|
| 38 |
+
enable_gradient_checkpointing: true
|
| 39 |
+
trust_remote_code: true
|
| 40 |
+
freeze_vision_tower: false
|
| 41 |
+
optim:
|
| 42 |
+
lr: 1.0e-6
|
| 43 |
+
weight_decay: 1.0e-2
|
| 44 |
+
strategy: adamw # {adamw, adamw_bf16}
|
| 45 |
+
lr_warmup_ratio: 0.0
|
| 46 |
+
fsdp:
|
| 47 |
+
enable_full_shard: true
|
| 48 |
+
enable_cpu_offload: false
|
| 49 |
+
enable_rank0_init: true
|
| 50 |
+
offload:
|
| 51 |
+
offload_params: true # true: more CPU memory; false: more GPU memory
|
| 52 |
+
offload_optimizer: true # true: more CPU memory; false: more GPU memory
|
| 53 |
+
|
| 54 |
+
rollout:
|
| 55 |
+
n: 8
|
| 56 |
+
temperature: 1.0
|
| 57 |
+
top_p: 0.99
|
| 58 |
+
gpu_memory_utilization: 0.6
|
| 59 |
+
max_num_batched_tokens: 8192
|
| 60 |
+
max_model_len: 8192
|
| 61 |
+
enforce_eager: false
|
| 62 |
+
enable_chunked_prefill: false
|
| 63 |
+
tensor_parallel_size: 2
|
| 64 |
+
limit_images: 10
|
| 65 |
+
val_override_config:
|
| 66 |
+
temperature: 0.5
|
| 67 |
+
n: 1
|
| 68 |
+
|
| 69 |
+
ref:
|
| 70 |
+
fsdp:
|
| 71 |
+
enable_full_shard: true
|
| 72 |
+
enable_cpu_offload: true # true: more CPU memory; false: more GPU memory
|
| 73 |
+
enable_rank0_init: true
|
| 74 |
+
offload:
|
| 75 |
+
offload_params: false
|
| 76 |
+
|
| 77 |
+
reward:
|
| 78 |
+
reward_type: batch
|
| 79 |
+
reward_function: ./examples/reward_function/math.py:compute_score
|
| 80 |
+
|
| 81 |
+
trainer:
|
| 82 |
+
total_epochs: 15
|
| 83 |
+
max_steps: null
|
| 84 |
+
project_name: easy_r1
|
| 85 |
+
experiment_name: qwen2_5_7b_math_grpo
|
| 86 |
+
logger: ["console", "wandb"]
|
| 87 |
+
nnodes: 1
|
| 88 |
+
n_gpus_per_node: 8
|
| 89 |
+
val_freq: -1 # -1 to disable
|
| 90 |
+
val_before_train: false
|
| 91 |
+
val_only: false
|
| 92 |
+
val_generations_to_log: 3
|
| 93 |
+
save_freq: 10 # -1 to disable
|
| 94 |
+
save_limit: -1 # -1 to disable
|
| 95 |
+
save_checkpoint_path: null
|
| 96 |
+
load_checkpoint_path: null
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/format_prompt/caption_format.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{{ content | trim }} You FIRST describe the given image in a detailed manner, THEN think about the reasoning process as an internal monologue based on the generated description and given question and then provide the final answer. The description MUST BE enclosed within <caption> </caption> tags. The reasoning process MUST BE enclosed within <think> </think> tags. The final answer MUST BE put in \boxed{}.
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/llama3.2v_critic_grpo.sh
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -x
|
| 4 |
+
|
| 5 |
+
export PYTHONUNBUFFERED=1
|
| 6 |
+
|
| 7 |
+
MODEL_PATH=meta-llama/Llama-3.2-11B-Vision-Instruct # replace it with your local file path
|
| 8 |
+
|
| 9 |
+
python3 -m verl.trainer.main \
|
| 10 |
+
config=examples/config.yaml \
|
| 11 |
+
data.train_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 12 |
+
data.val_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 13 |
+
data.shuffle=True \
|
| 14 |
+
data.format_prompt=./examples/format_prompt/math_format.jinja \
|
| 15 |
+
data.rollout_batch_size=256 \
|
| 16 |
+
data.max_prompt_length=4096 \
|
| 17 |
+
data.prompt_key=question \
|
| 18 |
+
worker.actor.is_entropy_reg=False \
|
| 19 |
+
worker.actor.global_batch_size=128 \
|
| 20 |
+
worker.actor.optim.lr=5.0e-7 \
|
| 21 |
+
worker.actor.micro_batch_size_per_device_for_update=4 \
|
| 22 |
+
worker.actor.micro_batch_size_per_device_for_experience=8 \
|
| 23 |
+
worker.actor.model.model_path=${MODEL_PATH} \
|
| 24 |
+
worker.rollout.tensor_parallel_size=8 \
|
| 25 |
+
worker.rollout.limit_images=1 \
|
| 26 |
+
worker.rollout.gpu_memory_utilization=0.6 \
|
| 27 |
+
worker.reward.reward_function=./examples/reward_function/math.py:compute_score \
|
| 28 |
+
trainer.experiment_name=llama3.2v_critic_grpo \
|
| 29 |
+
trainer.n_gpus_per_node=8
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/mimo_vl_7b_llava_critic_grpo.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
MODEL_PATH=XiaomiMiMo/MiMo-VL-7B-SFT-2508
|
| 4 |
+
|
| 5 |
+
python3 -m verl.trainer.main \
|
| 6 |
+
config=examples/config.yaml \
|
| 7 |
+
data.train_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 8 |
+
data.val_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 9 |
+
data.filter_overlong_prompts=True \
|
| 10 |
+
data.prompt_key=question \
|
| 11 |
+
data.max_prompt_length=6142 \
|
| 12 |
+
worker.actor.is_entropy_reg=False \
|
| 13 |
+
worker.actor.global_batch_size=128 \
|
| 14 |
+
worker.actor.micro_batch_size_per_device_for_update=4 \
|
| 15 |
+
worker.actor.micro_batch_size_per_device_for_experience=8 \
|
| 16 |
+
worker.actor.model.model_path=${MODEL_PATH} \
|
| 17 |
+
trainer.experiment_name=mimo_vl_7b_llava_critic_grpo \
|
| 18 |
+
trainer.n_gpus_per_node=8
|
| 19 |
+
|
之前的代码版本/注意力关键词用于sam的/MedEvalKit/LLaVA-NeXT/llava-critic-r1/EasyR1/examples/mimo_vl_rl_7b_llava_critic_grpo.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
MODEL_PATH=XiaomiMiMo/MiMo-VL-7B-RL-2508
|
| 4 |
+
|
| 5 |
+
python3 -m verl.trainer.main \
|
| 6 |
+
config=examples/config.yaml \
|
| 7 |
+
data.train_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 8 |
+
data.val_files=lmms-lab/LLaVA-Critic-GRPO-dataset@train \
|
| 9 |
+
data.filter_overlong_prompts=True \
|
| 10 |
+
data.prompt_key=question \
|
| 11 |
+
data.max_prompt_length=6142 \
|
| 12 |
+
worker.actor.is_entropy_reg=False \
|
| 13 |
+
worker.actor.global_batch_size=128 \
|
| 14 |
+
worker.actor.micro_batch_size_per_device_for_update=4 \
|
| 15 |
+
worker.actor.micro_batch_size_per_device_for_experience=8 \
|
| 16 |
+
worker.actor.model.model_path=${MODEL_PATH} \
|
| 17 |
+
trainer.experiment_name=mimo_vl_rl_7b_llava_critic_grpo \
|
| 18 |
+
trainer.n_gpus_per_node=8
|
| 19 |
+
|