Skip to content

v6.0.0

Latest

Choose a tag to compare

@ClemensSchwarke ClemensSchwarke released this 20 Nov 16:57

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

Fixed

Breaking Changes

  • Algorithm update() methods now return (loss_dict, stats_dict) instead of only loss_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() accepts stats_dict instead of separate learning_rate, action_std, and rnd_weight arguments. Custom logging integrations must adapt.
  • Logging tags moved from Train/ to Training/ and from Perf/ to Performance/. Additionally, Perf/total_fps became Performance/steps_per_second, Loss/learning_rate became Optimizer/learning_rate, Policy/mean_std became Model/mean_policy_std, and Rnd/weight became Rnd/rnd_weight for consistency. Update dashboards and scripts that consume these metrics.
  • PPO's Loss/entropy now reports the negative-entropy loss term rather than positive policy entropy.
  • check_nan() was removed. Use find_nonfinite() and raise_if_nonfinite() for custom validation. The standard runner now reports nonfinite environment outputs at the end of the rollout, before optimization.
  • network_cfg was inserted before distribution_cfg in the MLPModel, CNNModel, and RNNModel constructors. Calls passing these and subsequent arguments positionally must adapt; keyword arguments are recommended.
  • The unused MLP.init_weights() and CNN.init_weights() methods were removed. Custom callers must initialize their weights directly.

New Contributors