Add CyberGym reinforcement-learning integration - #42
Open
WaldenLee2005 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
yeto rlwith CyberGym and mock environmentsyeto.rlHow to use the integration
Install Yeto:
In a CyberGym checkout, install the server and download the ten default task runners:
pip install -e '.[dev,server]' python scripts/server_data/download_subset.py --max-workers 4Keep CyberGym local and start it with raw task IDs (omit
--mask_map_path):Run one short PPO update:
Full setup details and failure guidance are in
docs/CYBERGYM_RL.md.Tested
pytest tests/test_cybergym_checksum.py tests/test_rl_cli.py -v— 4 passed, 1 skipped (the live-server connectivity check skips when CyberGym is not running)yeto/rl/run.pyis present in the built wheelQwen/Qwen2.5-0.5B, 1 iteration, 16 steps, and 1 PPO epoch:loss=38.8535and meanreward=-0.88policy_state_dict.ptwere saved to./integration_testThis demonstrates the end-to-end RL integration, not a verified CyberGym benchmark solve. The exit-code-1 candidate was a vulnerable-runner crash signal; it was not selected as a final answer and verified against the fixed runner.
Repository-wide pytest collection still requires the unrelated session blob expected by
cot_extraction/test_blob.py; without it that module exits during collection.