Protocol 3.1 Controls¶
The controls of protocol 3.1 let a viewer pause, resume and step a training loop, change registered parameters, run registered actions and share a selection between views.
| Field | Value |
|---|---|
| ID | STR-03 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | Wire Protocol v3 (STR-02) |
| Unblocks | Run Control Commands (AGT-31)Controls for Experiments ( INT-04)Scene Selection and Events ( REN-46)Notebooks ( STR-07)Wire Protocol 3.2 ( STR-09) |
| Docs | Run Control Messages, Controls |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Branch
sprint2-pyctl2, 1 commit, 6a86cf8c; the other 16 are on main. A roadmap edit that marks the controls of wire protocol 3.1 as done through caliper.serve() and the hub on both senders, with interventions on a model as the next step. - design/gpu-programs.md, under Wire Path. A program reaches the script in a new PROGRAM message, and its outputs return as scene updates and snapshots.
- design/gpu-programs.md, under Intervention Wire. The ops of the interventions use the CONTROL and CONTROLS messages under the capability interventions.
- design/hosted-runs.md, under Runner Connection. The runner keeps its own viewer connection to each managed run for its state, actions and series.
- design/hosted-runs.md, under Attachment. The app attaches to a new managed run, and the run commands take the run they act on.
- design/instruments.md, under Run Commands. The run commands set parameters and drive the run of a script that streams to the app.
- design/instruments.md, under Run Control in App. The app implements the run control that the run commands call.
- design/instruments.md, under Event Kinds. The kinds of event include scene selection and control change.
- design/instruments.md, under Watch Extension. With an optimizer, caliper.watch starts the server, adds a step pre-hook and registers lr, loss and the scene.
- design/roadmap.md, under Streaming and embedding. Built so far: embedding package, network streaming over protocol v3 with data views, caliper.serve(), notebook widgets, 3.1 controls, app and viewer attach by link, hub, browser views.
design/scenes.mdon the branchsprint4, under What is built and what is planned. Protocol v2 shared-memory session and wire protocol 3.1 with data views, events, controls and linked selection.- Run Control Calls, Controls. The Python controls layer: step, pause, param, action, items and controls.
- Run Control Calls, step. step is the checkpoint in a training loop where a viewer can pause and step.
- Run Control Calls, pause. pause stops a run at its next checkpoint.
- Run Control Calls, param. param registers a parameter that a viewer can change while the script runs.
- Run Control Calls, action. action registers a function a viewer can run.
- Run Control Calls, items. items registers item ids and details for linked selection.
- Run Control Calls, controls. controls returns the notebook widget with the run state and the Pause, Resume and Step buttons.
- Run Control Messages, Controls. Protocol 3.1 controls: the checkpoint, pause, resume and step, parameters, actions, ordering and who may control.
- Linked Selection Messages, Linked Selection. Linked selection shares a selection between views through item spaces.
- Browser Elements, <caliper-controls>. The caliper-controls element shows the run state and the controls of a stream.
- Notebook Training Runs. Watch a training run in a notebook with caliper.serve, widgets, controls and a browser tab.
- Viewer, Stream Controls. Control the run and share a selection from the viewer.
- Script Control. Control a running script with checkpoints, parameters, actions, pause and step, and linked selection.
- Pull request #14. Pull request 14 (merged) delivers sprint 2: wire protocol v3 and 3.1, Caliper LIB serving, data views, browser views, the hub, the app attaching to a stream, interactive controls, Caliper API v0, macOS 14 target and CI for the browser views.
- Orchestrators' notes,
sprint2/PR.md. Wire protocol v3 and 3.1 with golden frames decoded by the Python, C++ and TypeScript codecs. - Orchestrators' notes,
sprint2/PR.md. Interactive controls: caliper.step, param, action and items.