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

very slow for bert #4

Open
dpny518 opened this issue Jan 9, 2019 · 1 comment
Open

very slow for bert #4

dpny518 opened this issue Jan 9, 2019 · 1 comment

Comments

@dpny518
Copy link

dpny518 commented Jan 9, 2019

I tested the speed of this versus bert as a service to generate 1 sentence embeddings but this one is a lot slower, do you have suggestions to keep the model in memory or how speed this up?

@YC-wind
Copy link
Owner

YC-wind commented Jan 9, 2019

1.you can freeze the graph as a pb file, then save current session;
2.you can use GPU or TPU to speed this up.

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