Repository navigation
Overview
This release adds Soft Actor-Critic (SAC) for off-policy reinforcement learning. The implementation incorporates many ideas from FlashSAC by Kim et al. and supports CUDA graph acceleration and distributed training. The release also separates optimization losses from diagnostic statistics in the algorithm and logging interfaces.
Custom algorithms, runners, and logging integrations require the adjustments described below.
Full Changelog: v5.5.2...v6.0.0
Added
- Adds SAC with optional FlashSAC components by @rafaelcathomen, @ClemensSchwarke, and @lgulich in #254
- Adds distributed training and CNN support for SAC by @jnskkmhr, @lgulich, and @ClemensSchwarke in #274
- Captures SAC updates and environment interaction in CUDA graphs by @lgulich and @ClemensSchwarke in #273
- Adds PPO configuration checks by @ClemensSchwarke in #260
Fixed
- Cleans up algorithm statistics for the logger by @ClemensSchwarke in #265
- Removes unused
init_weightsfunctions by @ClemensSchwarke in #262
Breaking Changes
- Algorithm
update()methods now return(loss_dict, stats_dict)instead of onlyloss_dict. Custom callers must unpack both dictionaries. - Algorithm
process_env_step()methods now return a dictionary of per-environment metrics. Custom algorithms used with the standard runner must provide this dictionary. Logger.process_env_step()now accepts(dones, extras, step_dict).Logger.log()acceptsstats_dictinstead of separatelearning_rate,action_std, andrnd_weightarguments. Custom logging integrations must adapt.- Logging tags moved from
Train/toTraining/and fromPerf/toPerformance/. Additionally,Perf/total_fpsbecamePerformance/steps_per_second,Loss/learning_ratebecameOptimizer/learning_rate,Policy/mean_stdbecameModel/mean_policy_std, andRnd/weightbecameRnd/rnd_weightfor consistency. Update dashboards and scripts that consume these metrics. - PPO's
Loss/entropynow reports the negative-entropy loss term rather than positive policy entropy. check_nan()was removed. Usefind_nonfinite()andraise_if_nonfinite()for custom validation. The standard runner now reports nonfinite environment outputs at the end of the rollout, before optimization.network_cfgwas inserted beforedistribution_cfgin theMLPModel,CNNModel, andRNNModelconstructors. Calls passing these and subsequent arguments positionally must adapt; keyword arguments are recommended.- The unused
MLP.init_weights()andCNN.init_weights()methods were removed. Custom callers must initialize their weights directly.
New Contributors
- @rafaelcathomen made their first contribution in #254
- @lgulich made their first contribution in #273