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.

Command line

epochcontrol ls                 # all runs, newest first
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.

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; next are notifications, settings, a run queue, framework adapters (Lightning, Keras, Hugging Face) and runs on other machines over SSH. Plan: PRD.md.

License

MIT

Metadata

Release files for epochcontrol 0.1.0

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.0
File Size Uploaded Provenance Actions
epochcontrol-0.1.0.tar.gz 58.4 kB With provenance Details for epochcontrol-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 77.7 kB

Release files / epochcontrol-0.1.0.tar.gz

Download URL epochcontrol-0.1.0.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ce2f5d2ffa50586ee7fd81c3210ff08f30e8525684e77f57eba4bead3e91803a
BLAKE2b-256 checksum
How to use checksums
977d873c4884254174b7eb90cd5391e52684f9b112b313871b85687ed8ca4207
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 5, 2026.

Transparency log

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

Download URL epochcontrol-0.1.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005a2981709bd2167417eb5cdd9794743f9e7a246ddda9daf3ed4823afb40d3f
BLAKE2b-256 checksum
How to use checksums
c009b7372b1979ebebcd92fd177daab0d4c1bf6ddf209e73271130b3f81eabe2
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 5, 2026.

Transparency log

Security for epochcontrol 0.1.0

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.0.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 5, 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