Repository navigation
Conversation
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
Signed-off-by: Christopher Z. Cui <[email protected]>
…id being mistaken as a secret Signed-off-by: Christopher Z. Cui <[email protected]>
…ing secret checker Signed-off-by: Christopher Z. Cui <[email protected]>
…omehow Signed-off-by: Christopher Z. Cui <[email protected]>
…d in pull request Signed-off-by: Christopher Zhang Cui <[email protected]>
Signed-off-by: Christopher Zhang Cui <[email protected]>
…ating README Signed-off-by: Christopher Zhang Cui <[email protected]>
|
This can probably be refactored to use #1072 once merged I will check in or help refactor this! |
|
Checking in on this PR, going to see if I can adapt it to the gymnasium interface in Nemo Gym. Sorry for the delay here. |
|
Hey @christopherzc i integrated this with the gymansium interface that is now in gym and removed some things, please take a look if you can! #1556 I plan to add example rollouts, put into |
|
Hi, thanks for picking up on this! It fell out of my context with other things but I'll set aside some time to double check things over this weekend. |
|
I took a pass, looks good. One note is that we merged the tt_split branch into the main TALES branch. Key difference from the NeMoGYM is that the jericho train / test split was removed but I think its fine for now. All current jericho games are treated as the test split and we have some plans for a training jericho split that should be coming out soon. |
Integrates TALES: Text-Adventure Learning Environment Suite https://microsoft.github.io/tale-suite/ Includes text-based games from the following frameworks: [Jericho](https://github.com/microsoft/jericho), [TextWorld](https://github.com/microsoft/textworld), [TextWorld-Express](https://github.com/cognitiveailab/TextWorldExpress), [ScienceWorld](https://github.com/allenai/ScienceWorld), [ALFWorld](https://github.com/alfworld/alfworld)). Updates #874 to use the Nemo Gym gymnasium environment interface, merge to main, and shorten the additional docs and scripts. --------- Signed-off-by: Christopher Z. Cui <[email protected]> Signed-off-by: Christopher Zhang Cui <[email protected]> Signed-off-by: Christian Munley <[email protected]> Co-authored-by: Christopher Zhang Cui <[email protected]>
|
closing in favor of #1556 |
Replacement PR for: #203
Contributors: @christopherzc
Contributing To NeMo-Gym — PR Answers (TALES Resource Server)
1) Necessary information
i. Corresponding dataset on the spreadsheet: N/A
ii. Description of the prompt (source + domain):
iii. Description of the environment:
iv. Description of the verifier:
v. Legal approval status:
N/A
2) Simple correctness check
i Commands used to run the server for the uploaded data:
ii Resulting rollout and judges (5 examples):
Please see examples under data/gpt4o_single_turn_examples
iii Additional notes for running the server properly:
Please see the README.md under example_scripts/single_turn/ for more details
examples_clean are the stripped down input-output for ease of viewing.
examples_full contain the entire input-output.examples_full have been removed due to the response id triggering the secret detector.3) Tests
Test files / command to run tests:
Notes on coverage / responsibilities:
The use of the walkthroughs for Step 4 implicitly acts as a unit test for the environments. If needed, a test can be added verifying the outcome of the walkthrough. (Am wanting to wait until the actual multi-turn is working before I added this)
4) Reward profiling
Models:
We generate 500+ prompt-response pairs for the specified model. As TALES is inherently multi-turn, not every step on a correct trajectory will return a reward. We do the following to emulate the reward distribution for single-turn domains.
Method (from README):
/no_thinkto the user input.Command used:
examples_clean are the stripped down input-output for ease of viewing.
examples_full contain the entire input-output.examples_full have been removed due to the response id triggering the secret detector.Report the reward distribution (percent all-correct / all-incorrect / mixture):
See the outputs under data/single_turn_rollouts
5) Training-based correctness check (after NeMo Gym + NeMo RL integration)
N/A (Was told this isn't ready yet)
6) PR Check and Review
Reviewer (independent reproduction):
Prithviraj Ammanabrolu ([email protected])
Reviewer checklist:
Signing Your Work
All commits include a DCO sign-off:
git commit -s -m "Add TALES resource server integration and examples"Pointers to examples & docs (from repo layout)
Single-turn examples & generator scripts:
resources_servers/tales/example_scripts/single_turn/generate_single_turn_gpt_rollouts.py(5 GPT-4o examples)generate_single_turn_rollouts.py(~500+ prompts for reward profiling)Multi-turn drafts & notes: see
example_scripts/multi_turn/and notes in READMESample data:
data/single_turn_rollouts/example_clean.jsonl(referenced in README)Environment / Setup Recap
Java required (ScienceWorld only):
sudo apt-get update && sudo apt-get install -y default-jre default-jdkStart vLLM (example):
Start NeMo Gym server for TALES: