Skip to content

8 articles

↑ ↓ to navigate · Enter to readEsc to close
Back to journalWeavers / Journal
Engineering / WEAVERS JOURNAL

Running research on your own machine

How the Weavers desktop app runs notebook code and optimisation work in isolated containers on your computer, and what is available today.

WWeavers Engineering3 min read

Why run research locally

Model fitting and optimisation are the heaviest part of research. Some of that work is cheaper, faster to iterate on, or simply more comfortable to keep on hardware you already own. The Weavers desktop app is built so that the same experiment can use containers on your machine instead of Weavers cloud compute, without changing how the run is recorded.

Your code runs in a locked-down container

The desktop app never runs Python in its own process or directly on your computer. It sends notebook cells to a small Weavers worker agent on your machine, which runs them in an isolated Docker container. The container has no network, no Linux capabilities and a read-only root filesystem, with explicit limits on CPU, memory, processes, run time and output. Only the job's inputs are mounted, read-only, and only its artifact directory can be written. Running code straight on the host is refused, because it could not keep those promises.

The app checks before it sends anything

The first cell of every notebook inspects your machine: CPU, memory, disk, Docker and whether the local worker agent is ready, and it recommends how many local workers fit at one CPU and 2 GiB of memory each. Before any code leaves the app, the agent must prove it holds the secret it shares with the desktop app by answering a challenge. A process that merely listens on the expected port receives nothing.

A local run keeps the same record

When an optimisation run uses local compute, Weavers still creates the normal run and worker records. The agent executes the bounded command that Weavers prepared, in place of a cloud job, inside a Python runtime that Weavers manages and fingerprints. If that runtime is missing or out of date, the agent refuses to start the run. The result, its validation evidence and its history read exactly like a run on Weavers cloud compute.

What is available today

Local compute is in preview. The desktop installer is not public yet, and running an optimisation from weavers.app on your own machine needs a connection from the desktop app back to Weavers that we are still building, because the cloud cannot reach your computer directly. Until then, runs use Weavers cloud compute. GPU acceleration is not supported: the current research runtime is built for CPUs.

Your machine does the work. The run record stays the same.