---
title: "Run vision deployments offline on your own Mac or GPU server"
description: "Pull a deployment once, then run it offline on a Mac's Neural Engine or an NVIDIA GPU: a local UI, headless runs, and a service that runs for weeks."
section: "Guides"
order: 4
---
Pull a deployment once while connected; every run after it happens on this machine, with no
network. A Mac with Apple silicon runs it with Core ML, on the Neural Engine or the GPU; Linux
with an NVIDIA GPU runs it with TensorRT, in Docker.
One model in your own code, image by image or on a CPU, runs with
[Local inference](/docs/local-inference.md) instead.

```bash
pictograph local deployments pull "Swift Falcon"                  # once, connected
pictograph local deployments run "Swift Falcon" --source camera    # the local UI, at its run
pictograph local deployments start "Swift Falcon" --source camera  # kept running, for weeks
```

Every command: [CLI reference](/docs/cli.md#local).

## Install

```bash
pip install 'pictograph[cli,local]'
pictograph local doctor
```

`doctor` says what this machine can run: its chip, the engine, camera access, free disk, its
mode and API key.

| Machine | Runs on | Needs |
|---|---|---|
| Mac with Apple silicon | Core ML: the Neural Engine at FP16, the GPU at FP32 | macOS 26 or later |
| Linux with an NVIDIA GPU (T4 or newer) | TensorRT, in Docker | NVIDIA driver 580 or later, Docker and the NVIDIA Container Toolkit |

On Linux the engine is a Docker image, `ghcr.io/pictograph-io/pictograph-local-cuda`, pulled on the first run (about
10 GB, once). It runs as you, isolated: its own network, only its bundle, its log and its source mounted. A model
never falls back to the CPU: one the accelerator cannot run is refused, in words.

## Pull a deployment or a workflow

```bash
pictograph local deployments pull "Swift Falcon"         # a deployment of your organization
pictograph local deployments create street-detector      # a model, as a deployment
pictograph local workflows pull "Gate counter"           # a workflow
```

A bundle holds the deployment's compiled spec, each model's program for this machine (a Core ML
program on a Mac, the ONNX graph TensorRT builds from) and the look of its live view. It is
prepared where it is kept as it is pulled, so its first run starts at once. Pulling again brings
what changed and keeps its settings. `--precision` takes `fp16` or `fp32`, `--accelerator` takes
`apple` or `cuda`; both default to this machine's. Pulls cost nothing.

## Run it

```bash
pictograph local deployments run "Swift Falcon" --source camera:1
pictograph local deployments run "Swift Falcon" --source street.mp4 --headless --frames
```

Without `--headless` the local UI opens at its run: the live view as hardware video with its look
drawn in, each frame's results, and its controls. Ctrl-C ends it. With `--headless` the engine's
lines go to stdout as JSON: each second's stats, and with `--frames` each frame's message, as
[`pictograph deployments stream`](/docs/streams.md) prints them.

A source is `camera`, `camera:N` (`pictograph local cameras` lists them), an `rtsp://` stream
(on an NVIDIA GPU) or a video file. A camera opens at `1280x720@30` unless `--camera-format`
names another. A headless run opens a camera that drops again, waiting 1, 2, 4, 8, 16, then 30
seconds between tries.

## Keep it running

```bash
pictograph local deployments start "Swift Falcon" --source camera
pictograph local deployments list                     # its Service column: running, restarting
pictograph local deployments stop "Swift Falcon"
```

`start` hands it to the operating system: a launchd agent on a Mac, started at each login, or a
systemd user unit on Linux, started at boot. Either starts it again whenever it ends, and no
terminal holds it. A video file plays in a loop (on Linux each pass is a run of its own, the
service starting it again). A run of the same deployment is refused while
its service runs, and `delete` stops the service first. On a Mac, a service that opens a camera
asks for it once.

## Change its settings

```bash
pictograph local deployments update "Swift Falcon" --confidence 0.6
pictograph local deployments update "Swift Falcon" --source rtsp://10.0.0.20/live --max-rate 15
pictograph local deployments update "Swift Falcon" --reset confidence
```

Its settings are one file that every run starts with. A running run takes a new confidence or
rate at once; a new source or camera format starts the run again. The local UI's Configuration
writes the same file.

## Logs and analytics

```bash
pictograph local deployments logs "Swift Falcon" --live
pictograph local deployments logs "Swift Falcon" --kind event --since 1h --json
```

Every run's log is the cloud's [Live log](/docs/live-log.md) records, kept on this machine within a
budget (10 GB by default, `update --log-budget`; the oldest go first). The local UI's Analytics
reads it offline: detections by class and over time, with each run's rate and latency.

## Offline and connected

```bash
pictograph local mode offline
pictograph local mode connected
```

Offline, nothing leaves the machine and only the bundles on it run: a pull or a refresh is
refused before any request is made. Set `PICTOGRAPH_LOCAL_MODE=offline` to hold an air-gapped
install offline. Connected (the default), the platform is reached only when you pull or refresh,
and the local UI can add your organization's models, deployments and workflows, or a public model
from Explore.

## The local UI

```bash
pictograph local ui
```

It lists every deployment and workflow kept here and runs each one, with Configuration, Logs and
Analytics. It opens with a link that carries its key; only this machine can reach it.

## Measure it

```bash
pictograph local deployments bench "Swift Falcon" --source street.mp4
```

`bench` runs it on a video file at the machine's whole rate and prints its results a second and
its capture-to-result latency.

## Next

- [CLI reference](/docs/cli.md#local) - every `pictograph local` command
- [Deployments](/docs/deployments.md) - the same deployment as a cloud GPU endpoint
- [Local inference](/docs/local-inference.md) - one model in Python, image by image, on a CPU or GPU
- [Live log](/docs/live-log.md) - the records a local run keeps