Log inStart free
LESSON 24.09 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Actor–learner architectures

Actors play episodes while a learner trains, and new weights travel between them.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 24.09 · ROLLOUT BAYGROUP 1 IN AT 7.1 S · RUN ENDS 12.9 S
01
Stage 1 of 6 · Actors and learner
Four actors play rollouts 1 to 4 in sandboxes. The learner trains once all 4 trajectories are in.
Explain it simply

Each of the four top lanes is an actor. It plays one rollout of the same prompt in its own sandbox. The learner lane waits until all 4 trajectories are in, at 7.1 s. While it trains, the actors already play group 2, the next group of the same prompt.

Four actor lanes, each with a group 1 bar and a group 2 bar. Group 1 ends at 7.1 s. The learner trains from 7.1 s to 8.6 s.

send costdecode actionsandbox toolwaitingtraining and weights
CPU nodes: 1 core per sandboxinference GPUlearner GPUobservationactionweightstrajectoriesactor 1sandboxactor 2sandboxactor 3sandboxactor 4sandboxpolicyservicelearnertrainsactor 1rollout 1actor 2rollout 2actor 3rollout 3actor 4rollout 4learner0 s2 s4 s6 s8 s10 s12 s14 stimegroup 1group 2group 1group 2group 1group 2group 1group 2trainwhere each part runsCPU nodes: 1 core per sandboxinference GPUlearner GPUobservationactionweightstrajectoriesactor 1sandboxactor 2sandboxactor 3sandboxactor 4sandboxpolicyservicelearnertrainsactor 1rollout 1actor 2rollout 2actor 3rollout 3actor 4rollout 4learner0 s2 s4 s6 s8 s10 s12 s14 stimegroup 1group 2group 1group 2group 1group 2group 1group 2trainwhere each part runs
Toy: the leap-year task, 4 actors, 2 groups, toy costs in ms
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
T1=max⁡i Ti\sy{t1}{data}{T_{1}} = \max_i\, \sy{te}{data}{T_{i}}
T1=max⁡(4808, 1990, 4808, 7064)=7064 msT_{1} = \max(4808,\ 1990,\ 4808,\ 7064) = 7064\ \text{ms}

Training starts when the slowest group-1 episode ends.

Common mix-ups

MYTHNew weights reach every actor at the same moment.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With the central service, does send time shrink with new messages only?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.