-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[pyspark] Handle the device
parameter in pyspark.
#9390
Conversation
cc @WeichenXu123 . |
emm, @trivialfis This is a breaking change, it breaks our customer code unexpectedly, can we just deprecate |
- Handle the new `device` parameter in pyspark. - Remove the old `use_gpu` parameter. py3.8 Convert some tests. lint. linter is happy. Early validation. Fix test.
99a4390
to
9b57a90
Compare
device
parameter in pyspark.device
parameter in pyspark.
@WeichenXu123 Restored the compatibility with a warning when |
python-package/xgboost/spark/core.py
Outdated
use_gpu = Param( | ||
Params._dummy(), | ||
"use_gpu", | ||
"A boolean variable. Set use_gpu=true if the executors " | ||
+ "are running on GPU instances. Currently, only one GPU per task is supported.", | ||
"Deprecated, use `device` instead.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep original doc but append Deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, the notice is prepended.
device
parameter in pyspark.use_gpu
parameter.