Expand description
Distributed gradient optimizer — coordinates gradient aggregation across multiple distributed training workers with staleness handling, compression-friendly interfaces, and fault-tolerant worker management.
§Overview
DistributedOptimizer is the central coordinator. Workers register,
submit gradient updates for named layers, and the optimizer aggregates
them according to the chosen AggregationStrategy.
Four aggregation strategies are supported:
- Synchronous — classical barrier-based: every active worker must submit before aggregation proceeds.
- Asynchronous — accepts updates within a configurable staleness window; stale updates are rejected at submission time.
- FederatedAverage — aggregates as soon as at least
roundsupdates have been collected for a layer. - GossipAverage — aggregates as soon as at least
fanoutupdates are available, mimicking gossip protocol averaging.
Structs§
- Aggregated
Gradient - The result of aggregating gradient updates for a single layer.
- Dist
Optimizer Stats - A point-in-time snapshot of optimizer statistics.
- Distributed
Optimizer - Coordinator for distributed gradient aggregation across multiple workers.
- Gradient
Update - A single gradient update submitted by one worker for one named layer.
- Worker
Id - Opaque identifier for a training worker.
- Worker
State - Liveness and bookkeeping state for a single registered worker.
Enums§
- Aggregation
Strategy - Determines how and when pending updates are aggregated.
- Optimizer
Dist Error - Errors that can arise from
DistributedOptimizeroperations.