README.md 765 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
Parallel Learning Example
2
=========================
3

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

6
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
7

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

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

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

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

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

21
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).