# \[Rllib\] how to restore trainer from different checkpoint files when training on server and local

**URL:** <https://discuss.ray.io/t/rllib-how-to-restore-trainer-from-different-checkpoint-files-when-training-on-server-and-local/9176>\
**Category:** RLlib\
**Created:** [January 31, 2023, 5:31pm UTC](https://discuss.ray.io/t/rllib-how-to-restore-trainer-from-different-checkpoint-files-when-training-on-server-and-local/9176 "2023-01-31T17:31:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mirakolix\_Gallier](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mirakolix_gallier/32/2944_2.png) [@Mirakolix\_Gallier](https://discuss.ray.io/u/Mirakolix_Gallier)\
**Post date:** [January 31, 2023, 5:31pm UTC](https://discuss.ray.io/t/rllib-how-to-restore-trainer-from-different-checkpoint-files-when-training-on-server-and-local/9176/1 "2023-01-31T17:31:52Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

I have trained a PPO agent on a linux server with trainer.train() and then stored the progress with .save(). My problem is, even when I run the exact code on my local machine and on the server, I get different files in the checkpoint directory. I would like to restore the trained checkpoint on my local machine but this gives me the error: “[Errno 2] No such file or directory: ‘/Users/…/checkpoint\_000200.tune\_metadata’” and there is actually no tune metadata file in the server checkpointz path whereas I do get an tune metadata file when running the exact same code locally.

Could someone explain to mwe why the checkpoints are different and how I could restore my trainer locally from the server checkpoints? thank!

A: Example Server Checkpoints  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/8/80f006b57c4032e33c0e157501625a8f745609a1.png)

B: Example Locally trained checkpoints:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/d/d38ac7c134440885db7b6e538dce234bd3663e6e.png)

---

<div class="post-metadata">

**Author:** ![Mirakolix\_Gallier](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mirakolix_gallier/32/2944_2.png) [@Mirakolix\_Gallier](https://discuss.ray.io/u/Mirakolix_Gallier)\
**Post date:** [February 3, 2023, 4:59pm UTC](https://discuss.ray.io/t/rllib-how-to-restore-trainer-from-different-checkpoint-files-when-training-on-server-and-local/9176/2 "2023-02-03T16:59:31Z")

</div>

So, the problem was that I used Ray 2.2 on the server which produces the checkpoint files as shown in A) while I used Ray 1.13 locally which produced B). I could just create a new environment with ray 2.2 on the local machine to restore the checkpoints from the server.
