Skip to content
/ CAMO Public

Operator Learning for Partial Differential Equations with Attention Mechanism

License

Notifications You must be signed in to change notification settings

jczhang02/CAMO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Operator Learning for Partial Differential Equations with Attention Mechanism

PyTorch Lightning Config: Hydra Template

Description

Code for Operator Learning for Partial Differential Equations with Attention Mechanism.

Installation

Pip

# 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

Dataset

Download dataset via Google Drive.

Dataset Name Download file name Size
Burgers 1D Burgers_R10.zip 614.8 MB

How to run

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

About

Operator Learning for Partial Differential Equations with Attention Mechanism

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published