Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stronger reward verification sandbox #207

Closed
wants to merge 14 commits into from

Conversation

ZefanW
Copy link
Contributor

@ZefanW ZefanW commented Feb 5, 2025

Add stronger verification support as is used in https://github.com/PRIME-RL/PRIME

  • Batched verification
  • Python interpreter
  • Stronger math verifier
  • Continuous score for code test

metadata_list.append({})


def check_correctness(in_outs: Optional[dict], generation, timeout=10, debug=True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test case to show the usage of this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 7f031b9

import asyncio
from functools import partial

from tqdm.asyncio import tqdm

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ProcessPoolExecutor / asyncio libs are no longer needed in this file

@@ -142,6 +142,7 @@ reward_model:
ulysses_sequence_parallel_size: 1 # sp size
use_dynamic_bsz: ${critic.use_dynamic_bsz}
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
reward_manager: naive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add this option to https://github.com/volcengine/verl/blob/main/docs/examples/config.rst as well? thanks!

Copy link
Collaborator

@eric-haibin-lin eric-haibin-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments. No major concern from my side.

@vermouth1992 vermouth1992 changed the title [WIP] Add stronger reward verification sandbox Add stronger reward verification sandbox Feb 9, 2025
@ZefanW ZefanW closed this Feb 9, 2025
vermouth1992 pushed a commit that referenced this pull request Feb 10, 2025
Add stronger verification support as is used in
https://github.com/PRIME-RL/PRIME

- [x] Batched verification
- [x] Python interpreter
- [x] Stronger math verifier
- [x] Continuous score for code test

Re-opening #207 to trigger
automatic workflows
as12138 pushed a commit to as12138/verl that referenced this pull request Feb 20, 2025
Add stronger verification support as is used in
https://github.com/PRIME-RL/PRIME

- [x] Batched verification
- [x] Python interpreter
- [x] Stronger math verifier
- [x] Continuous score for code test

Re-opening volcengine#207 to trigger
automatic workflows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants