Explore the research collection
1 entry · Follow this search
- Other
OpenEnv Integration for Training LLMs with Environments
Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.