mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Questions about KVStoreDistServer

Open feiyulv opened this issue 10 years ago • 5 comments

When running mxnet on multiple nodes, mxnet should divide models into several parts, each server maintains only one part of the original model. However when I run mxnet on two nodes, the value of req_data.lens[0] equals to the size of each layer, I expected it should be divided by 2. Did I misunderstand something? I used the following command to run the example: python launch.py -n 2 --launcher ssh -H hosts python test.py --kv-store dist_sync

feiyulv avatar Jun 01 '16 02:06 feiyulv

I add "-s 2" to the command, but no difference

feiyulv avatar Jun 01 '16 02:06 feiyulv

@mli l

feiyulv avatar Jun 01 '16 05:06 feiyulv

mxnet does not divide model into serveral parts. You can think that you have more replica of model to run.

qiaohaijun avatar Jun 02 '16 10:06 qiaohaijun

for a parameter, e.g. the weight for a layer, if its size is less than MXNET_KVSTORE_BIGARRAY_BOUND, we randomly assign it to a node. otherwise, we evenly divided it to multiple nodes.

mli avatar Jun 02 '16 16:06 mli

thx @mli @qiaohaijun

feiyulv avatar Jun 06 '16 01:06 feiyulv