Artem Chumachenko 3 年之前
父節點
當前提交
ddada4e11f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/user/quickstart.md

+ 1 - 0
docs/user/quickstart.md

@@ -134,6 +134,7 @@ opt = hivemind.Optimizer(
     run_id='my_cifar_run',    # unique identifier of this collaborative run
     batch_size_per_step=32,   # each call to opt.step adds this many samples towards the next epoch
     target_batch_size=10000,  # after peers collectively process this many samples, average weights and begin the next epoch
+    use_local_updates=True,   # perform optimizer steps with local gradients, average parameters in background
     optimizer=opt,            # wrap the SGD optimizer defined above
     matchmaking_time=3.0,     # when averaging parameters, gather peers in background for up to this many seconds
     averaging_timeout=10.0,   # give up on averaging if not successful in this many seconds