Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

load plugins from Predictor.from_path #4333

Merged
merged 3 commits into from
Jun 8, 2020
Merged

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented Jun 5, 2020

Closes #4319

On my machine, the additional overhead adds about 0.2 seconds of loading time, and 10 MB of memory (the only plugin loaded was allennlp_models). That's not a lot, but it's not insignificant either. So I think this should be behind a flag (defaulting to True) so that users can avoid this overhead if they need to.

Copy link
Member

@dirkgr dirkgr left a comment

Choose a reason for hiding this comment

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

I don't even think this needs a flag. We could just do it all the time.

@epwalsh epwalsh merged commit 8f68d69 into master Jun 8, 2020
@epwalsh epwalsh deleted the plugin-loading-in-predictor branch June 8, 2020 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Predictor.from_path not loading my trained model
3 participants