Out of Memory during serialization of the subsystem data - reinforcement learning

5 views (last 30 days)
Hi, during training (reinforcement learning), agents aren't saved properly and this warning is given. What can be done to fix this? Training is done with parallel processing.

Answers (1)

Harsh
Harsh on 25 Jan 2025
Hi Charissa,
The error you are facing while saving agents during training is because of insufficient disk space. While creating the “rlTrainingOptions object you can specify several options to configure when and where to save the agents which will help you resolve the error. Follow the steps below to resolve your error:
  • Set the “SaveAgentDirectory” to a folder with more space so that the agents can be saved properly.
  • By default, the agent might be saved frequently. Reducing the save frequency can alleviate memory and disk space issues. Set the “SaveAgentCriteria” to GlobalStepCountto save the agent when the total number of steps in all episodes equals or exceeds the critical value.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!