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

Handle more than 2**31 parameters on GPU models #599

Merged
merged 2 commits into from
Jul 31, 2022
Merged

Handle more than 2**31 parameters on GPU models #599

merged 2 commits into from
Jul 31, 2022

Conversation

benfred
Copy link
Owner

@benfred benfred commented Jul 31, 2022

We had some issues that prevented us from learning models with more than
2**31 parameters in one of the matrices (so ~8GB of total space). This
was because we were using int32 to represent the rows/cols - and
when multiplying together we'd overflow.

Fix by using size_t. Have manually verified I can train a model with
over 25M users and 128 factors with this change (both bpr & als).

benfred added 2 commits July 30, 2022 17:29
We had some issues that prevented us from learning models with more than
2**31 parameters in one of the matrices (so ~8GB of total space). This
was because we were using int32 to represent the rows/cols - and
when multiplying together we'd overflow.

Fix by using size_t. Have manually verified I can train a model with
> 25M users and 128 factors with this change (both bpr & als).
@benfred benfred added the bug label Jul 31, 2022
@benfred benfred merged commit 2c3695d into main Jul 31, 2022
@benfred benfred deleted the large_gpu branch July 31, 2022 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant