rl4phyx-backup / root_scripts /read_reward.py
YUNTA88's picture
Upload root_scripts/read_reward.py with huggingface_hub
0bcf150 verified
import verl, os
verl_dir = os.path.dirname(verl.__file__)
# Read reward.py
reward_file = os.path.join(verl_dir, "trainer", "ppo", "reward.py")
if os.path.exists(reward_file):
with open(reward_file) as f:
print(f.read()[:3000])
else:
print("reward.py not found")