Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training a rather large model (250 StoryBlocks) with multiple checkpoints halts on Linux #5912

Closed
guillaumeraymond opened this issue May 28, 2020 · 5 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework stale type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@guillaumeraymond
Copy link

Rasa version: 1.8.1

Rasa SDK version (if used & relevant): 1.10.0

Rasa X version (if used & relevant):

Python version: Python 3.7.4

Operating system (windows, osx, ...): OSX (working) Linux (not working)

Issue:
Training a rather big model halts on Linux but work on OS X.
It has been run on various configuration of build executors (4Gb Ram, 8 Gb Ram, 16 gb Ram) and it constantly "stops" (CPU not working) when training the model. On MacOS however, the training makes it through.

Error (including full traceback):

Processed Story Blocks: 100%|██████████| 272/272 [00:16<00:00, 16.33it/s, # trackers=3]  
Processed Story Blocks: 100%|██████████| 272/272 [00:00<00:00, 277985.06it/s]
Processed Story Blocks: 100%|██████████| 272/272 [04:03<00:00,  1.34it/s, # trackers=150]
Processed Story Blocks: 100%|██████████| 272/272 [04:20<00:00,  1.30it/s, # trackers=150]
Processed Story Blocks:  85%|████████▍ | 230/272 [03:26<00:59,  1.42s/it, # trackers=500]

Too long with no output (exceeded 10m0s): context deadline exceeded

Command or request that led to error:

poetry run rasa train -d data/domain.yml --out models -c policies.yml

Content of configuration file (config.yml) (if relevant):

# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
# using the default pipeline copied from the docs
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 25
    random_seed: 0

policies:
  - name: rasa_stack.policies.FormWithFallbackPolicy
  - name: MemoizationPolicy
    featurizer: 
      - name: rasa_stack.featurizer.MaxHistoryTrackerFeaturizerFormFallback
    max_history: 5
  # from https://rasa.com/docs/core/0.14.3/fallbacks/
  - name: FallbackPolicy
    # min confidence needed to accept an NLU prediction, 0.0 to avoid any unintended consequences of unrecognized intents.
    # this means that the fallback policy will only be triggered as a result of other policies 
    # not predicting any actions, but not as a result of NLU failing to recognized the intent
    # unrecognized intents will be handled in the form actions
    nlu_threshold: 0.99
    # min confidence needed to accept an action prediction from Rasa Core
    core_threshold: 0.99
    fallback_action_name: 'action_default_form_fallback'

Content of domain file (domain.yml) (if relevant):

@guillaumeraymond guillaumeraymond added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels May 28, 2020
@kevinthenet
Copy link
Contributor

I wonder if it's CPU or Memory, I'm on Linux and have similar issues running with the TED Policy.

@sara-tagger
Copy link
Collaborator

Thanks for the issue, @chkoss will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@Ghostvv
Copy link
Contributor

Ghostvv commented Jun 9, 2020

I think most probably it is out-of-memory issue, your checkpoints create so many stories, that it cannot load all them into memory

@stale
Copy link

stale bot commented Sep 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 8, 2020
@stale
Copy link

stale bot commented Sep 19, 2020

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

@stale stale bot closed this as completed Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework stale type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants