# Load exported policy

**URL:** <https://discuss.ray.io/t/load-exported-policy/8547>\
**Category:** RLlib\
**Created:** [December 4, 2022, 7:03pm UTC](https://discuss.ray.io/t/load-exported-policy/8547 "2022-12-04T19:03:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ik12](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@ik12](https://discuss.ray.io/u/ik12)\
**Post date:** [December 4, 2022, 7:03pm UTC](https://discuss.ray.io/t/load-exported-policy/8547/1 "2022-12-04T19:03:49Z")

</div>

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

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

Hello, I am training ten PPO policies using RLlib in a Multi-Agent setting. At the end of training, I would like to export the policies and then load them individually in their own objects. Is there a way to do this? For example, I would like to be able to run something like this:

```auto
# save the policies
agent.get_policy("1").export_model("policy1")

# in a separate process
# load one of the policies - load_model does not seem to exist
policy_one = PPOTorchPolicy.load_model("policy1")

# query for an action
policy_one.compute_single_action(...)

```

---

<div class="post-metadata">

**Author:** ![ik12](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@ik12](https://discuss.ray.io/u/ik12)\
**Post date:** [December 6, 2022, 9:34pm UTC](https://discuss.ray.io/t/load-exported-policy/8547/2 "2022-12-06T21:34:28Z")

</div>

I guess one possibility would be to just save a checkpoint of the full model and then load it at each of the policy processes and extracting from there. But isn’t there a better alternative?
