Skip to content

Overview

Caliper is a desktop application that draws live graphics from tensors that stay on the GPU. It is for people who train models and write tools for them. A host program owns the window, the renderer and the frame loop. Applets are shared libraries that the host loads at run time. Caliper is built from source. This version of the repository is host 0.6.0, SDK 0.1.0 and ABI epoch 3.

Components

The host draws and the applets supply content. An applet adds ImGui user interface and compute, and it talks to the host through a frozen C ABI and named service tables. Development basics explains the host, the applet and the build, and The ABI is the contract between them.

Caliper LIB is the Python package caliper. A training script calls show() and its sibling calls, and the tensors become live views. The views appear in the Caliper app, in the caliper-viewer program, in a notebook widget or in a browser tab. A hub, started with caliper serve, holds the sessions of several scripts at one address.

flowchart LR
    script[Training Script] -->|view calls| lib[Caliper LIB]
    lib -->|snapshots| app[Caliper App]
    lib -->|stream| hub[Hub]
    hub -->|stream| web[Browser Views]
    app -->|loads| applets[Applets]
    builder[Builder] -->|commands| app
    agents[Agents] -->|commands| app

Backends

On the Metal and Vulkan paths, tensors reach the screen without a trip through the CPU. On macOS the default is Metal with MPS, and Metal processes accepted MPS buffers without host staging. On Windows the default is Vulkan with CUDA, and a CUDA kernel writes a tensor update straight into the Vulkan image. There is no fallback renderer yet: where neither Metal nor Vulkan starts, Caliper refuses with a message that says why (No Fallback Renderer).

The host reports the path that drew each image and claims zero-copy only when that path ran. Rendering explains how the host chooses a backend.

Entry Points

A reader who wants live views of a PyTorch run starts with Caliper LIB. The Introduction and Python areas cover that path. A reader who wants to write an applet starts with Your first applet, which builds the smallest UI applet.

The builder lets you assemble a dashboard from sources and panels by hand. Agents work in the app too. A widget agent edits one target in place, an agent in the side chat takes bigger jobs, and an outside agent can drive the app through the MCP server and the HTTP API. Embedding Caliper describes how another program hosts the applet canvas. Plans for work that is not built yet live in the repository's design/ folder and are not part of this site.