agentleFS
90184479018447/julia-pro-p/skills/experiment-tracking/SKILL.md

experiment-tracking

Skill0 starsChanged 3 days agoMITView on GitHub

Make a training run reproducible from its record: what the record must hold, when a run directory beats MLflow or W&B, data versioning with DVC, and comparing runs honestly across seeds. Use when a result must be reproducible from its record.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write config.json before the first training step, append metrics as you go (a crash should leave a usable record), and write a STATUS file …

    line 48
  2. Very specific:

    Comparing runs from different n or different metrics code: Check the metric implementation is in the repo and versioned, not pasted into …

    line 63

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

A run you can reproduce

The test is single and mechanical: given the record and nothing else, can a second person regenerate the number? Everything below is either what the record must hold, or which tool to buy with what budget.

What the record must hold

ItemWhy it is load-bearingCheap form
git commit, including dirty statecode is the largest hidden variablegit rev-parse HEAD + git status --porcelain
resolved environmentProject.toml ranges are not a versionManifest.toml, pip freeze, or the lockfile, pinned in-repo
data version, by contenta path identifies a location, not bytesSHA-256 of the file or the DVC pointer
full config as one valuea default read at runtime is not in the recordone dict/struct, logged before the first step
seed, and what it controlsinit, shuffle, and sampler are three seedsone seed struct with all three fields
per-epoch metricsthe final number cannot tell overfitting from a bad runstep-indexed series
checkpoint artifactthe only way to re-evaluate or deploypath + hash, stored outside the working tree
hardware and driverGPU kernels change numericsdevice name, driver, library build

A record missing any row fails the test above. The rest is preference.

Which shape of tracking

SituationUseNote
one machine, few runs, a paper to writea run directory per run: config.json, metrics.csv, env.txt, git.txt, checkpoint/zero dependencies, greppable, survives every tool going out of fashion
a team sharing comparisons, a UI wantedMLflow (tracking server + model registry)the server is a service to maintain; SQLite is fine for one lab
sweeps, live dashboards, collaborationWeights & Biaseshosted, and the run data leaves the machine — decide that deliberately
data too large for git, pipelines to rerunDVCcontent-addressed pointers in git, data in a remote; dvc repro reruns on dependency change
Julia training loopsplain run directories, plus TensorBoardLogger.jl for curves or Wandb.jl for hostedthe MLflow and DVC clients are usable from Julia but are the weakest link; a JSON record costs nothing and never breaks

The run-directory format is not a lesser option. It is the format the other tools store anyway, and it is the one that still opens in five years.

A run directory

mkdir(run_dir)
for (name, value) in [("config", config), ("metrics", metrics), ("env", env)]
    open(joinpath(run_dir, "$name.json"), "w") do io
        JSON3.write(io, value)
    end
end
write(joinpath(run_dir, "git.txt"), read(`git rev-parse HEAD`, String))

Write config.json before the first training step, append metrics as you go (a crash should leave a usable record), and write a STATUS file at the end (ok, diverged, killed) so later comparisons do not have to guess from the metric shape.

Comparing runs honestly

  • Same data version and same split, or the comparison is between two tasks.
  • Three seeds minimum for a claim of improvement; report mean ± sd across seeds, and never the best seed.
  • Fixed budget across arms of a sweep (epochs, wall-clock, or evaluations) — the arm with more budget wins for that reason alone.
  • A baseline that is not the model you are replacing at its best. Tuned baseline, same preprocessing.
  • Tag smoke runs (smoke) and exclude them from comparisons; a debug run in the table is how a spurious best result appears.

Traps

  • Logging the config after training. The run records what survived, not what ran; a crashed run then has no record at all.
  • Trusting Project.toml as the environment. [compat] ranges resolve differently next week; Manifest.toml is the environment.
  • A data path with no hash. data/train.csv was overwritten twice during the project.
  • Comparing runs from different n or different metrics code. Check the metric implementation is in the repo and versioned, not pasted into the notebook.
  • Seeding only the model. Data order and augmentation randomness move the result as much as initialization.

Done when

A run record carries the commit and its dirty state, the resolved environment, the data version by content, the full config logged before training starts, the seeds, step-indexed metrics, and the checkpoint with its hash; the tags say what the run is relative to (baseline, ablation, final, smoke); and rerunning from that record reproduces the metric on the same data version.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.