Skip to main content

One-stop JAX foundation model repository

Project description

foundax

foundax logo

Unified JAX model zoo for operator learning, PDE surrogates, and Equinox foundation-model wrappers.

uv pip install foundax

Overview

foundax provides two main model groups:

  • Core Equinox architectures in foundax/architectures/ (FNO, UNet, DeepONet, GNOT family, and others)
  • Equinox wrappers for larger vendored model families (Poseidon, MORPH, MPP, Walrus, BCAT, PDEformer-2, DPOT, PROSE)

Quick Start

import foundax as fx

# Core models
model = fx.mlp(in_features=2, output_dim=1, hidden_dims=64, num_layers=3)
model = fx.fno2d(in_features=1, hidden_channels=32, n_modes=16)
model = fx.unet2d(in_channels=1, out_channels=1)
model = fx.deeponet(branch_type="mlp", trunk_type="mlp")

# Foundation wrappers (namespace style)
model = fx.poseidon.T()   # T/B/L
model = fx.morph.S()      # Ti/S/M/L
model = fx.mpp.B(n_states=12)  # Ti/S/B/L
model = fx.walrus.base()
model = fx.bcat.base()
model = fx.pdeformer2.small()  # small/base/fast
model = fx.dpot.Ti()      # Ti/S/M/L/H
model, variables = fx.prose.fd_1to1()

Integration With jNO

import foundax as fx
import jno

net = jno.nn.wrap(fx.mlp(in_features=2, output_dim=1))
net.optimizer(optax.adam, lr=1e-3)

Notes

  • Top-level convenience aliases are still available (for example fx.poseidonT()), but namespace-style access is recommended for readability.
  • Foundation-model wrappers are documented in detail in docs/equinox-architectures.md.

License

This project is licensed under the MIT License.

Foundation models remain subject to their original licenses. See THIRD_PARTY_LICENSES for details. Some pretrained weights (for example Poseidon) are released under non-commercial terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foundax-0.1.6.tar.gz (139.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foundax-0.1.6-py3-none-any.whl (152.2 kB view details)

Uploaded Python 3

File details

Details for the file foundax-0.1.6.tar.gz.

File metadata

  • Download URL: foundax-0.1.6.tar.gz
  • Upload date:
  • Size: 139.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for foundax-0.1.6.tar.gz
Algorithm Hash digest
SHA256 28fbb1b2e506c4f047c47be83f21ad7be51651c2ea2e61bc4acf7b24914c5fca
MD5 9513f94caef062a1d57ef006b67e03e2
BLAKE2b-256 c5b5c3ad728f0ca1d5202bb0c1f84aaf0f38682806a75146bf7195d4a0b38809

See more details on using hashes here.

File details

Details for the file foundax-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: foundax-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 152.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for foundax-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8bdf6be8a1cb1b2fccfc4299fb81530b9d13bf59e34f4b5d4fb59967cbbbde97
MD5 240c87eeb3eddab0da3211d4e0e34194
BLAKE2b-256 ee2aee291de42bc42ec533a500bec63d8c3d51bee193cc47e06b651996cc9047

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page