[EPIC] pipekit-train: stateful layers and the Keras backend

Abierto
#147 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, pytorch
Área
backend

Línea de trabajo

Read the child issues #16 and #13 and the referenced ADR D5 and geostack report 11. For #16, inspect TrainState, shard_train_state, and save_state; for #13, inspect the backend stubs and the tests in tests/test_adapters.py and tests/test_loop.py. The epic is done when all child issues are closed, BatchNorm statistics survive save and restore, and the Lightning backend reduces a small MLP's loss by at least 50%.

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

Descripción

area:code priority:p2 type:epic-theme

Theme

TrainingLoop handles models with running statistics, and its Keras backend does real training rather than raising NotImplementedError.

Parent Wave

None. This comes from geostack report 11, workstream E (ADR D5 in pipekit-train), and from pipekit-train's open issues.

Motivation

Two kinds of model can't train through TrainingLoop today.
TrainState holds no eqx.nn.State, so a BatchNorm model can't train on the Equinox backend (#16).
backend="keras" is a stub that always raises.
The Lightning backend is cancelled: pipekit won't support Lightning or PyTorch training, so #13 is closed and its stub is removed.
They're grouped because they widen what the loop accepts, and they're the least urgent pipekit-train work: no current caller is broken.

Issues

  • #16 eqx.nn.State for stateful layers.

Not filed yet, to be filed after #16:

  • feat(train): the Keras 3 backend, on the same run(loop) -> (op, backend_info) seam. ADR D5 schedules it for v0.3.
  • feat(train): a ModelOp for Keras models. pipekit_array.ModelOp doesn't exist at 3b9582d, so Keras needs its own wrapper.

Execution Notes

#16 can be built and tested on any machine.

#16's TrainState change touches shard_train_state and save_state, which have changed since it was written: thread state through them as well.

Parallelism

  • Can run in parallel with: every other epic, though #16 conflicts in adapters/equinox.py with #144 and #145, so stack the PR.
  • Blocked by (inside this wave): none.
  • Must complete before: none.

Definition of Done

  • All child issues closed.
  • A BatchNorm model trains through TrainingLoop, and its running statistics survive save_state and restore_state.

Relationships

  • Parent: none.
  • Related: geostack docs/reports/11_pipekit_train.md, workstream E
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.