Skip to content

Run Keras integration tests on JAX and PyTorch - #10

Merged
ItCodinTime merged 1 commit into
ItCodinTime:mainfrom
cloudgpuapp:7-keras-backend-integration
Nov 26, 2026
Merged

ItCodinTime merged 1 commit into
ItCodinTime:mainfrom
cloudgpuapp:7-keras-backend-integration

Conversation

@cloudgpuapp

Copy link
Copy Markdown
Contributor

Summary

Run the backend-neutral Keras optimizer integration tests in the JAX and PyTorch CI jobs, alongside the existing TensorFlow job. Include a model save/load test that checks optimizer configuration and resumed training.

The new JAX run found two failures: hard pruning and Lookahead passed a Keras Variable wrapper directly to backend operations that require a tensor. Convert the variable at those boundaries without changing the update math. Keep TensorFlow-only tests in the TensorFlow integration job.

Closes #7.

Testing

  • JAX initially found two failures. Both JAX and PyTorch then passed all 19 optimizer integration tests.
  • Full suite on macOS arm64, Python 3.12: TensorFlow 139 passed, PyTorch 133 passed and 4 skipped, JAX 113 passed and 4 skipped. The separate PyTorch environment did not include TensorFlow or SciPy, and the separate JAX environment did not include TensorFlow or PyTorch.
  • Ruff lint, Ruff format check, mypy, and git diff --check passed.

Risks

No public API, optimizer configuration format, or math-spec change. The new CI step increases the work in each non-TensorFlow job.

Checklist

  • I added or updated tests for behavior changes.
  • Ruff lint and format checks pass.
  • Mypy passes.
  • Pytest passes with the optional dependencies noted above.
  • Public API and math-spec updates are not applicable.
  • I did not add credentials, private data, or machine-identifying benchmark metadata.

Drafted with AI assistance.

@ItCodinTime

Copy link
Copy Markdown
Owner

Thanks for this!

@ItCodinTime
ItCodinTime merged commit c579b18 into ItCodinTime:main Nov 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run the Keras integration tests on JAX and PyTorch backends

2 participants