Code for Operator Learning for Partial Differential Equations with Attention Mechanism.
# clone project
git clone https://github.com/jczhang02/CAMO
cd CAMO
# [OPTIONAL] create conda environment
conda create -n $NAME python=3.11
conda activate $NAME
# install requirements
conda install pdm
pdm self update
pdm --no-cache install
Download dataset via Google Drive.
Dataset Name | Download file name | Size |
---|---|---|
Burgers 1D | Burgers_R10.zip | 614.8 MB |
Train model with default configuration
# train on CPU
python src/train.py trainer=cpu
# train on GPU
python src/train.py trainer=gpu
Train model with chosen experiment configuration from configs/experiment/
python src/train.py experiment=experiment_name.yaml
# E.g. Simple test on cpu
python src/train.py experiment=thinkpad_test
# E.g. Simple test on gpu
python src/train.py experiment=shanhe_burgers
You can override any parameter from command line like this
python src/train.py trainer.max_epochs=20 data.batch_size=64