One-stop JAX foundation model repository
Project description
foundax
One-stop JAX foundation model hub for this workspace.
The source repositories are vendored locally under repos/, so foundax can run against internal copies instead of the separate sibling repositories.
This repository provides one convert script and one compare script that dispatch to vendored model repositories under repos/:
jax_morphjax_mppjax_pdeformer2jax_poseidonjax_prosejax_walrusjax_dpotjax_bcat
Python API
You can import foundax as a package and instantiate models via:
import foundax
# MORPH-Ti
model = foundax.morph.Ti()
# MPP-Base
model = foundax.mpp.B(n_states=12)
# Poseidon-L
model = foundax.poseidon.L(num_in_channels=1, num_out_channels=1)
Version/size namespaces (mirroring jno/architectures/models.py):
foundax.poseidon:T,B,Lfoundax.walrus:base(aliases:default,v1)foundax.morph:Ti,S,M,Lfoundax.mpp:Ti,S,B,Lfoundax.bcat:base(aliases:default,v1)foundax.pdeformer2:small,base,fastfoundax.dpot:Ti,S,M,L,Hfoundax.prose:fd_1to1,fd_2to1,ode_2to1,pde_2to1
Lowercase aliases are also available for size variants where useful (for example foundax.morph.ti(), foundax.poseidon.b(), foundax.dpot.h()).
Quick Start
From foundax/:
python scripts/convert.py morph -- --input /path/to/model.pth --output /path/to/model.msgpack --model-size Ti
python scripts/compare.py morph -- --model-size Ti --checkpoint /path/to/model.pth
Vendored repositories live at:
foundax/repos/jax_morph
foundax/repos/jax_mpp
foundax/repos/jax_pdeformer2
foundax/repos/jax_poseidon
foundax/repos/jax_prose
foundax/repos/jax_walrus
foundax/repos/jax_bcat
foundax/repos/jax_dpot
General pattern:
python scripts/convert.py <model> [model-options...]
python scripts/compare.py <model> [model-options...]
If model options contain flags that overlap with foundax flags, put -- before model options.
Examples:
# DPOT
python scripts/convert.py dpot -- --input ../jax_dpot/ogrepo/model_Ti.pth --output ./artifacts/dpot_ti.msgpack
python scripts/compare.py dpot -- --checkpoint ../jax_dpot/ogrepo/model_Ti.pth
# PROSE ODE
python scripts/convert.py prose --prose-variant ode -- --input /path/prose_ode.pth --output /path/prose_ode.msgpack
python scripts/compare.py prose --prose-variant ode -- --checkpoint /path/prose_ode.pth --msgpack /path/prose_ode.msgpack
# BCAT (conversion supported directly in foundax)
python scripts/convert.py bcat -- --checkpoint /path/bcat.pt --output /path/bcat.msgpack
Notes
compareforbcatis not available yet because there is no existing comparison script injax_bcat.- This repo intentionally reuses each vendored model repo's conversion/validation logic instead of duplicating that code.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foundax-0.1.0.tar.gz.
File metadata
- Download URL: foundax-0.1.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6baa2c057881d43d68bfd9488ace647d5ac6718e41b13d307ee83b59e08e4f9e
|
|
| MD5 |
60adfbd7f9ccb720b97b29a4d9f9ab9f
|
|
| BLAKE2b-256 |
f484e27013e724526f2cf1bbfbd261f6c5884318665d69edda62376b6a31f2e3
|
Provenance
The following attestation bundles were made for foundax-0.1.0.tar.gz:
Publisher:
publish.yml on FhG-IISB/foundax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foundax-0.1.0.tar.gz -
Subject digest:
6baa2c057881d43d68bfd9488ace647d5ac6718e41b13d307ee83b59e08e4f9e - Sigstore transparency entry: 1316885396
- Sigstore integration time:
-
Permalink:
FhG-IISB/foundax@6289522b2b9638ff30af63498cc3c260cc80e980 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FhG-IISB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6289522b2b9638ff30af63498cc3c260cc80e980 -
Trigger Event:
release
-
Statement type:
File details
Details for the file foundax-0.1.0-py3-none-any.whl.
File metadata
- Download URL: foundax-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc7c01dccf44480f46def27e5e37af7225f6890613bf37946f93711cf37d98a
|
|
| MD5 |
e67f0e667dafe4f78efa0ade575ab18e
|
|
| BLAKE2b-256 |
109918cd05467196c99d4911fb3021e9d0fb174034cd74945023b26f5d74f454
|
Provenance
The following attestation bundles were made for foundax-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on FhG-IISB/foundax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foundax-0.1.0-py3-none-any.whl -
Subject digest:
0fc7c01dccf44480f46def27e5e37af7225f6890613bf37946f93711cf37d98a - Sigstore transparency entry: 1316885405
- Sigstore integration time:
-
Permalink:
FhG-IISB/foundax@6289522b2b9638ff30af63498cc3c260cc80e980 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FhG-IISB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6289522b2b9638ff30af63498cc3c260cc80e980 -
Trigger Event:
release
-
Statement type: