PDENNEval
Model Overview
PDENNEval is a comprehensive benchmark developed by researchers at Sun Yat-sen University for evaluating neural-network methods for solving partial differential equations. It enables systematic comparison of function-learning and operator-learning approaches across a broad range of PDE tasks.
Paper: PDENNEval: A Comprehensive Evaluation of Neural Network Methods for Solving PDEs
Model Description
PDENNEval provides a unified framework for evaluating neural-network PDE solvers. It contains 16 datasets generated with high-accuracy conventional scientific computing methods, covering 19 PDE problem classes from fluid dynamics, materials science, finance, electromagnetics, and other domains. The benchmark evaluates the solution accuracy, computational efficiency, and robustness of 12 neural-network methods.
Use Cases
| Use Case | Description |
|---|---|
| PDE neural-operator validation | Complete a minimal FNO training and inference workflow using PDEBench-style HDF5 data |
| Neural PDE method development | Extend the model collection in model/, which already includes FNO, DeepONet, PINO-FNO, UNO, MPNN, and UNet definitions |
| ModelScope/OneCode execution | Download the standalone model package, install its dependencies, and run the provided scripts |
| Rapid pipeline checks | Use fake_data.py and smoke_models.py to verify the data, models, and scripts |
Usage
1. OneCode
Use the online OneCode environment for an intelligent, one-click AI for Science (AI4S) programming experience:
Launch OneCode for one-click AI4S programming
2. Manual Setup
Hardware Requirements
- A GPU or DCU is recommended.
- A CPU can be used for import checks and small-scale pipeline validation, but full training and inference will be slow.
- DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version for the target cluster, is recommended.
Download the Model Package
hf download OneScience-Group/PDENNEval --local-dir ./PDENNEval
cd PDENNEval
Set Up the Runtime Environment
DCU Environment
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU Environment
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
Training Data
The OneScience community provides the pdenneval dataset for training. Download it with the command below and verify that the data path in conf/config.yaml is configured correctly:
hf download --repo-type dataset OneScience-Group/pdenneval --local-dir ./data
Training
python scripts/train.py
Model Weights
This repository will provide weights trained on the pdenneval dataset in the weights/ directory. The weights will be uploaded soon.
Inference
python scripts/inference.py
By default, inference loads weight/best_model.pt and writes .npz results to result/output/.
Evaluation and Visualization
python scripts/result.py
Official OneScience Resources
| Platform | OneScience Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
Citations and License
- Original PDENNEval paper: PDENNEval: A Comprehensive Evaluation of Neural Network Methods for Solving PDEs.
- This repository retains the relevant source and attribution notices. Follow all applicable license requirements when using, modifying, or distributing its contents.
中文说明
模型概览
PDENNEval 是中山大学研究人员开发的综合基准,用于评估以神经网络求解偏微分方程的方法。它支持在广泛的 PDE 任务上系统比较函数学习和算子学习方法。
论文:PDENNEval:求解 PDE 的神经网络方法综合评估
模型描述
PDENNEval 为评估神经网络 PDE 求解器提供统一框架。它包含以高精度传统科学计算方法生成的 16 个数据集,覆盖流体动力学、材料科学、金融、电磁学及其他领域的 19 类 PDE 问题。基准评估 12 种神经网络方法的求解精度、计算效率和稳健性。
使用场景
| 使用场景 | 说明 |
|---|---|
| PDE 神经算子(neural operator)验证 | 使用 PDEBench 风格的 HDF5 数据完成最小 FNO 训练和推理(inference)流程 |
| 神经 PDE 方法开发 | 扩展 model/ 中的模型集合,其中已有 FNO、DeepONet、PINO-FNO、UNO、MPNN 和 UNet 定义 |
| ModelScope/OneCode 运行 | 下载独立模型包,安装依赖并运行所提供的脚本 |
| 快速流程检查 | 使用 fake_data.py 和 smoke_models.py 验证数据、模型及脚本 |
使用指南
1. OneCode
通过 OneCode 在线环境体验面向科学的人工智能(AI4S)智能一键编程。
2. 手动配置
硬件要求
- 建议使用 GPU 或 DCU。
- CPU 可用于导入检查和小规模流程验证,完整训练和推理速度较慢。
- DCU 用户须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或使用 OneScience 推荐的适配目标集群的版本。
下载模型包
hf download OneScience-Group/PDENNEval --local-dir ./PDENNEval
cd PDENNEval
配置运行环境
DCU 环境
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU 环境
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
训练数据
OneScience 社区提供用于训练的 pdenneval 数据集。使用以下命令下载,并确认 conf/config.yaml 中的数据路径配置正确。
hf download --repo-type dataset OneScience-Group/pdenneval --local-dir ./data
训练
python scripts/train.py
模型权重
本仓库将在 weights/ 目录中提供基于 pdenneval 数据集训练得到的权重。权重即将上传。
推理
python scripts/inference.py
推理默认加载 weight/best_model.pt,并将 .npz 结果写入 result/output/。
评估与可视化
python scripts/result.py
OneScience 官方资源
| 平台 | OneScience 仓库 | Skills 仓库 |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
引用与许可证
- PDENNEval 原始论文:PDENNEval:求解 PDE 的神经网络方法综合评估。
- 本仓库保留相关来源和署名声明。使用、修改或分发其中内容时,应遵守所有适用的许可要求。
- Downloads last month
- 16