Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Vision

1. Motivation

Two training tools already do the heavy work. Equinox+Optax and Keras 3 each have battle-tested training loops, distributed primitives, mixed precision, and profiling. Reimplementing that machinery is wrong.

What’s missing in geophysical ML is the glue: a way to compose training pipelines from the same operator-graph machinery that pipekit already provides for inference, with first-class support for two non-standard data shapes:

There is also a smaller but persistent need: reproducibility. A trained model should be recoverable from (training_pipeline_yaml, dataset_content_hash, seed) — the same content-hash discipline that pipekit-experiment already provides for inference pipelines. Pipekit-train must extend that discipline to the training side.

2. What pipekit-train is

A thin orchestration layer that wraps existing training tools and exposes them as composable pipekit_ops.Operators. Five conceptual pieces, all on top of pipekit-ops core:

The trained model is itself a pipekit_ops.Operator. After training, the output is a KerasModelOp (Keras) or a pipekit-jax.JaxModelOp (Equinox) wrapping the trained weights, and its content hash flows into the pipekit-experiment model registry.

3. Design principles

These are the principles that govern the rest of the design. They echo and extend the principles from eqx_trainer’s vision: the same “composable, not a framework” stance, scaled up to a carrier-agnostic operator-graph context.

4. Why this is not the same as eqx_trainer

eqx_trainer (the design doc in jej_vc_snippets/) is an excellent Equinox-native trainer. It is also exactly what should live inside pipekit_train.adapters.equinox — Grain DataLoader, Orbax CheckpointManager, eqx.partition bridge, TrainTask Protocol, JSON lines MetricWriter. The eqx_trainer ADRs (D1–D6) become the adapter-level decisions (see Design Decisions, Section “Equinox adapter decisions”).

What pipekit-train adds on top is the carrier-agnostic surface: dataset abstractions that work for catalogs and simulators alike, loss and callback Protocols that don’t depend on JAX, an artifact contract that integrates with pipekit-experiment, and a TrainingLoop operator that serializes via the same machinery as every other pipekit operator. The Equinox adapter then uses the eqx_trainer design internally to do the actual training.

The two designs do not compete; they layer.

5. Out of scope