Skip to main content

fortel-agent

Runs Fortel's deep-learning jobs on your own hardware instead of ours. This is compute offload, not a privacy feature — the dataset is sent from Fortel to your machine to train on, and the trained model is sent back so it can be used for predictions later. It exists because a GPU costs more per month than the product does, not because anything is being kept from the server.

pip install "fortel-agent[torch]"           # omit [torch] for a connection test only
fortel-agent login --token fa_xxxxxxxx      # token from Fortel → Settings → Runners
fortel-agent start

Leave it running. Queue a job in Fortel and this picks it up.

What comes back

Metrics, and the model. When a run finishes, the network is exported to ONNX and uploaded, where it becomes a versioned entry in your Fortel model registry — so a forecaster can be rolled further forward later, and a detector can score rows that did not exist when it was trained.

ONNX rather than a pickle for a reason that matters on the receiving end: unpickling is executing, so a server that unpickled whatever a runner uploaded would be running code from a machine it does not control. ONNX is a graph description that a runtime parses.

The upload is never load-bearing. No torch, a graph that will not export, a model over the size ceiling, a dropped connection — each leaves your metrics untouched and reports model_saved: false with the reason, rather than failing the run.

Why it exists

Deep-learning models don't fit the economics of a hosted plan — a GPU dyno costs more per month than the whole product. Rather than not offering them, Fortel sends an instruction sheet to a runner you control: a recipe name and bounded parameters. Never code.

Commands

Command What it does
fortel-agent login --token … Saves and verifies a device token (~/.fortel/agent.json, mode 0600)
fortel-agent start Claims and runs jobs until you stop it
fortel-agent start --once Handles one job and exits — useful in CI or a notebook
fortel-agent doctor Checks every link in the chain and names the broken one

Configuration resolves command line → environment (FORTEL_API, FORTEL_TOKEN) → saved file.

Running on Colab or Kaggle

The runner needs no inbound connectivity, so it works anywhere Python does — including a free GPU notebook:

!pip install fortel-agent
from fortel_agent import run_in_notebook
run_in_notebook(api="https://your-fortel-api", token="fa_xxxxxxxx")

Check your notebook provider's terms before using it as a backend for a hosted service, and keep jobs short enough to finish inside one session — a runtime that disconnects mid-job simply returns the work to the queue.

Security

  • No inbound ports. The runner only calls out, so it works behind home routers, university firewalls and corporate proxies.
  • Names, not code. A job spec names a recipe from a fixed local registry. There is no eval and no import-by-name; an unrecognised name is refused even if the server sends it.
  • Bounded parameters. The server clamps every hyperparameter before queuing, because this runs on your machine.
  • The token never crosses plain HTTP except to loopback, for local development.
  • No standalone download links. The job spec never contains a URL: the runner builds the dataset address from the server it is already authenticated against, so there is nothing to redirect it elsewhere and no link that works on its own if it leaks.
  • Revocation is immediate. Revoking a device in Fortel stops it mid-job.

Installation size

The core has no third-party dependencies — the transport is standard library only, so the install cannot fail on a dependency resolution. Recipes needing a heavy stack are extras:

pip install "fortel-agent[torch]"

Adding a recipe

One file in fortel_agent/recipes/, one line in its REGISTRY. Transport, retries, heartbeating, progress reporting and failure handling are shared.

def run(params: dict, report, dataset=None, artifact=None) -> dict:
    frame = pd.read_csv(dataset)          # None when the recipe needs no data
    for step in range(1, params["epochs"] + 1):
        ...
        report(progress=step, total=params["epochs"], message=f"epoch {step}")
    return {"final_loss": loss}

dataset is a path inside a per-job directory the runner creates and deletes when the job ends, so the copy sent for training does not outlive the job here. artifact is the optional sink for handing the trained model back — see recipes/export.py; a recipe that trains nothing simply ignores it.

Give it an is_available() attribute if it needs an optional dependency — a recipe that can't run must not be advertised, or the server will hand it work that fails on someone else's schedule.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fortel_agent-0.3.0.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fortel_agent-0.3.0-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file fortel_agent-0.3.0.tar.gz.

File metadata

  • Download URL: fortel_agent-0.3.0.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for fortel_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 febe2fbabc34826c1ae3a99a49febadfc21992e8794e1fc42453a7841d5fe381
MD5 be365b8df08b6436a71be32dc4ba657b
BLAKE2b-256 787baf27b2d5f84430f10a17799a255f8589cbf4f54131a8e0ef2ba70260bb05

See more details on using hashes here.

File details

Details for the file fortel_agent-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: fortel_agent-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for fortel_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9328aac110f2372ecaedf87fa0325eaebb6be5e7138e74f99a37f3ef36c2021c
MD5 09546be72e7b45daa63a00ebbcc3501c
BLAKE2b-256 b8fdd60ba0c2633b17d338b110e76e405d6eeb395ccd7b3f6ae471493f032655

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page