MATEY is a scalable open-source framework for developing transformer-based spatiotemporal foundation models for physical systems. It supports both structured and unstructured scientific datasets, providing multiscale representations, and enables efficient training on HPC systems.
- Option 1 - Frontier: a preconfigured Conda environment is available.
-
ROCM 6.3.1
-
Activate the environment:
source /lustre/orion/world-shared/stf218/junqi/forge/matey-env-rocm631.sh -
Example usage:
./examples/submit_JHTDB_demo.sh
-
- Optional 2 - Create your own virtual env
python3.9 -m venv ~/virtual/matey source ~/virtual/matey/bin/activate pip install -r requirements.txt
- Option 3 - Poetry setup (uses
pyproject.toml+poetry.lock)# Install Poetry (one-time) curl -sSL https://install.python-poetry.org | python3 - # From the MATEY repo root poetry env use python3.12 poetry install
- Use the example Slurm job scripts inside
./examples, e.g.,sbatch submit_batch.sh
-
Add your data loading script under:
./matey/data_utils/<your_dataset_scripts>See references:
hdf5_3Ddatasets.pythewell_datasets.pynetcdf_datasets.py
-
Register your dataset name in:
./matey/data_utils/dataset.py->DSET_NAME_TO_OBJECT. -
Point your config file to the correct data directory
-
Define your model architectures and data configurations in <your_config_yaml_file>.
See examples in
./examples/config/Demo_*.ymal.
-
Update <your_slurm_job_script> to include:
export yaml_config=directory of <your_config_yaml_file>
-
Submit your job:
sbatch <your_slurm_job_script>
- Csala, Hunor, Sebastian De Pascuale, Paul Laiu, Jeremy Lore, Jae-Sun Park, and Pei Zhang. "Autoregressive long-horizon prediction of plasma edge dynamics." Nuclear Fusion 66, no. 6 (2026): 066013. 10.1088/1741-4326/ae666c
- Yin, Junqi, Mijanur Palash, M. Paul Laiu, Muralikrishnan Gopalakrishnan Meena, John Gounley, Stephen M. de Bruyn Kops, Feiyi Wang, Ramanan Sankaran, and Pei Zhang. "Pixel-resolved long-context learning for turbulence at exascale: resolving small-scale eddies toward the viscous limit." In 2026 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 347-362. IEEE, 2026.10.1109/IPDPS65963.2026.00039
- Zhang, Pei, M. Paul Laiu, Matthew Norman, Doug Stefanski, and John Gounley. "MATEY: multiscale adaptive transformer models for spatiotemporal physical systems." Machine Learning: Science and Technology 7, no. 3 (2026): 035016.10.1088/2632-2153/ae67d1
- Pei Zhang, Paul Laiu, Matthew Norman, Doug Stefanski, and John Gounley. MATEY: multiscale adaptive foundation models for spatiotemporal physical systems, NeurIPS 2024 Workshop on Machine Learning and the Physical Sciences.
This codebase was originally seeded (Jan 2024) from PolymathicAI/multiple _physics_pretraining (with the commit: 67ffa35). It has since been substantially rewritten and evolved independently, with ongoing development led by the following contributors.
- Hunor Csala, ORNL
- Junqi Yin, ORNL
- John Gounley, ORNL
- Paul Laiu, ORNL
- Pei Zhang, ORNL
- Jay Yoo (UIUC, 2026 Summer Intern)
- Murali Gopalakrishnan Meena, ORNL
- Andrey Prokopenko, ORNL
- Mijanur R Palash, ORNL
- Xiao Jing (Georgia Tech; 2025 Summer Intern)
- Sheikh Md Shakeel Hassan Nln (University of California, Irvine; 2024 Summer Intern)
- Joseph Quinn (Vanderbilt University; 2024 Summer Intern)
