全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Quantitative Finance · 术语表

什么是 Gradient accumulation, data parallelism, model parallelism, all-reduce?

又称: gradient accumulation · data parallelism · model parallelism · all-reduce

Definition 23.4 Machine Learning for Markets · 第 23 章 — Training Infrastructure

Gradient accumulation sums the gradients of several micro-batches before one optimiser step, which equals one step on their union. Data parallelism runs a copy of the model on each device, each on its own share of the batch, and averages their gradients before every step (Li and co-authors, 2020); model parallelism splits one model’s layers or matrices across devices when it does not fit on one (Shoeybi and co-authors, 2019). An all-reduce is the collective operation that leaves every device with the sum (or average) of all devices’ arrays.

在原文中阅读 →