feat: add AReaL AgentWorkflow wrapping WAADesktopEnv for RL training#140
Merged
feat: add AReaL AgentWorkflow wrapping WAADesktopEnv for RL training#140
Conversation
Add proof-of-concept integration with AReaL (inclusionAI/AReaL), an async RL training framework. The WAADesktopWorkflow class implements AReaL's agent workflow pattern: an async run() method that receives task data and an OpenAI-compatible proxy URL, runs a full desktop automation episode against WAADesktopEnv, and returns a scalar reward. New files: - openadapt_evals/training/areal_workflow.py: WAADesktopWorkflow class with screenshot-to-base64 encoding, multi-turn message building, action parsing via parse_action_json, and dense milestone rewards. - configs/areal_waa_grpo.yaml: AReaL config template for single-GPU GRPO training with Qwen2.5-VL-3B-Instruct. - tests/test_areal_workflow.py: 14 tests covering episode execution, reward computation, edge cases, and message building. AReaL is an optional dependency -- the workflow gracefully handles the case where AReaL is not installed. Tests use mock adapters and mock OpenAI clients (no real VM or AReaL needed). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
WAADesktopWorkflowclass implementing AReaL's agent workflow pattern for RL training of desktop automation agentsconfigs/areal_waa_grpo.yaml) for single-GPU training with Qwen2.5-VL-3B-InstructDetails
AReaL (github.com/inclusionAI/AReaL) is an async RL training framework that supports agent workflows where your code talks to an OpenAI-compatible proxy, and AReaL transparently handles token tracking, logprobs, and gradient computation.
WAADesktopWorkflow.run()executes one episode:evaluate_dense()Key design decisions:
parse_action_json,RLEnvironment,TaskConfig,evaluate_dense()examples/agent_workflow/config.yaml)Test plan
tests/test_areal_workflow.py)🤖 Generated with Claude Code