ray.rllib.core.rl_module.rl_module.RLModule.from_checkpoint#

classmethod RLModule.from_checkpoint(path: str | Path, **kwargs) Checkpointable#

Creates a new Checkpointable instance from the given location and returns it.

Parameters:
  • path – The checkpoint path to load (a) the information on how to construct a new instance of the implementing class and (b) the state to restore the created instance to.

  • kwargs – Forward compatibility kwargs. Note that these kwargs are sent to each subcomponent’s from_checkpoint() call.

Returns:

A new instance of the implementing class, already set to the state stored under path.