[EPIC] pipekit-train: stateful layers and the Keras backend
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
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%.
Written by the indexing model from the issue text.
Description
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.Statefor stateful layers.
Not filed yet, to be filed after #16:
feat(train): the Keras 3 backend, on the samerun(loop) -> (op, backend_info)seam. ADR D5 schedules it for v0.3.feat(train): a ModelOp for Keras models.pipekit_array.ModelOpdoesn't exist at3b9582d, 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.pywith #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 survivesave_stateandrestore_state.
Relationships
- Parent: none.
- Related: geostack
docs/reports/11_pipekit_train.md, workstream E
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 3h 50m
- Merged PRs (30d)
- 143
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/pipekit
-
area:code layer:0-primitives priority:p2 type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jejjohnson/pipekit#296 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 57/100
jejjohnson/pipekit#411 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
jejjohnson/pipekit#410 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 5/5 Over a week Newbie friendliness 38/100
jejjohnson/pipekit#409 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 75/100
jejjohnson/pipekit#408 ·
Maintainers usually reply within 1 day
All issues in jejjohnson/pipekit
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day