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

inference time #9

Open
ak9250 opened this issue Jan 12, 2021 · 1 comment
Open

inference time #9

ak9250 opened this issue Jan 12, 2021 · 1 comment

Comments

@ak9250
Copy link

ak9250 commented Jan 12, 2021

are there ways to reduce inference time? Currently takes about 13 minutes on a k80 for the norway example at 432x288

@rromb
Copy link
Collaborator

rromb commented Feb 12, 2021

Hi. Yes, one way is to store already calculated attention weights when creating a sequence. See for example https://huggingface.co/transformers/quickstart.html#using-the-past. Note that this is not currently implemented for our models as we wanted to stick to the very hackable minGPT implementation, but it would definitely be nice to look at.

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