DC-ASGD
Where is the DC-ASGD method?
Please check available parallel training documentation and the new ASGD section:
https://github.com/Microsoft/CNTK/wiki/Multiple-GPUs-and-machines
It has the following example in BrainScript:
ParallelTrain = [
parallelizationMethod = DataParallelASGD
distributedMBReading = true
syncPerfStats = 20
DataParallelASGD = [
syncPeriodPerWorker=256
usePipeline = true
AdjustLearningRateAtBeginning = [
adjustCoefficient = 0.2
adjustNBMiniBatch = 1024
# Learning rate will be adjusted to original one after ((1 / adjustCoefficient) * adjustNBMiniBatch) samples
# which is 5120 in this case
]
]
]
@avader906 Tks! I mean how to utilize the Delay-Compensation ASGD method from the paper DC-ASGD ?
@linrio Why have you not contacted authors directly ? They could point you in the direction of reproducing their published results and provide details on the differences between their research and CNTK's ASGD algorithm implementation.
CNTK model specification is independent of the training method - be it CPU, GPU, distributed or not. You specify the type of training in the configuration file and then execute the training using whatever infrastructure you have. For distributed learning you would need MPI supported connectivity.
ASGD implementation in CNTK requires parametrization of the ParallelTrain instruction as per sample/documentation. It uses DMTK (https://github.com/Microsoft/DMTK) parameter server framework (Multiverso).
Suppose you have a 3 host interconnected standalone win2012 R2 environments each with 1 nvidia GPU. And each host rusns smpd daemon - supplied with Microsoft MPI. In order to run the distributed learning via the command line, execute your test script on the main host via (adapting hostnames, host DNS and your network parameters accordingly):
mpiexec.exe /hosts 3 localhost 1 host2 1 host3 1 /genv MPICH_CONNECTIVITY_TABLE "1" /genv MPIEXEC_HOSTNAME "localhostDNS" /genv MPICH_NETMASK "xxx.yyy.zzz.1 255.255.0.0"\localcntk\cntk\CNTK.exe configfile=../config/yourSample.cntk makeMode=false deviceId=0
There is nothing special in running distributed learning via parallelizationMethod = "DataParallelSGD" or "DataParallelASGD" apart configuration setting.
Hi @linrio , the DC-ASGD hasn't been supported yet in this version. we'll enable the feature very soon.
@avader906 Tks very much! I finally understood it ! Your explain is detailed!
@chivee Expecting your DC-ASGD will be opened source !