unilab.algos.torch.hora.rsl_rl_compat

Compatibility helpers for HORA’s supported RSL-RL config schemas.

The HORA APPO code uses these helpers to normalize owner configs before constructing grouped actor/critic modules across supported RSL-RL releases.

Functions

convert_config_v3_to_v4(cfg)

Convert a legacy UniLab PPO/APPO config into the RSL-RL v4 schema.

convert_config_v5(cfg)

Convert a legacy UniLab PPO/APPO config into the RSL-RL v5 schema.

get_rsl_rl_version()

Resolve the installed RSL-RL package version.

is_rsl_rl_v4()

Check whether the active RSL-RL runtime is version 4 or newer.

is_rsl_rl_v5()

Check whether the active RSL-RL runtime is version 5 or newer.

unilab.algos.torch.hora.rsl_rl_compat.get_rsl_rl_version()[source]

Resolve the installed RSL-RL package version.

Parameters:

None.

Return type:

str

Returns:

Installed version string from either rsl-rl-lib or the legacy rsl-rl package name.

unilab.algos.torch.hora.rsl_rl_compat.is_rsl_rl_v4()[source]

Check whether the active RSL-RL runtime is version 4 or newer.

Parameters:

None.

Return type:

bool

Returns:

True when the installed package version is >= 4.0.0.

unilab.algos.torch.hora.rsl_rl_compat.is_rsl_rl_v5()[source]

Check whether the active RSL-RL runtime is version 5 or newer.

Parameters:

None.

Return type:

bool

Returns:

True when the installed package version is >= 5.0.0.

unilab.algos.torch.hora.rsl_rl_compat.convert_config_v3_to_v4(cfg)[source]

Convert a legacy UniLab PPO/APPO config into the RSL-RL v4 schema.

Parameters:

cfg (dict[str, Any]) – Resolved owner config dictionary before RSL-RL construction.

Return type:

dict[str, Any]

Returns:

Deep-copied config dictionary aligned with the RSL-RL v4 actor/critic schema and obs-group naming.

unilab.algos.torch.hora.rsl_rl_compat.convert_config_v5(cfg)[source]

Convert a legacy UniLab PPO/APPO config into the RSL-RL v5 schema.

Parameters:

cfg (dict[str, Any]) – Resolved owner config dictionary before RSL-RL construction.

Return type:

dict[str, Any]

Returns:

Deep-copied config dictionary aligned with the RSL-RL v5 actor/critic schema and obs-group naming.