# RASA Core Train Stuck

**URL:** <https://forum.rasa.com/t/rasa-core-train-stuck/13984>\
**Category:** Rasa Open Source\
**Created:** [August 6, 2019, 8:24am UTC](https://forum.rasa.com/t/rasa-core-train-stuck/13984 "2019-08-06T08:24:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaput](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yaput/32/6710_2.png) [@yaput](https://forum.rasa.com/u/yaput)\
**Post date:** [August 6, 2019, 8:24am UTC](https://forum.rasa.com/t/rasa-core-train-stuck/13984/1 "2019-08-06T08:24:05Z")

</div>

Hi everyone,

Have anyone faced issue with rasa.core.train ? I tried to train core, and it’s not large stories, but i used extensive checkpoints there. When i train it on AWS ec2 t2.2xlarge instance with jupyter notebook and with this code:

```auto
from rasa.core import train
from rasa.core.agent import Agent
from rasa.core.policies.fallback import FallbackPolicy
from rasa.core.policies.keras_policy import KerasPolicy
from rasa.core.policies.mapping_policy import MappingPolicy
from rasa.core.policies.form_policy import FormPolicy
from rasa.core.policies.memoization import MemoizationPolicy
user_policies = [MemoizationPolicy(),MappingPolicy(),KerasPolicy(epochs=55, max_history=15), FormPolicy(),FallbackPolicy(nlu_threshold=0.65)]
a = Agent('data/domain.yml', user_policies)
story = await a.load_data('data/dialogue/', augmentation_factor=0)
a.train(story)
a.persist('models/dialogue/')

```

 ![Screenshot%20from%202019-08-06%2012-22-49](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/cd0dbb28c3203f35e57f775f44ff55610db07a3d.png)Is this code deprecated? Can someone help me with this? Thanks

---

<div class="post-metadata">

**Author:** ![imLew](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/imlew/32/3744_2.png) [@imLew](https://forum.rasa.com/u/imLew)\
**Post date:** [August 7, 2019, 11:26am UTC](https://forum.rasa.com/t/rasa-core-train-stuck/13984/2 "2019-08-07T11:26:10Z")

</div>

It might be the case that something has gone wrong in your checkpoints, you can check the validity of your stories using `rasa test`.

---

<div class="post-metadata">

**Author:** ![yaput](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yaput/32/6710_2.png) [@yaput](https://forum.rasa.com/u/yaput)\
**Post date:** [August 7, 2019, 2:52pm UTC](https://forum.rasa.com/t/rasa-core-train-stuck/13984/3 "2019-08-07T14:52:50Z")

</div>

Hi @imLew,

So i tried on my local machine, and it’s working, maybe it’s the AWS setup. I used t2.2xlarge but stuck, but my local machine only use core i7 with 16 gb rams, and working just find.

---

<div class="post-metadata">

**Author:** ![imLew](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/imlew/32/3744_2.png) [@imLew](https://forum.rasa.com/u/imLew)\
**Post date:** [August 8, 2019, 9:50am UTC](https://forum.rasa.com/t/rasa-core-train-stuck/13984/4 "2019-08-08T09:50:57Z")

</div>

Yes, if the same code runs fine on your local machine then it has to be an issue with AWS.
