プリンキピア

第13章計算の性能

13.5.8. Exercises13.5.8 練習問題

  1. When training on k GPUs, change the minibatch size from b to k⋅b, i.e., scale it up by the number of GPUs.
    英語のヒント
    k個のGPUで訓練するとき、ミニバッチの大きさをbからk⋅bに変えよ。つまり、GPUの数だけ大きくせよ。
  2. Compare accuracy for different learning rates. How does it scale with the number of GPUs?
    英語のヒント
    さまざまな学習率で正解率を比べよ。GPUの数に応じてそれはどう変わるか。
  3. Implement a more efficient allreduce function that aggregates different parameters on different GPUs? Why is it more efficient?
    英語のヒント
    異なるGPUで異なるパラメータを集める、もっと効率的なallreduce関数を実装せよ。それはなぜもっと効率的なのか。
  4. Implement multi-GPU test accuracy computation.
    英語のヒント
    複数GPUでのテストの正解率の計算を実装せよ。