ray.rllib.core.learner.learner_group.LearnerGroup.load_module_state#
- LearnerGroup.load_module_state(*, multi_rl_module_ckpt_dir: str | None = None, modules_to_load: Set[str] | None = None, rl_module_ckpt_dirs: Dict[str, str] | None = None) None[source]#
Load the checkpoints of the modules being trained by
LearnerGroup.load_module_statecan be used 3 ways:- Load a checkpoint for the
MultiRLModulebeing trained by this LearnerGroup. Optionally, limit the modules that are loaded from the checkpoint by specifying themodules_to_loadargument.
- Load a checkpoint for the
- Load the checkpoint(s) for single agent
RLModulesthat are in the
MultiRLModulebeing trained by thisLearnerGroup.
- Load the checkpoint(s) for single agent
- Load a checkpoint for the
MultiRLModulebeing trained by this LearnerGroupand load the checkpoint(s) for single agentRLModulesthat are in theMultiRLModule. The checkpoints for the single agentRLModulestake precedence over the module states in theMultiRLModulecheckpoint.
- Load a checkpoint for the
At least one of
multi_rl_module_ckpt_dirorrl_module_ckpt_dirsmust be specified.modules_to_loadcan only be specified ifmulti_rl_module_ckpt_diris provided.- Parameters:
multi_rl_module_ckpt_dir – The path to the checkpoint for the
MultiRLModule.modules_to_load – A set of
RLModuleids to load from the checkpoint.rl_module_ckpt_dirs – A mapping from module ids to the path to a checkpoint for a single agent
RLModule.