[EPIC] pipekit-experiment: checkpoints, metric files and provenance for long runs

Open
#380 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Read packages/pipekit-ops/docs/design/roadmap.md and the child issues #386, #387, and #388 to understand the scope. The epic covers numbered artifact storage and rotation, JSONL and fanout writers, and run provenance; it is done when all three children are closed, pipekit-experiment is released with the additions, pipekit-train uses that release, and the README lists them.

Written by the indexing model from the issue text.

Description

area:code priority:p2 type:epic-theme

Theme

pipekit-experiment holds the run records every long loop writes: numbered checkpoints that survive a crash, a metric file that one reader can parse, and the versions and commit a run used.

Parent Wave

  • Wave epic: none. These are the pipekit-experiment items named at the end of packages/pipekit-ops/docs/design/roadmap.md (merged in #374).
  • Package roadmap: #229.

Motivation

sesmax-experiment's run loop writes three records with code that is not specific to its models (sim/ @ 12f169f6bf):

  • CheckpointStore: <step>.zarr stores written as a partial and renamed when complete, keeping the newest few and every N-th.
  • JsonLinesWriter: a flat JSON line per step, flushed as written, with non-finite numbers as null; and a private Fanout of writers.
  • A manifest with the installed versions of the run's libraries and the git commit and dirty flag.

pipekit-train needs the same records and has its own JSONLWriter, which writes a different file.
These belong in pipekit-experiment, not pipekit-ops, because they are about runs and files rather than operators.
They need only the standard library, as pipekit-experiment's core does today.

Issues

  • #386 — StepStore: numbered artifacts written under a temporary name and rotated
  • #387 — JSONLWriter and FanoutWriter move to pipekit-experiment
  • #388 — provenance(): the package versions, platform and git commit of a run

Parallelism

  • Can run in parallel with: #379
  • The three children are independent.

Definition of Done

  • All child issues closed
  • pipekit-experiment released with the three additions, and pipekit-train on that release
  • The pipekit-experiment README lists them

Relationships

  • Parent: #229
  • Related: #151, #379
Dominant language
Python
Stars
0
Forks
0
Avg merge
3h 50m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jejjohnson/pipekit

All issues in jejjohnson/pipekit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.