# Can't restore trained model when training a new one

**URL:** <https://discuss.ray.io/t/cant-restore-trained-model-when-training-a-new-one/6164>\
**Category:** RLlib\
**Created:** [May 17, 2022, 8:39am UTC](https://discuss.ray.io/t/cant-restore-trained-model-when-training-a-new-one/6164 "2022-05-17T08:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmanczak](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/bmanczak/32/1802_2.png) [@bmanczak](https://discuss.ray.io/u/bmanczak)\
**Post date:** [May 17, 2022, 8:39am UTC](https://discuss.ray.io/t/cant-restore-trained-model-when-training-a-new-one/6164/1 "2022-05-17T08:39:43Z")

</div>

Hi all,

I successfully trained a PPO agent (let’s call the agent Jerry) for part of my task and the other was handled by computation heavy simulator (Scenario 1).  
Now I want to use Jerry (weights frozen) for the first part of the task and train a PPO agent for the second half of the task (Scenario 2). Note that both parts happen at single time-step.

**The problem** is that when I run `ray.tune.run` for Scenario 2, in the init of the custom model I try to restore Jerry. When the line `agent = ppo.PPOTrainer(env=Grid_Gym, config = config_params)` is encountered everything freezes.

My hypothesis is that the number of workers are at the heart of the issue. For Scenario 2 I supply a certain`num_workers` but then there are no available workers to restore Jerry.

Help would be greatly appreciated as it blocks me from using Ray to solve the task and I cannot find a way around it cc. @sven1977.
