[EPIC] pipekit core and pipekit-jax: fail loudly under jit, then JAX-native operators

Aperta
#150 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with issue #169 and the existing JAX operator at packages/pipekit-jax/src/pipekit_jax/operator.py; the issue says the trace guards can land independently. For each remaining item, read the listed pass conditions and check the referenced README, pyproject.toml, and design docs where named. The epic is done when every child issue is closed and pipekit core imports with JAX absent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:code priority:p1 type:epic-theme

Theme

Operators in pipekit fail loudly under jax.jit instead of returning wrong values, and pipekit-jax gains JAX-native control and observation operators.

Parent Wave

None. This comes from geostack report 5, workstreams A, B, C and E.

Motivation

pipekit core stays free of JAX, and most of it traces correctly as it is.
The exceptions are silent: Cache under jit returned [0, 4, 8] where the answer is [0, 8, 16], and Snapshot and Sink store tracers that die with the trace (#169).
The guards come first, because they stop wrong answers; the rest is added surface, gated by real use.

Issues

  • #169 Trace guards in pipekit core.

Not filed yet, with what each must satisfy when it is:

Work Destination Passes when
docs: build time and trace time, covering what runs once at trace time and how to differentiate a module inside a pipeline pipekit docs The page builds and is linked from pipekit-jax's README
chore(jax): correct the README and dependencies pipekit-jax The install notes list exactly pyproject.toml's dependencies; jaxtyping is declared but no source file imports it at 7c446f1, and the README links docs/design/, which doesn't exist
feat(jax): JaxSequential, an eqx.Module pipeline that keeps summary, | and the stateful path pipekit-jax Its gradient equals a rebuilt module's to 1e-9; eqx.tree_at replaces one operator; two equal-config pipelines compile once
feat(jax): CondBranch and CondSwitch on jax.lax.cond and jax.lax.switch pipekit-jax CondBranch under jit equals the eager Branch to 1e-12; mismatched arm shapes raise on the first call
feat(jax): DebugTap on jax.debug.callback pipekit-jax It fires once per call under jit: 3 calls, 3 callbacks

JaxOperator already ships, in packages/pipekit-jax/src/pipekit_jax/operator.py @ 7c446f1.
VMapOver, Checkpoint and ScanSequential wrappers are deliberately out of scope, until a pipeline using one must round-trip through YAML.

Execution Notes

#169 is independent of everything else and can land now.
JaxSequential should wait until a project differentiates over operator parameters, because today's documented pattern, rebuilding the pipeline inside the loss, still works.

Parallelism

  • Can run in parallel with: every other epic.
  • Blocked by (inside this wave): none.
  • Must complete before: none.

Definition of Done

  • All child issues closed, including the ones above once filed.
  • pipekit core imports with JAX absent.

Relationships

  • Parent: none.
  • Related: geostack docs/reports/05_pipekit_jax.md
Lingua principale
Python
Stelle
0
Fork
0
Merge medio
3h 50m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jejjohnson/pipekit

Tutte le issue di jejjohnson/pipekit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.