Caliper LIB¶
Caliper LIB is the Python package whose view calls, show, points, series and histogram, send snapshots of a script's tensors to a viewer without making the training loop wait.
| Field | Value |
|---|---|
| ID | STR-01 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | None |
| Unblocks | Interpretability Example Scripts (INT-31)Caliper LIB on Windows ( PLT-07)Release Workflow ( PLT-19)Live Streaming ( STR-04)Arrays from JAX and CuPy ( STR-36)Smaller Caliper LIB Wheel ( STR-37)caliper.watch ( STR-45)Own Window and Offscreen Canvas ( STR-46)Framework Adapter Interface ( STR-48) |
| Docs | Caliper LIB API |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Branch
sprint2-review-py, 0 commits that main lacks (7 ahead of the merge base). Work on a check that a stalled viewer makes no view call wait, which reached main through a pull request (patch ids and subjects match). - design/applet-builder.md, under What already exists. Table of existing pieces: service registry, data.v1 SQL, feed.v1, metrics.v1, live views, guarded loader, frame watchdog.
- design/builder-overview.md, under Next. The documented setup builds the native sender and the WebAssembly views.
- design/roadmap.md, under API. Caliper LIB, Caliper Embed and Caliper API v0 are built.
design/scenes.mdon the branchsprint4, under What is built and what is planned. The points live view of Caliper LIB, which becomes the points primitive of a scene.- 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, Call Cost. The measured cost of a view call per device and route.
- View Calls, Rate Limit. The rate limit of snapshots per route, 60 a second by default.
- View Calls, show. show sends a tensor as a heatmap or an image view.
- View Calls, points. points sends a 2-D or 3-D point cloud as a view.
- View Calls, series. series appends scalar values to a line view.
- View Calls, histogram. histogram sends a histogram view of a tensor.
- Routes and Inspection, Inspection and Test Helpers. stats, frame, render, read_pixels and view readback helpers for the in-process core.
- Caliper LIB API, Constants and Types. Constants and types of the package.
- Caliper LIB API, Environment Variables. The Python environment variables such as CALIPER_SESSION.
- Caliper LIB API, Threading. The threading rules of the Python calls.
- Folders and Environment, Python Variables. The Python variables.
- Python Quickstart. Watch a PyTorch training run live with caliper.show, in the app, in caliper-viewer and in an own window.
- 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. Caliper LIB: caliper.serve, caliper.widget, caliper.controls, caliper.connect, a native sender and a Python fallback.