Views
No views yet
pip install pdetransformer1from pdetransformer.core.mixed_channels import PDETransformer
2import torch
3
4# Load pre-trained model
5subfolder = 'mc-s'
6model = PDETransformer.from_pretrained('thuerey-group/pde-transformer', subfolder=subfolder).cuda()
7
8# For physics simulation
9x = torch.randn((1,2,256,256), dtype=torch.float32).cuda()
10predictions = model(x)| Model | Channels | Size | Hidden Dim | Heads | Parameters | Training Epochs | Model Size |
|---|---|---|---|---|---|---|---|
| SC-S | Separate | Small | 96 | 4 | ~46M | 100 | ~133MB |
| SC-B | Separate | Base | 192 | 8 | ~178M | 100 | ~522MB |
| SC-L | Separate | Large | 384 | 16 | ~701M | 100 | ~2.07GB |
| MC-S | Mixed | Small | 96 | 4 | ~33M | 100 | ~187MB |
| MC-B | Mixed | Base | 192 | 8 | ~130M | 100 | ~716MB |
| MC-L | Mixed | Large | 384 | 16 | ~518M | 100 | ~2.81GB |
1@article{holzschuh2025pde,
2 title={PDE-Transformer: Efficient and Versatile Transformers for Physics Simulations},
3 author={Holzschuh, Benjamin and Liu, Qiang and Kohl, Georg and Thuerey, Nils},
4 booktitle = {Forty-second International Conference on Machine Learning, {ICML} 2025, Vancouver, Canada, July 13-19, 2025},
5 year = {2025}
6}