Skip to content

v0.5.0

Choose a tag to compare

@garrett4wade garrett4wade released this 10 Dec 15:22
· 684 commits to main since this release
3b9eb54

Highlights

The newly released v0.5.0 of AReaL introduces two core innovations: Seamless Agentic RL and the Single Controller architecture:

  • Seamless Agentic RL: AReaL provides a seamless intelligent agent training service via OpenAI-compatible APIs. This facilitates seamless collaboration among environment providers, algorithm developers, and system engineers, forming a zero-friction pipeline in complex engineering workflows and significantly boosting development efficiency and system maintainability.

  • Single Controller Architecture: Eliminates long-tail latency and data imbalance issues inherent in SPMD (Single Program, Multiple Data) models. This layered design enhances inference scalability, enables fine-grained system-level control, and preserves algorithmic flexibility while minimizing code migration costs for algorithm developers.

Other changes include:

  • Performance & Scalability: Major refactoring to streamline step detection, assignment logic, and workflow batching. Improved distributed training with fixes for NCCL timeouts, Gloo group barriers, and vocab-parallel logprobs for FSDP.

  • Model & Hardware Support: Added single LoRA functionality for Ascend-vLLM and improved handling for Vision-Language Models (VLMs).

  • Fixes & Refinements: Resolved numerous bugs related to data loading, reward timeouts, interaction caching, process cleanup, and tool call parsing. Significant code refactoring to merge duplicate logic, improve type hints, and centralize asset management. Project-wide code formatting switch to ruff.

Future Work

AReaL currently supports the basic Single Controller mode and Agentic RL training pipeline. Future enhancements include:

  • Optimized data flow and distributed launch capabilities under Single Controller mode;
  • Automatic scaling, fault recovery, and high-availability training;
  • Improved training-inference performance in agent-centric scenarios.

