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

xgboost and LightGBM GPU requirements #8

Open
Laurae2 opened this issue May 17, 2019 · 2 comments
Open

xgboost and LightGBM GPU requirements #8

Laurae2 opened this issue May 17, 2019 · 2 comments

Comments

@Laurae2
Copy link
Owner

Laurae2 commented May 17, 2019

GPU RAM behavior information:

  • xgboost GPU RAM requirement sampling is unreliable, as there is an initialization peak which is difficult to catch. What you see in nvidia-smi is not what you need in practice for xgboost.
  • LightGBM GPU RAM requirement never grows up, what you see in nvidia-smi is really what you need

Therefore, xgboost requires trial and error sampling (using different number of parallel workers) until crash, while LightGBM is easily predictable with only 1 sample.

Notes:

  • The GPU requirements also depend on the hyperparameters you are using for your model
  • For reference, the hyperparameters are the following: depth = 6, leaves = 63, bins = 255

Table for GPU requirements:

Dataset Observations xgboost LightGBM
Airline 100,000 "nearly" 1GB (fits 4 on 4GB) about 67 MB
Airline 1,000,000 "nearly" 1GB (fits only 3 on 4GB) about 93 MB
Airline 10,000,000 "nearly" 1.1GB (fits only 2 on 4GB) about 333 MB

To be updated with more datasets later.

Edit 05/31/2019:

  • Airline 1M 4x sometimes crashes on xgboost with 4GB GPU. Reduced to 3x.
  • Airline 10M 3x sometimes crashes on xgboost with 4GB GPU. Reduced to 2x.
@Laurae2
Copy link
Owner Author

Laurae2 commented May 31, 2019

LightGBM, 10M Airline x12 on same GPU on 4GB GPU:

image

@Laurae2
Copy link
Owner Author

Laurae2 commented May 31, 2019

xgboost, 10M Airline x3 on same GPU on 4GB GPU:
image

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

1 participant