Topologies

[training topology]

@beam/subnet

Subnet (miners and validators)

Shaped like a Bittensor training subnet; miners pull data shards and send gradients to the model holder; validators send their scores of the miners to a consensus holder that merges them into weights each round (the tempo). Members register and leave freely.

Elastic membershipBuiltinActivedistributed run

[topology identity]

Details

What version 1.0.3 declares.

Package
@beam/subnet
Membership
Elastic
Engines
distributed run
Tags
bittensor, data-grants, elastic, live-session, subnet
Step kinds
local, gather, broadcast
Latest tag
latest -> 1.0.3
Publisher
registry
Visibility
Public
Checksum
sha256:a55f35c3761617846cb44b4559117c520b04f723f8d8b80a2c599654bbab6e6e

[roles]

Roles

Who takes part, and how many members each role holds.

lead1

Hands out data shards and holds the model.

chain1

Leads the run and holds the weights.

miner1..8

Registers and leaves freely; pulls data shards.

validator1..4

Registers and leaves freely; scores the miners.

[slots]

Slots

The actions a run binds: what each slot consumes and produces.

init
nothing -> model

Initializes the model the miners train from and the validators score.

merge
gradients* -> model

Merges the miners' gradients into the next model version.

score
model -> scores

Evaluates the miners and sends its scores.

train
model, shards -> gradients

Trains on pulled data shards and sends a gradient.

consensus
scores* -> weights

Merges the validators' scores into weights (the Yuma consensus step).

[round]

Step kinds

The steps of one round, in order.

  1. localrole miner · slot train
  2. localrole validator · slot score
  3. gatherfrom miner · to lead · object gradients · slot merge
  4. gatherfrom validator · to chain · object scores · slot consensus
  5. broadcastfrom lead · to miner · object model