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

オープン
#145 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
0
フォーク
0
平均マージ
3時間 50分
マージ済み PR(30日)
143

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jejjohnson/pipekit のほかの issue

jejjohnson/pipekit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。