# What's the recommended approach to reduce model loading time in rasa 3 using python

**URL:** <https://forum.rasa.com/t/whats-the-recommended-approach-to-reduce-model-loading-time-in-rasa-3-using-python/54862>\
**Category:** Rasa Open Source\
**Created:** [August 16, 2022, 4:26pm UTC](https://forum.rasa.com/t/whats-the-recommended-approach-to-reduce-model-loading-time-in-rasa-3-using-python/54862 "2022-08-16T16:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivams](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shivams/32/21248_2.png) [@shivams](https://forum.rasa.com/u/shivams)\
**Post date:** [August 16, 2022, 4:26pm UTC](https://forum.rasa.com/t/whats-the-recommended-approach-to-reduce-model-loading-time-in-rasa-3-using-python/54862/1 "2022-08-16T16:26:46Z")

</div>

I am new for Rasa,

I have trained a RASA NLU model with the Default rasa config.yml file. with 3 intent and per intent 3 example and total 2 entities.

I have use below commend for train model

```auto
config = 'confing.yml'
training_files = './data/'
domain = 'domain.yml'
output = './models/

```

```auto
    import rasa
    rasa.train(domain, config, [training_files], output, fixed_model_name='model_name')

```

When i have load a RASA NLU model with the following code

```auto
    from rasa.core.agent import Agent
    Agent.load(model_path='Model_path')

```

It’s take 1.5 to 2 minute for load model in variable.

Is there anyway that this can be mitigated ? or I am doing something wrong ? Because I want to serve these models on demand, which requires a faster load time.

Any help would be highly appreciated. Thanks in advance! 🙂

---

<div class="post-metadata">

**Author:** ![shivams](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shivams/32/21248_2.png) [@shivams](https://forum.rasa.com/u/shivams)\
**Post date:** [August 19, 2022, 12:01pm UTC](https://forum.rasa.com/t/whats-the-recommended-approach-to-reduce-model-loading-time-in-rasa-3-using-python/54862/2 "2022-08-19T12:01:59Z")

</div>

Hello there,

I did not find any solution yet. Would be great to have someone’s opinion on that.

Thank you!

---

<div class="post-metadata">

**Author:** ![lucas144](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lucas144/32/20432_2.png) [@lucas144](https://forum.rasa.com/u/lucas144)\
**Post date:** [February 6, 2024, 11:54am UTC](https://forum.rasa.com/t/whats-the-recommended-approach-to-reduce-model-loading-time-in-rasa-3-using-python/54862/3 "2024-02-06T11:54:10Z")

</div>

Any updates on this? I’m experiencing the same issue.
