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

Force retraining of outdated models #7073

Closed
wants to merge 12 commits into from
Closed

Force retraining of outdated models #7073

wants to merge 12 commits into from

Conversation

pheel
Copy link
Contributor

@pheel pheel commented Oct 20, 2020

Since this, Rasa is able to boot when detected model is outdated. Since this, Core-only trainings are able to fall back on using an interpreter from the zipped model. If the zipped NLU model is outdated, Rasa will not train.

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@sara-tagger
Copy link
Collaborator

Thanks for submitting a pull request 🚀 @b-quachtran will take a look at it as soon as possible ✨

@b-quachtran b-quachtran requested a review from alwx October 26, 2020 23:40
@pheel
Copy link
Contributor Author

pheel commented Nov 10, 2020

@alwx 🙏

Copy link
Contributor

@alwx alwx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution and sorry that it took me so much time to get it reviewed.

The code looks good. I was thinking that it might make sense to add a test for outdated models and checking if the model is actually detected as the outdated (it'd be easier to just move model_outdated to a separate function and add a small test for this function)

However, it's a relatively small thing, so I am going to approve this PR anyway.

Base automatically changed from master to main January 22, 2021 11:15
@pheel
Copy link
Contributor Author

pheel commented Feb 2, 2021

Pinging @alwx, @wochinge in case...

Copy link
Contributor

@wochinge wochinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you train the second model? Via rasa train core? And you could please add a test to verify the bug was fixed (that also helps me to understand the bug better).

Thanks for taking the initiative for the fix!

rasa_version: Text = "1.0",
) -> Fingerprint:
rasa_version: Text = MINIMUM_COMPATIBLE_VERSION,
):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please re-add the removed return type?

@wochinge
Copy link
Contributor

@pheel Please feel free to re-open if you have time to continue

@wochinge wochinge closed this Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants