Skip to main content
All posts
engineering
compute
platform

How Swale Thinks About Compute

Swale TeamUpdated

Every workflow has a shape.

Some are tall and narrow: one long-running task that holds a GPU for hours. Some are wide and shallow: many parallel tasks that fan out and converge on a result. Most are somewhere in between — a graph of steps where one stage is CPU-bound, the next needs serious hardware, and the last just writes a report.

Infrastructure that sizes itself to the workflow treats all of those steps the same. Whatever the biggest step needs, every step pays for. That is the quiet tax built into most pipelines: the preprocessing stage riding a GPU it never touches, because the training stage next to it needed one.

Hardware follows the task

In Swale, compute is a property of the task, not the cluster. A workflow declares a default compute_type; any task overrides it in one line:

name: Fine-tune and publish
compute_type: cpu-4
entry_point: main

blocks:
  main:
    tasks:
      clone:
        name: Clone config
        uses: swaleio/git-clone
      download:
        name: Download model
        uses: swaleio/hf-download
        start_on: [clone]
      pull:
        name: Pull dataset
        uses: swaleio/swale-pull
        start_on: [clone]
      train:
        name: Fine-tune
        uses: swaleio/axolotl-train
        compute_type: a100-1
        start_on: [download, pull]
      push:
        name: Push results
        uses: swaleio/swale-push
        start_on: [train]

That one line is the entire scheduling interface. There are no pools to size, no clusters to manage, no capacity to plan. Each task gets compute of the type it declared, allocated to it alone and released when it ends — and because billing is per task, no step pays for hardware it doesn’t touch.

The workflow above as a run: clone, download, pull and push on the default cpu-4, and only the training step on an a100-1.

Dependencies are the schedule

start_on declares what each task waits for. From those declarations Swale derives the execution order, runs what can run in parallel, and streams logs and status per task. The graph you wrote is the schedule; there is no second artifact to keep in sync.

What we deliberately don’t ask

Swale never asks how big your cluster should be, how long a task will take, or where anything should run. Those questions are the infrastructure job we are removing. The honest division of labor is this: you declare the work and what each step needs — where it runs stops being your problem.

When your workflows need more — start with the getting-started guide or create an account.

Back to all posts