You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* adding a model only restore function to the RL path
* adding clarification that target networks are reloaded as well when using load model
* adding device awareness in save restore tests, fixing some relative directory path error in test
* adding checkpoint_rl test to workflow script
Signed-off-by: Thorsten Kurth <tkurth@nvidia.com>
This loads only the weights of the online policy and critic networks from the checkpoint directory created by ``torchfort_rl_off_policy_save_checkpoint``.
376
+
For algorithms that use target networks (e.g. DDPG and TD3), the corresponding target networks are also restored, by re-initializing them from the loaded
377
+
online networks so that they start consistent with the restored weights. The optimizers, learning-rate schedulers, replay buffer, normalizer statistics and
378
+
step counters remain in their freshly created state. Training then proceeds from the pretrained weights with a clean training history, so that newly
379
+
collected transitions (e.g. generated under the modified reward function) are not mixed with stale experience. The system must be created beforehand with
380
+
``torchfort_rl_off_policy_create_system`` using a network architecture matching the saved checkpoint.
381
+
382
+
On-policy systems provide the equivalent function ``torchfort_rl_on_policy_load_model``, which restores only the actor-critic network weights and leaves the
383
+
optimizer, learning-rate scheduler, rollout buffer, normalizer statistics and step counters in their freshly created state.
0 commit comments