-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Improved startup time #8141
Improved startup time #8141
Conversation
changes make the commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this! This is both amazing for the users and our CI speed 🚀
Regarding the regression test: How about testing for the tensorflow import instead of a certain timing? E.g. you could write a script which
- imports
rasa
- sets
sys.argv
according to the commands you want to test - runs the command (maybe with mocked behavior)
- assert that tensorflow isn't in the imported modules
ready for another review 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for wrapping this up so quickly! Let a few more minor comments but good to go from my side!
@tmbo How severe is the problem with clashing imports? Would be nice to get it in the release today 👀 |
Co-authored-by: Tobias Wochinger <[email protected]>
Co-authored-by: Tobias Wochinger <[email protected]>
@wochinge I made the other changes, but I can't look into the import issue today, my suspicion is that it worked beforehand because had
in Now, we are not importing |
If you have time to investigate or try moving this around I am happy to help but I won't have enough time today to dig deeper myself 😞 |
Thanks for the heads up. I'll have a short look but it doesn't seem like something we should rush just to get it in the release. Especially as it might require change to our Python API. |
I mean there is one quick solution we could try: move the functions back into the original modules and move all the imports in there into the functions (or at least all rasa ones). That will likely work and we could revisit this later. |
This seems way harder to maintain. I'm in favor of having these things explict. In my opinion it would be fine to rename the modules (e.g. |
well, if they don't appear in the docs I am good with that 👍 |
I searched
and had 0 matches 🎉 So good to rename 🚀 |
yes that makes sense 👍 |
@wochinge are you able to make these changes? Otherwise I'll put it in enable's inbox to make these additional changes. |
Sure, will wrap it up later 👍🏻 |
What about deleted the They aren't used except by us and in my opinion users should rather go through the |
…nlu.cross_validate`
@@ -269,6 +270,33 @@ async def schedule_model_pulling( | |||
) | |||
|
|||
|
|||
def create_agent(model: Text, endpoints: Text = None) -> "Agent": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved from rasa.run
@tmbo Changes are ready. Do you have time for a short review? 🙌🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wochinge can't approve since I opened the PR - but changes look good 👍
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)