What's Changed

  • update readme for qwen3-vl by @garrett4wade in #578
  • [FIX] add recipe directory to pre-commit checks by @fishcrap in #580
  • [FIX] reduce reward timeout warning by @fishcrap in #579
  • [FIX] fix compute logp temperature by @fishcrap in #581
  • feat: rebuild step detection around global batches by @rchardx in #583
  • chore: extend wait timeout and hardens config checks by @rchardx in #585
  • feat: streamline step assignment logic by @rchardx in #584
  • fix: Use background threads to commit tasks and fetch results in workflow executor by @garrett4wade in #587
  • fix: reuse aiohttp.ClientSession in agenerate by @garrett4wade in #589
  • chore: automates session tracing context by @rchardx in #591
  • [feat] add Serializer for rpc server by @CormickKneey in #566
  • doc: improve tracer documentation with custom phase support and improved plotting by @rchardx in #594
  • [feature] Support concat export completions in proxy mode by @yulangz in #582
  • Fix trainer to use backend information from allocation mode by @dhh1995 in #596
  • fix: fix the stucking issue of rollout_batch by @garrett4wade in #595
  • fix: extends NCCL group timeout coverage by @rchardx in #598
  • chore: use typevar to type hint loaded config by @dhh1995 in #603
  • fix: safely close all ClientSessions with ContextVar by @garrett4wade in #605
  • chore: remove requirements.txt by @garrett4wade in #604
  • [Feat] Add train/rollout offload support by @fishcrap in #590
  • [FIx] Use gloo group barriers for distributed synchronization by @fishcrap in #607
  • feat: adds scheduled profiler tracing by @rchardx in #608
  • refactor: let WorkflowExecutor.wait return a list with None by @garrett4wade in #612
  • [feat] add local scheduler for single controller mode by @daihaowz in #610
  • refactor: separate BatchTaskDispatcher from WorkflowExecutor by @garrett4wade in #613
  • chore: upload paper to the repo by @garrett4wade in #616
  • chore: clarifies agent onboarding guide by @rchardx in #617
  • refactor: improves async coordination by @rchardx in #618
  • [FIX] fix enable_offload break change and add offload/onload API by @fishcrap in #625
  • refact: update gconfig to update stop token ids in workflows instead of in example scripts by @dhh1995 in #626
  • chore: improve workflow batching safeguards by @rchardx in #624
  • chore: ensures worker threads exit cleanly by @rchardx in #630
  • bug fix: correctly shuffling data with distributed sampler by @garrett4wade in #632
  • rename CompletionCache to InteractionCache by @dhh1995 in #631
  • refactor: merge base_hf_engine with fsdp_engine for code cleanup by @garrett4wade in #629
  • chore: format all files under areal/utils with ruff by @garrett4wade in #635
  • chore: format all tests with ruff by @garrett4wade in #636
  • chore: format remaining files under areal/ with ruff by @garrett4wade in #637
  • ci: update ci formatter to ruff by @garrett4wade in #638
  • chore: tunes NCCL IB settings by @rchardx in #640
  • [feat] implement train controller for single controller by @daihaowz in #614
  • fix: modify the default value of "shuffle" and "drop_last" for validation datasets by @garrett4wade in #633
  • [Feat] Single LoRA functionality for ascend-vLLM by @HwVanICI in #621
  • fix: prevent zombie vLLM processes when Ray launcher kills tasks by @zhshgmail in #623
  • refactor: add export_stats as engine's method by @garrett4wade in #643
  • [feat] impl rollout controller for single controller by @dingzhiqiang in #611
  • feat: implement proximal log-probability approximation for decoupled PPO by @zhshgmail in #600
  • fix: fixes CLI docs import order by @rchardx in #646
  • refactor: refines PPO/GRPO loss by @rchardx in #650
  • refactor: merge duplicate process termination functions into unified kill_process_tree by @garrett4wade in #648
  • feat: simplify openAI agent integration and allow training with any customized agent by @garrett4wade in #657
  • fix: tear down local inference servers when caling destroy by @garrett4wade in #659
  • fix: vlm input slicing by @HwVanICI in #651
  • refactor: move logprob and value computation into TrainEngine by @rchardx in #663
  • fix: fix drop last for data loader with distributed sampler by @dhh1995 in #665
  • [FIX] Initialize llm_addrs in Slurm launcher for SFT jobs by @fishcrap in #662
  • refactor: apply PPOTrainer and SFTTrainer in example scripts by @garrett4wade in #660
  • feature: implement vocab-parallel logprobs for FSDP by @rchardx in #667
  • refact: expose workflow executor in inference engine by @dhh1995 in #676
  • fix: raise AttributeError instead of returning None in Platform.getattr by @rchardx in #672
  • fix: add missing device_control_env_var to CpuPlatform by @rchardx in #681
  • fix: override workflow_executor property in MockInferenceEngine by @rchardx in #682
  • refactor: make processing multi_modal_input generic by @HwVanICI in #678
  • refactor: refactor attention mask generation logic for clarity by @rchardx in #685
  • [Feat] Implement GRPO trainer and weight exchange for single-controller mode by @dingzhiqiang in #666
  • refact: rename set_final_reward to set_last_reward, also fix openai gen args by excluding lora_name by @dhh1995 in #675
  • fix: fix CPU offloading in FSDP grad clipping and weight updates by @rchardx in #680
  • fix: enable gradient checkpointing by default by @jwhj in #689
  • fix: add vllm dependencies in gsm8k-grpo for single controller by @HwVanICI in #691
  • fix: fix bug and refact interaction cache by @dhh1995 in #668
  • fix: catch tool call parse errors, fall back to no tool calls by @dhh1995 in #696
  • feat: support different api format conversion for gconfig, delay imports for cli args by @dhh1995 in #693
  • fix: prevent deadlock in AsyncRewardWrapper cleanup during destroy by @rchardx in #697
  • improve: update multi turn math example with concat as default method by @dhh1995 in #694
  • fix: support deprecated max_tokens usage in client, rename max_tokens to max_total_tokens in completion by @dhh1995 in #699
  • fix: disable torch.compile in CI/test to prevent Inductor hang by @rchardx in #701
  • feat: implement SAPO (Soft Adaptive Policy Optimization) by @Bruce-rl-hw in #670
  • chore fix: fix importing with sapo_loss_fn by @garrett4wade in #703
  • refactor: centralize test asset resolution with HuggingFace fallback by @rchardx in #702
  • fix: mock kill_process_tree in LocalScheduler tests to prevent CI hangs by @rchardx in #704
  • feat: [proxy agent] implement separated agent workflow that interacts with the proxy training server by @dhh1995 in #700
  • [Fix] Minor fix on Tongyi DeepResearch example. by @nuzant in #706
  • chore: change the emoji of README by @garrett4wade in #707
  • Change README emoji by @garrett4wade in #708
  • bump v0.5.0 by @garrett4wade in #709

New Contributors

Full Changelog: v0.4.1...v0.5.0