Expand description
Running a TrainingStrategy.
The strategy types are contracts — a strategy is a graph-level
attribute, part of what a graph is — so they live in soma-core
beside the graph. Running one is not: it shards inputs, calls workers
in a round loop, aggregates gradients and redistributes states. That
is execution, and execution lives here.
See the “soma-core holds contracts, not execution” entry in the design decisions.
Structs§
- Transport
Context - A
StrategyContextover oneTransportper worker. - Worker
Identity - How a worker can be named by a
RemoteTarget.
Traits§
- Gradient
Aggregator - Contract for gradient aggregation across workers.
- State
Aggregator - Contract for federated state aggregation.
- Strategy
Context - Context provided to strategy executors. Abstracts worker communication — the strategy doesn’t know about WS/HTTP.
- Strategy
Executor - Contract for training strategy execution. Every TrainingStrategy variant implements this — including Local.