File size: 280 Bytes
0bcf150 | 1 2 3 4 5 6 7 8 9 10 11 12 |
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")
|