Skip to content

Conversation

@jamesr66a
Copy link
Collaborator

@jamesr66a jamesr66a commented Jun 7, 2019

This was looking at the number of elements in the memo table, not the total capacity, and was thus calling reserve() a lot more than it should have

This makes loading in a language model with a big str->long table MUCH faster. Whereas before it took so long i never let it run to completion, now that model loads in in ~4 seconds

@jamesr66a jamesr66a requested a review from driazati June 7, 2019 21:38
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jun 7, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@jamesr66a has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@suo
Copy link
Member

suo commented Jun 7, 2019

this is awesome!

@facebook-github-bot
Copy link
Contributor

@jamesr66a merged this pull request in b849f10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants