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

Speedup evaluation by using batch recommend functions #520

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Conversation

benfred
Copy link
Owner

@benfred benfred commented Jan 18, 2022

Rather than calling model.recommend for each user, batch up requests into groups
of 1K users. This leads to to significant speedups: over 50x faster evaluation
on the GPU on both movielens20m and lastfm datasets, and over 10x faster evaluation
on the CPU.

Rather than calling model.recommend for each user, batch up requests into groups
of 1K users. This leads to to significant speedups: over 50x faster evaluation
on the GPU on both movielens20m and lastfm datasets, and over 10x faster evaluation
on the CPU.
@benfred benfred merged commit cc324b2 into main Jan 18, 2022
@benfred benfred deleted the batch_eval branch January 18, 2022 01:06
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

Successfully merging this pull request may close these issues.

1 participant