Skip to main content

EpochControl

See and control your training runs from the Mac menu bar.

A Python package plus a native macOS app: progress, losses and honest timing at a glance, with pause, resume and stop for a running job. Local, no account. Not an experiment tracker; it sits next to W&B, TensorBoard or trackio.

EpochControl menu-bar popover: run list, progress, patience, best validation loss, timing with slept time, loss chart

Why

Long runs on a laptop raise the same questions every evening: how far is it, is it still learning, how long until it finishes, and can I pause it so the Mac can do something else? EpochControl answers them from the menu bar, without opening a terminal or a dashboard.

  • Progress and ETA per run, with epochs done out of total.
  • Losses as a small chart, best validation epoch marked, linear or log scale.
  • Patience: epochs since the best value, and optional early stopping.
  • Honest timing: active, paused and slept time are kept apart, so closing the lid does not inflate "training took 3 hours".
  • Pause, resume, stop between epochs, with a checkpoint saved first if your script registers one.
  • CLI with --json, so scripts and coding agents can read and control runs too.

Install

pip install epochcontrol        # Python 3.10+, no required dependencies

The Mac app (macOS 14+) is built from the repo for now:

cd macos && scripts/bundle.sh   # builds build/EpochControl.app (ad-hoc signed)
cp -R build/EpochControl.app /Applications/

The app opens by itself when a run starts. The package works without it (CLI only), on macOS and Linux.

Use

Smallest change: wrap the epoch loop.

import epochcontrol

for epoch in epochcontrol.loop(range(200), name="tft lstm h20"):
    train_one_epoch()

With losses, patience and a safe stop:

import epochcontrol

run = epochcontrol.start(name="tft lstm h20", total_epochs=400, patience=60, monitor="val", mode="min")
run.on_checkpoint(lambda: save_checkpoint(ckpt_path))        # your existing save function
start_epoch = run.resume_from(ckpt_path, load_checkpoint)     # returns the epoch to start from
for epoch in run.epochs(start=start_epoch):
    train_loss = train_one_epoch()
    val_loss = validate()
    run.log(epoch=epoch, train=train_loss, val=val_loss)
run.finish()

Add stop_on_patience=True to start() to end the run after patience epochs without improvement. with epochcontrol.start(...) as run: also works; an exception then marks the run failed.

Runs started by one script can be shown together: put export EPOCHCONTROL_GROUP="sweep A1" EPOCHCONTROL_GROUP_TOTAL=9 at the top of a bash loop (or pass group= and group_total= to start()), and the menu bar shows "sweep A1 · 4 of 9 done · 1 running · 4 to go".

Command line

epochcontrol ls [-n N]          # runs, newest first (default 20, -n 0 = all)
epochcontrol status [RUN]       # one run in detail
epochcontrol pause  [RUN]       # acts at the end of the current epoch
epochcontrol resume [RUN]
epochcontrol stop   [RUN]
epochcontrol agent-guide        # instructions for coding agents

RUN is a run id, an id prefix or a name; without it, the only run in progress. Every command takes --json.

Runs on other machines

The app also shows runs on a Linux GPU box (a DGX Spark, a server, a cloud VM) over SSH. On that machine: pip install epochcontrol in the training environment and python3; nothing else. On the Mac: an SSH login that does not prompt (ssh -o BatchMode=yes spark true), then network icon → Remote hosts → spark → Save. Remote runs appear as "spark · name" with the same chart and Pause / Resume / Stop; an unreachable host shows its runs as offline.

Show all under the recent runs opens the full history, by day, filtered by machine and outcome.

Every option, method, variable, command and app feature: docs/reference.md.

How it works

The package writes a small folder per run (~/Library/Application Support/EpochControl/runs/, or $EPOCHCONTROL_HOME/runs): status, metrics and events as JSON, written atomically. The app and the CLI read those files and drop command files that the training loop picks up between epochs. Nothing connects to anything, so training never depends on the app: quit it, crash it, and the run carries on. A failure inside the package warns once and never raises into your loop.

The file format is defined in schemas/.

For coding agents

epochcontrol agent-guide and docs/llms.txt tell an agent how to add EpochControl to a training script and how to read or control runs. Agents should never pause or stop a run without the user's approval.

Status

Early. v0.1 (Python package and CLI) and v0.2 (the menu-bar app) work on real runs; so do runs on other machines over SSH, the run history and script groups; next are notifications, settings, a run queue and framework adapters (Lightning, Keras, Hugging Face). Plan: PRD.md.

License

MIT

Metadata

Release files for epochcontrol 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epochcontrol 0.1.1
File Size Uploaded Provenance Actions
epochcontrol-0.1.1.tar.gz 59.9 kB With provenance Details for epochcontrol-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epochcontrol 0.1.1
File Interpreter ABI Platform Actions
epochcontrol-0.1.1-py3-none-any.whl Python 3 none any Details for epochcontrol-0.1.1-py3-none-any.whl

Total release size: 80.3 kB

Release files / epochcontrol-0.1.1.tar.gz

Download URL epochcontrol-0.1.1.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
af0201fa5a8d7a4548f2bfd2fe9486f3bba36ca4997a9d014ec425a1163676cf
BLAKE2b-256 checksum
How to use checksums
e2deca686b7498d8d6e96a174f0c73dc0f19eb375af5769c31b660d5377ae8e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / epochcontrol-0.1.1-py3-none-any.whl

Download URL epochcontrol-0.1.1-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
333328411c2bb6643ae24cbef4fb2f847e7c4e08cc2f2487e71c47d3848d5f41
BLAKE2b-256 checksum
How to use checksums
dabd5f224febfc9b804a536b824764c3f13cef16dd152b7ecd8a9f7637e24442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for epochcontrol 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for epochcontrol-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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