[EPIC] pipekit-train: datasets, checkpoints and artifacts that match what they claim

Abierto
#145 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Start with the child issues #155–#159 and the referenced geostack report, then inspect the dataset, checkpoint, and registry entry points they identify. The epic is done when all child issues are closed and the listed hash, cycle, checkpoint resume, and trained-model round-trip checks pass; the catalog and parquet work are explicitly deferred.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:code priority:p1 type:epic-theme

Theme

Hashes, checkpoints and trained-model artifacts in pipekit-train match what they claim to hold, and simulation datasets work with real cycles.

Parent Wave

None. This comes from geostack report 11, workstreams A, B and C, and no geostack wave covers it.

Motivation

Each of these is a promise the API makes and the code doesn't keep, checked by running it at 7c446f1:

Symptom Measured Issue
Swapping a simulator keeps the dataset's hash, so a cache serves stale data Equal hashes for F and 2F #155
An error inside a seeded prior is swallowed Two prior calls, no error, seed lost #156
cycle= on SimulationDataset raises on a real Cycle TypeError on the first item #157
Checkpoint.save_dir is ignored, and the final step isn't saved No such directory; steps 1, 10, 20 of 25 #158
A registry stores no weights for a trained Equinox model load_weights returns None #159

They ship together because they share one outcome: a model's training data and weights can be identified and reloaded.

Issues

  • #155 The simulator's identity goes into content_hash.
  • #156 The prior's own TypeError reaches the caller.
  • #157 SimulationDataset(cycle=...) works, with a cycle_state.
  • #158 Checkpoint honours save_dir and saves the final step.
  • #159 The trained operator round-trips through the registry, and the hash needs no registry.

Not filed yet, to be filed when this epic is nearly done:

  • feat(train): CatalogDataset(catalog, preprocess, target_op, sampler=None), behind a [catalog] extra, which reads a geocatalog query and hashes the recipe. It needs its own design pass, because it crosses into geocatalog.
  • feat(train): parquet format for CachedDataset, for tabular pairs. format="parquet" raises NotImplementedError today, and tfrecord stays deferred.
  • docs(train): list the s3 and gcs extras in the README, the one part of #18 that wasn't done.

Already fixed, so not filed: one open store per worker (#142) and the geopatcher.temporal.stencils import (the module moved out in #57).

Execution Notes

#156, #157 and #155 all change dataset.py, so land them as one stack, with #155 last, because it is the one that changes existing hashes.
#155 changes every hash, so existing caches miss once; its changelog entry should say so.
#158 and #159 are independent of those and of each other.

Parallelism

  • Can run in parallel with: #144, #146.
  • Blocked by (inside this wave): none.
  • Must complete before: none.

Definition of Done

  • All child issues closed.
  • Swapping F for 2F changes the hash, and CachedDataset misses.
  • SimulationDataset(cycle=Cycle(fwd, n_steps=24))[i] equals 24 manual steps to 0.
  • An early stop leaves its final step in the checkpoint directory, and a resume starts there.
  • reg.load of a trained JaxModelOp gives outputs equal to the trained model's to 0.

Relationships

  • Parent: none.
  • Related: geostack docs/reports/11_pipekit_train.md, #144
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
3 h 50 min
PR fusionados (30 d)
143

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de jejjohnson/pipekit

Todos los issues de jejjohnson/pipekit

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.