temperwork Blog Documentation
Guides

Pipelines and executions

A step runs a model over a dataset: every file, with one prompt. A pipeline chains steps, one's output the next one's input. Both are saved settings with no data in them; an execution is one run of one version of them on a dataset. This guide says how they fit together, how versions keep results comparable, and how to dial in a step.

Steps

A step is one pass of a base model over every file of a dataset. Its settings are:

  • Base model: what it runs (Models). Each takes one kind of data and makes one; the picker says which, such as images → images.

  • Prompt and negative prompt: what to do, and what to avoid.

  • LoRAs, each with a weight: the base model's built-in ones and the ones in your library for that model (Training and LoRAs). None runs the base model alone.

  • Sampling steps (1 to 200), CFG scale (0 to 30) and seed.

  • Max side: the output's longer side at most. A larger input is rendered down to it; a smaller one keeps its size unless Scale up to max side is on.

  • Reference: none, or a reference photo sent to the model with each file (for example, the person to swap in).

Every account and organization starts with two built-in ones to try or copy, listed on its Pipelines page:

  • Upscale: a step that sharpens and enlarges each image with the Upscaler LoRA.

  • Scene: a pipeline of three steps that turns drawn panels into photos (Scene · 1 Realistic), swaps the reference photo's person in (Scene · 2 Swap), and adds that person's LoRA (Scene · 3 Final).

Pipelines

A pipeline runs steps in order, each one's output the next one's input. Where it splits into parallel steps, each branch starts from the same input and runs side by side; the step after them runs on all their outputs pooled into one dataset, each file named after its branch.

A pipeline run's page: Colorize, then two branches side by side (Pastel; Poster then Night), then Frame on their pooled outputs
A pipeline run's page: Colorize, then two branches side by side (Pastel; Poster then Night), then Frame on their pooled outputs

A pipeline that ends in parallel steps makes one output per branch. A pipeline has at most 32 steps, and pipelines don't nest.

Each step in a pipeline is at a version; one set to "latest" is fixed to the version it is at when the pipeline is saved. A step's model must take the kind of data the step before it makes: an image step can't follow a video one.

New pipeline makes a step or a pipeline; Copy on any one's page starts from it.

Versions

Editing a step or pipeline and pressing Create version N+1 saves a new version. A saved version never changes, and it stores every setting with the defaults filled in, so it means the same thing later whatever the defaults become. Compare with… shows what differs between two versions.

A version that a run used, or that a saved pipeline uses, can't be deleted. Archive hides a step or pipeline you no longer want, and can be undone.

Executions

An execution, or run, is one version run on one dataset. Run on a step's or pipeline's page takes:

  • the version (the latest by default);

  • the input dataset, a reference if the step uses one, and the output dataset's name;

  • Redo existing (make every file again) and Dry run (check everything and queue nothing).

Run checks the settings and the data, then queues it. A worker on the step's base model's queue takes it and runs it on a GPU: on temperwork's cloud, or on your own workers when its datasets are in your own environment.

A pipeline run is an execution of its own, with one more for each step. Each step starts once the steps it waits on have succeeded, so branches run at the same time when workers are free. A step that fails stops only the steps that wait on it; other branches go on, and the run ends partial if it still made some outputs.

An execution's page shows its steps as in the picture above, each marked by where it stands; click one for its jobs and the end of its log. The page refreshes itself while the run goes on.

Run statuses

StatusWhat it means
queuedRecorded and waiting for a worker. Cancel takes it off the queue, and it becomes stopped.
runningA worker has taken it and is running it.
partialPipeline runs only: a step failed, was stopped or was interrupted, but the run still made some of its outputs.
succeededEvery step finished.
failedSomething failed; the run's page says what, with the end of each job's log. A run still queued a day after it started fails too.
stoppedSomeone cancelled it. In a pipeline run, a step that waited on a step that failed is stopped without running.
interruptedThe worker running it went away: it stopped checking in for 5 minutes, or it restarted. Run it again.

Succeeded, failed, stopped and interrupted are final; a partial run won't run anything more either. A pipeline run's status follows its steps': queued until a step starts, running while any step runs or waits to, then succeeded if every step did, partial if some outputs were made, and otherwise the status of the first step that went wrong.

A run's page also shows its jobs, one for each command a worker runs for it. A job has the same statuses, and one more: stopping, asked to stop and not yet exited.

Re-runs

Re-run vN repeats a run exactly: the same version, data and options. Re-run on other data keeps the version and options and lets you pick the data.

Dialling in a step

  • The playground is the quickest way to work out a prompt. **Open in playground on a step's page (or Playground** on Pipelines) gives you the step's settings to change as you like, with no versions to make: pick a dataset, Run, and each run is a try, shown beside the earlier ones file by file with the prompt it ran. When a try looks right, the **Save as version tab (beside Run on**) saves it: search for one of your steps to make it that step's next version, or choose New pipeline and name it. Its dataset becomes the one the step's Run tab starts on. A playground always opens on the step's latest version: nothing but your tries is kept when you leave. A try's results aren't a dataset you can use: they're shown in the playground and, to look at, under Playground results on Datasets, and a playground keeps its latest 20 tries.

  • Compare on a run's page puts it next to another run on the same input: another version, or another step. It shows what differs in their settings, then each input file with both outputs. Click the better output of each file, or Tie, and the counts say which run is ahead.

  • Try a change starts from either run's settings and lets you change the model, LoRAs and their weights, prompts, CFG scale, sampling steps and seed. It saves a new version, runs it on the same input, and moves the comparison to it once it has run.

  • Several puts up to six runs on the same input side by side: click the best output of each file, and the counts say how many files each run won.

  • Judge scores on a run's page show each judge's latest grade of its output (Judges).

With the API

POST /v1/pipelines makes a step ("kind": "step") or a pipeline ("kind": "pipeline"); .../versions saves a new version. POST /v1/executions starts a run, GET /v1/executions/<id>?wait=25 waits for it, and .../rerun, .../cancel and .../compare do what their buttons do. See Use the API and the API reference.

On this page