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

Model instantiation is very slow #37

Open
adithyarao opened this issue Jul 27, 2015 · 1 comment
Open

Model instantiation is very slow #37

adithyarao opened this issue Jul 27, 2015 · 1 comment

Comments

@adithyarao
Copy link

While trying out the example provided in the Readme, I noticed that this line executes very slowly:

model = RNN(layers=layers, cost='BinaryCrossEntropy')

Profiling shows that this line takes around 20 seconds to execute on both CPU as well as GPU. I am observing similar performance for the load function in utils.py as well. Am I missing something here? If not, can this be sped up somehow? ( Such performance poses a serious obstacle in loading trained models in real time applications. )

@youralien
Copy link

@adithyarao, I have a hunch that the slow execution when building and loading models has more to do with Theano than Passage itself. Theano takes time to compile graphs of computation, both on CPU and GPU. For real world applications, the best bet is to keep a server continuously running with the Theano graph already compiled.

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

No branches or pull requests

2 participants