Update main_ppo.py
Browse files- main_ppo.py +3 -1
main_ppo.py
CHANGED
|
@@ -17,13 +17,15 @@ Note that we don't combine the main with ray_trainer as ray_trainer is used by o
|
|
| 17 |
|
| 18 |
from verl import DataProto
|
| 19 |
import torch
|
| 20 |
-
from verl.utils.reward_score import gsm8k, math, multiply, countdown, kk
|
| 21 |
from verl.trainer.ppo.ray_trainer import RayPPOTrainer
|
| 22 |
|
| 23 |
|
| 24 |
def _select_rm_score_fn(data_source):
|
| 25 |
if data_source == 'openai/gsm8k':
|
| 26 |
return gsm8k.compute_score
|
|
|
|
|
|
|
| 27 |
elif data_source == 'lighteval/MATH':
|
| 28 |
return math.compute_score
|
| 29 |
elif "multiply" in data_source or "arithmetic" in data_source:
|
|
|
|
| 17 |
|
| 18 |
from verl import DataProto
|
| 19 |
import torch
|
| 20 |
+
from verl.utils.reward_score import gsm8k, math, multiply, countdown, kk, amazonmix
|
| 21 |
from verl.trainer.ppo.ray_trainer import RayPPOTrainer
|
| 22 |
|
| 23 |
|
| 24 |
def _select_rm_score_fn(data_source):
|
| 25 |
if data_source == 'openai/gsm8k':
|
| 26 |
return gsm8k.compute_score
|
| 27 |
+
elif data_source == "IND_Diverse_Instruction":
|
| 28 |
+
return amazonmix.compute_score
|
| 29 |
elif data_source == 'lighteval/MATH':
|
| 30 |
return math.compute_score
|
| 31 |
elif "multiply" in data_source or "arithmetic" in data_source:
|