You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pgml-docs/docs/user_guides/setup/gpu_support.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,33 @@
1
1
# GPU Support
2
2
3
-
PostgresML is capable of leveraging GPUs when the underlying libraries and hardware are properly configured on the database.
3
+
PostgresML is capable of leveraging GPUs when the underlying libraries and hardware are properly configured on the database server.
4
+
5
+
!!! tip
6
+
Models trained on GPU will also require GPU support to make predictions.
4
7
5
8
## XGBoost
6
-
XGBoost is currently the only integrated library that provides GPU accellaration. GPU setup for this library is covered in the [xgboost documentation](https://xgboost.readthedocs.io/en/stable/gpu/index.html). Additionally, you'll need to pass `pgml.train('GPU project', hyperparams => '{tree_method: "gpu_hist"}')` to take advantage during training.
9
+
GPU setup for XGBoost is covered in the [xgboost documentation](https://xgboost.readthedocs.io/en/stable/gpu/index.html).
10
+
11
+
!!! example
12
+
```sql linenums="1"
13
+
pgml.train(
14
+
'GPU project',
15
+
algorithm => 'xgboost',
16
+
hyperparams => '{"tree_method" : "gpu_hist"}'
17
+
);
18
+
```
19
+
20
+
## LightGBM
21
+
GPU setup for LightGBM is covered in the [lightgbm documentation](https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html).
7
22
8
-
!!! warning
9
-
XGBoost models trained on GPU will also require GPU support to make predictions.
23
+
!!! example
24
+
```sql linenums="1"
25
+
pgml.train(
26
+
'GPU project',
27
+
algorithm => 'lightgbm',
28
+
hyperparams => '{"device" : "gpu"}'
29
+
);
30
+
```
10
31
11
32
## Scikit-learn
12
33
None of the scikit-learn algorithms natively support GPU devices. There are a few projects to improve scikit performance with additional parralellism, although we currently have not integrated these with PostgresML:
0 commit comments