OPD icon indicating copy to clipboard operation
OPD copied to clipboard

verl example script

Open SydCS opened this issue 6 months ago • 3 comments

Hi! Thank you for these detailed and insightful analyses! Could you provide the verl example script you used in https://tsinghuanlp.feishu.cn/wiki/V2Y0wAOxYi3spDk049EczRtNnUh "复现verl原始的topk distillation"? A million thanks!

SydCS avatar May 29 '26 16:05 SydCS

Hi, thank you for your interest!

We have added the verl example script used for reproducing the original top-k distillation setting here:

verl_example/opd.sh

For top-k KL OPD, please use:

export DISTILLATION_LOSS_MODE=forward_kl_topk
export USE_POLICY_GRADIENT=False

For sampled-token OPD, please use:

export DISTILLATION_LOSS_MODE=k1
export USE_POLICY_GRADIENT=True

We also added a short README under verl_example/ with the corresponding configuration notes. Please use verl v0.8.0 or later.

Turingzero0 avatar May 30 '26 16:05 Turingzero0

Thanks a lot ~ In the config of verl_example/opd.sh, I could not find the verl/recipe/r1_ascend/deepscaler.py file. Can I leave it to the default config (default_compute_score logic in verl)?

SydCS avatar Jun 04 '26 14:06 SydCS

Thanks a lot ~ In the config of verl_example/opd.sh, I could not find the verl/recipe/r1_ascend/deepscaler.py file. Can I leave it to the default config (default_compute_score logic in verl)?

Thanks for pointing this out. The deepscaler.py file is only used for extracting the answer inside \boxed{} and comparing it with the ground truth during scoring. It is not required for training and does not affect the training process. You can safely ignore this parameter and leave it as the default default_compute_score logic in verl.

Turingzero0 avatar Jun 04 '26 15:06 Turingzero0