Skip to content

Checkpoints and branches

Save a point, try things, go back. Like git, but nothing can be erased: every step is anchored at the server as it happens.

kveritas checkpoint -m "epoch 50 stable"
kveritas status                  # what changed since the checkpoint
kveritas restore 3c8e1a2b        # put the files back
kveritas branch quick-test       # try something on the side
kveritas set-aside 7d97432a -m "bad config"
kveritas log                     # see it all as a tree

Commands

Command What it does
checkpoint -m "..." [--files f] Saves every file in the project, like git add -A, data and weights included, no size limit. Leaves out caches (.git, __pycache__, node_modules, build, dist, ...), virtual environments and .gitignore'd paths. --files adds ignored files.
status First line: branch (*) and the checkpoint you are based on. Then one line per changed file: M modified, A added, R removed. Then a session summary. -v adds session details and every run; --json for scripts.
restore <id> Puts the files back. Never deletes; unsaved changes are saved as a checkpoint first.
branch <name> Labels the next runs, so side experiments stay apart. branch alone lists them.
set-aside <run> -m "why" Moves a run out of the main results. --undo brings it back.
log The session as a tree: @ you are here, x failed, branch name at its newest entry, * current branch. -v adds every result and changed file.

Copies stay on your machine in .kveritas/objects. Unchanged files are never copied twice, text is compressed, and on APFS, Btrfs and XFS big files are cloned instantly. Only changed files are read again. The server gets only a salted fingerprint of each step.

.kveritasignore does not apply to checkpoints. It only controls what goes in the report.

In your browser

kveritas web

The same history as a page on your computer:

  • the tree of runs, checkpoints and branches,
  • CLEAN, or the files changed since your checkpoint,
  • buttons to save a checkpoint, switch branch, restore, or set a run aside.

Click a row to see its results. Right-click for actions. Drag the "you are here" row onto a checkpoint to restore it.

Local only, and the link carries a secret key. On a remote machine, forward the port first:

ssh -L 7701:127.0.0.1:7701 <host>

Pick up where you left off

Your program must save its own progress, like a model file. Then:

  1. Checkpoint after epoch 50. model_ep50.pt is saved too (add it with --files if .gitignore leaves it out).
  2. Something breaks at epoch 63.
  3. kveritas restore the checkpoint. Your files and model_ep50.pt come back.
  4. Run again from epoch 50. Only epochs 50 to 63 are redone.

The report shows the whole path: the run that broke, the restore, and the run that finished.

What you can and can't do

You can You can't
Save as many checkpoints and branches as you want Delete a run, failed ones included
Go back to any checkpoint Change a run after it ends
Set runs aside Hide that you restored, branched or set something aside
Continue later, even offline Remove set-aside runs from the report

In the report

  • Your current branch leads the results.
  • Set-aside runs and other branches get their own section, still signed.
  • A History table lists every step, in order.