Storing Models in the Cloud¶
Rasa NLU supports using S3 and GCS to save your models.
- Amazon S3 Storage
 S3 is supported using the
boto3module which you can install withpip install boto3.Start the Rasa NLU server with
storageoption set toaws. Get your S3 credentials and set the following environment variables:AWS_SECRET_ACCESS_KEYAWS_ACCESS_KEY_IDAWS_DEFAULT_REGIONBUCKET_NAMEAWS_ENDPOINT_URL
If there is no bucket with the name
BUCKET_NAMERasa will create it.
- Google Cloud Storage
 GCS is supported using the
google-cloud-storagepackage which you can install withpip install google-cloud-storageStart the Rasa NLU server with
storageoption set togcs.When running on google app engine and compute engine, the auth credentials are already set up. For running locally or elsewhere, checkout their client repo for details on setting up authentication. It involves creating a service account key file from google cloud console, and setting the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable to the path of that key file.
- Azure Storage
 Azure is supported using the
azure-storage-blobpackage which you can install withpip install azure-storage-blobStart the Rasa NLU server with
storageoption set toazure.The following environment variables must be set:
AZURE_CONTAINERAZURE_ACCOUNT_NAMEAZURE_ACCOUNT_KEY
If there is no container with the name
AZURE_CONTAINERRasa will create it.
Models are gzipped before they are saved in the cloud. The gzipped file naming convention is {PROJECT}___{MODEL_NAME}.tar.gz and it is stored in the root folder of the storage service. Currently, you are not able to manually specify the path on the cloud storage.
If storing trained models, Rasa NLU will gzip the new model and upload it to the container. If retrieving/loading models from the cloud storage, Rasa NLU will download the gzipped model locally and extract the contents to the location specified by the –path flag.
Have questions or feedback?¶
We have a very active support community on Rasa Community Forum that is happy to help you with your questions. If you have any feedback for us or a specific suggestion for improving the docs, feel free to share it by creating an issue on Rasa NLU GitHub repository.