Model on rasa-x keeps on training and never finishes

Hi,

I have deployed rasa-x using: curl -s get-rasa-x.rasa.com | sudo bash

then I connected my git repo having rasa assistant to rasa-x

everything completes successfully.

But when I train my model for the first time, it keeps on training and never finishes. The same rasa bot was trained within 2 minutes on local machine.

Please help.

@Sajjadmanal please tell are you using docker based installation? if yes please check cd /etc/rasa or if you created your own folder and in that folder you will see model, check is there any trained model?

@nik202 I just restarted my aws machine instance and then redeployed using curl -s get-rasa-x.rasa.com | sudo bash This time, model was trained successfully but when I go to chat with bot, I get nothing on screen. I checked the logs for the running rasa sdk and it showed no module named numpy. Could this be a reason. How to install all requirements file in the running containers?

@Sajjadmanal mean you are using quick installation for rasa x. Well, I personally not used the quick install, did you see some folder in the root which is related to rasa?

Good that you checked on your pods :slight_smile:

To install a requirements file, which is in, for example, the actions folder, add the following to the Dockerfile:

COPY actions/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

Full example here.

@ChrisRahme There is only docker-compose.yml and no dockerfile when I do: ls /etc/rasa/

@Sajjadmanal and what command you are using, let me guess docker-compose up -d ? or docker-compose down && docker-compose up -d ? is that right ?

@nik202 Yes, I am using the later one. Where to add pip install requirements.txt? I only have Docker-compose.yml and Docker-compose.override.yml

@Sajjadmanal try to install in /etc/rasa itself and then check pip list later, even before installing check that requirement is there in the list or not. @Sajjadmanal can you even share the docker-compose.override.yml to me?

@nik202 Here is the content of docker-compose.override.yml: image

@nik202 Same error when I pip install requirements.txt inside /etc/rasa/

@ChrisRahme Please help if you know. There is no docker file. These are the contents of /etc/rasa/ :

Can I ask where you use numpy? Is it in your custom actions?

@ChrisRahme Yes, in the custom actions.

Then you should have a Dockerfile to build an action server image, upload it to DockerHub, and use it for the quick-installation.

You don’t ever need to use /etc/rasa with the quick-install method.

Please refer to the docs:

  1. Manually Building an Action Server.
  2. Using your Custom Action Server Image
  3. Customize Your Deployment for Server Quick-Install
1 Like

Thanks, I got my solution to the question using this.

1 Like