Skip to content

Live Streaming

Snapshots of a script's tensors are copied on the device into shared memory, and a viewer process on the same machine samples them at its own pace, so the script never waits for the display.

Field Value
ID STR-04
Status Shipped
Scope Core
Pillar Live Data, Streaming and Recordings
Sprint None
Depends On Caliper LIB (STR-01)
Unblocks App-to-Script Requests (INT-08)
Network Streaming (STR-05)
Several Viewers per Session (STR-18)
f16 and bf16 (STR-19)
caliper-viewer (STR-44)
Docs Live Streaming
Branches None
Design None

Coverage Ledger

  • Branch sprint2-points3d, 0 commits that main lacks (8 ahead of the merge base). Work on the 3-D points box, depth cues, default camera and rotation, documented, which reached main through a pull request (patch ids and subjects match).
  • Branch sprint2-proto, 0 commits that main lacks (3 ahead of the merge base). Work on the measured cost of streaming moved into the docs, which reached main through a pull request (patch ids and subjects match).
  • design/scenes.md on the branch sprint4, 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.
  • Routes and Inspection, Routing. A view call is offered to every open route: the live session, the in-process core and the network server.
  • View Calls, MPS Zero-Copy. A tensor on MPS reaches the viewer with no host copy.
  • Routes and Inspection, Routes and Lifetime. session, window, offscreen, run, spin, flush, close and remove manage the routes and their lifetime.
  • Routes and Inspection, caliper.live. caliper.live lists live sessions on this machine and finds the viewer executable.
  • Development Basics, Training Script Attachment. Attaching to a training script from the landing screen with F4.
  • Python Quickstart. Watch a PyTorch training run live with caliper.show, in the app, in caliper-viewer and in an own window.
  • Script Attachment, Session List. Find the session file of a running script.
  • Script Attachment, App Attachment. Attach from the Caliper app with F4.
  • Script Attachment, Viewer Attachment. caliper-viewer ships in the wheel and attaches by token or from a session list.
  • Live Streaming, Limits. Cost to the script when nobody is attached.
  • Live Streaming. Live streaming over shared memory with sessions, snapshots, sampling and sync.
  • 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.
  • Pull request #14. Known gaps recorded in pull request 14. The notebook widget is untested in VS Code notebooks, the capture is Metal only, and the cost goal of 3 percent is missed for three views with two viewers (4.6 percent).

Roadmap Graph Feature in Graph