".github/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "6945201d5c19b2fbbc4c13214e7d85e997e1dfd1"
Unverified Commit 08d4900f authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

Update README.md for the demo of distributed sampler (#577)

parent c64405b1
...@@ -15,7 +15,9 @@ pip install mxnet --pre ...@@ -15,7 +15,9 @@ pip install mxnet --pre
### Usage ### Usage
To run the following demos, you need to start trainer and sampler process on different machines by changing the `--ip`. You can also change the number of sampler by the `--num-sampler` option. Assume that the user has already launched two instances (`instance_0` & `instance_1`) on AWS EC2, and also these two instances have the correct authority to access each other by TCP/IP protocol. Now we can treat `instance_0` as `Trainer` and `instance_1` as `Sampler`. Then, the user can start the trainer process and sampler process on these two instances separately. We have already provided a set of scripts to start the trainer and sampler process and users just need to change the `--ip` to their own IP address.
For the sampler instance_0, users can change the `--num-sampler` option to set the number of the sampler. The `sampler.py` script will start `--num-sampler` processes concurrently to maximalize the system utilization. Users can also launch many samplers in parallel across a set of machines. For example, if we have `10` sampler instance and for each instance, we set the `--num-sampler` to `2`, we need to set the `--num-sampler` to `20`.
### Neighbor Sampling & Skip Connection ### Neighbor Sampling & Skip Connection
......
...@@ -15,7 +15,9 @@ pip install torch requests ...@@ -15,7 +15,9 @@ pip install torch requests
### Usage ### Usage
To run the following demos, you need to start trainer and sampler process on different machines by changing the `--ip`. You can also change the number of sampler by the `--num-sampler` option. Assume that the user has already launched two instances (`instance_0` & `instance_1`) on AWS EC2, and also these two instances have the correct authority to access each other by TCP/IP protocol. Now we can treat `instance_0` as `Trainer` and `instance_1` as `Sampler`. Then, the user can start the trainer process and sampler process on these two instances separately. We have already provided a set of scripts to start the trainer and sampler process and users just need to change the `--ip` to their own IP address.
For the sampler instance_0, users can change the `--num-sampler` option to set the number of the sampler. The `sampler.py` script will start `--num-sampler` processes concurrently to maximalize the system utilization. Users can also launch many samplers in parallel across a set of machines. For example, if we have `10` sampler instance and for each instance, we set the `--num-sampler` to `2`, we need to set the `--num-sampler` to `20`.
### Neighbor Sampling & Skip Connection ### Neighbor Sampling & Skip Connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment