# Load models

**URL:** <https://forum.rasa.com/t/load-models/11714>\
**Category:** Rasa Open Source\
**Created:** [June 19, 2019, 10:49am UTC](https://forum.rasa.com/t/load-models/11714 "2019-06-19T10:49:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassanrafay](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hassanrafay/32/3172_2.png) [@hassanrafay](https://forum.rasa.com/u/hassanrafay)\
**Post date:** [June 19, 2019, 10:49am UTC](https://forum.rasa.com/t/load-models/11714/1 "2019-06-19T10:49:48Z")

</div>

Hi

I am working with the rasa 1.0.1 and I want to write a server which will have multiple agents and I want to load trained models at runtime, I can not find anything on the documentation of Rasa. If anyone can help me with how can I load the trained models in python code and run queries against it. It would be appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [June 26, 2019, 6:32am UTC](https://forum.rasa.com/t/load-models/11714/2 "2019-06-26T06:32:42Z")

</div>

If you want to load an agent with an already trained model, you can use

```auto
# unpack your model before you load it, e.g. model path is a .tar.gz file
model_path = get_model(model_path)
# load the agent 
agent = Agent.load(model_path)

```

Is it that what you are looking for? If not, can you please rephrase what you want to know?
