README.md 812 Bytes
Newer Older
1
2
3
Distributed Learning Example
============================
<a name="parallel-learning-example"></a>
4

5
Here is an example for LightGBM to perform distributed learning for 2 machines.
Guolin Ke's avatar
Guolin Ke committed
6

7
1. Edit [mlist.txt](./mlist.txt): write the ip of these 2 machines that you want to run application on.
Guolin Ke's avatar
Guolin Ke committed
8

9
10
11
12
   ```
   machine1_ip 12400
   machine2_ip 12400
   ```
13

Guolin Ke's avatar
Guolin Ke committed
14
2. Copy this folder and executable file to these 2 machines that you want to run application on.
15

Guolin Ke's avatar
Guolin Ke committed
16
17
3. Run command in this folder on both 2 machines:

18
   ```"./lightgbm" config=train.conf```
19

20
This distributed learning example is based on socket. LightGBM also supports distributed learning based on MPI.
Guolin Ke's avatar
Guolin Ke committed
21

22
For more details about the usage of distributed learning, please refer to [this](https://github.com/microsoft/LightGBM/blob/master/docs/Parallel-Learning-Guide.rst).