vRBA
Model and experiment
This package reproduces the bubble dynamics operator learning experiment from the paper. The bubble-dynamics operator model uses 200 sensors, width 100, four hidden layers, and a 100-dimensional latent representation with variational residual-based attention.
The package includes model code, config/config.yaml, training, inference and visualization scripts, the recorded results/, and the selected weight/best_model.pth checkpoint.
Data
Download OneScience/vRBA-Bubble with modelscope download --dataset OneScience/vRBA-Bubble --local_dir ./data. res_1000.npz contains del_p and R [1500,1000] float64, and t [1000]. The model uses the first 1,000 trajectories, split 800/100/100.
Original dataset: https://github.com/jdtoscano94/NABLA-SciML/tree/main/vRBA_variational_residual_based_attention_PINNs_Operator_learning Download the dataset before running inference where an external dataset is required. The release configuration uses relative paths, not SCNet personal-directory paths.
Installation and usage
hf download OneScience-Group/vRBA --local-dir ./vRBA
cd vRBA
pip install -r requirements.txt
python scripts/inference.py
python scripts/result.py
For a fresh training run, use an allocated GPU/DCU compute node with a compatible PyTorch build, keep a separate copy of the supplied checkpoint, then run python scripts/train.py from the package root. The full budget is specified in config/config.yaml. Cluster-specific Slurm scripts, if present, need adaptation outside the original cluster.
Training and reported result
The run completed 10,000 epochs and 160,000 optimizer updates without early stopping. The best checkpoint was selected at epoch 9,971. Of the 1,500 public trajectories, the first 1,000 were split 800/100/100; the author did not publish exact paper sample indices.
On 100 test trajectories, mean physical-radius relative L2 was 0.000834989 and normalized-scale relative L2 was 0.0477183. Journal Table 3 reports 0.00516 for exponential vRBA, but the split and aggregation protocol are not fully aligned; no exact accuracy-equivalence claim is made. See results/ for the recorded metrics and visualizations. The supplied checkpoint comes from a completed run; another run may differ.
Source and license
- Paper: https://doi.org/10.1038/s44387-026-00084-4.
- Dataset source: https://github.com/jdtoscano94/NABLA-SciML/tree/main/vRBA_variational_residual_based_attention_PINNs_Operator_learning.
- This model package uses the license indicated in the card metadata. Dataset redistribution terms, where not separately stated, must not be inferred from the code license.
中文说明
vRBA
模型与实验
本软件包复现了论文中的气泡动力学算子学习实验。气泡动力学算子模型使用 200 个传感器、宽度 100、四个隐藏层和结合基于变分残差的注意力机制的 100 维潜在表示。
本软件包包含模型代码、config/config.yaml、训练、推理(inference)和可视化脚本、已保存的 results/,以及选定的 weight/best_model.pth 模型权重(检查点)(checkpoint)。
数据
使用 modelscope download --dataset OneScience/vRBA-Bubble --local_dir ./data 下载 OneScience/vRBA-Bubble。res_1000.npz 包含形状为 [1500,1000] 的 float64 del_p 和 R,以及形状为 [1000] 的 t。模型使用前 1,000 条轨迹,按 800/100/100 划分。
原始数据集见 https://github.com/jdtoscano94/NABLA-SciML/tree/main/vRBA_variational_residual_based_attention_PINNs_Operator_learning 。如需外部数据集,请先下载再运行推理。发布配置使用相对路径,未使用 SCNet 的个人目录路径。
安装与使用
hf download OneScience-Group/vRBA --local-dir ./vRBA
cd vRBA
pip install -r requirements.txt
python scripts/inference.py
python scripts/result.py
如需重新训练,请在分配到的 GPU/DCU 计算节点上使用兼容的 PyTorch 构建版本,单独保存一份随附的模型权重(检查点),然后在软件包根目录运行 python scripts/train.py。完整的训练预算见 config/config.yaml。若附有针对特定集群的 Slurm 脚本,在原集群以外使用时需要调整。
训练与报告结果
本次运行完成了 10,000 个训练轮次和 160,000 次优化器更新,未提前停止。最佳模型权重(检查点)选自第 9,971 个训练轮次。公开的 1,500 条轨迹中,前 1,000 条按 800/100/100 划分。作者未公布论文中使用的具体样本索引。
在 100 条测试轨迹上,物理半径的平均相对 L2 为 0.000834989,归一化尺度上的相对 L2 为 0.0477183。期刊表 3 报告指数型 vRBA 的结果为 0.00516,但数据划分和汇总协议并未完全对齐,因此未声称精度完全等同。已记录的指标和可视化结果见 results/。随附的模型权重(检查点)来自一次已完成的运行,另一次运行的结果可能不同。
来源与许可证
- 论文见 https://doi.org/10.1038/s44387-026-00084-4.
- 数据集来源见 https://github.com/jdtoscano94/NABLA-SciML/tree/main/vRBA_variational_residual_based_attention_PINNs_Operator_learning.
- 本模型包使用模型卡元数据所示的许可证。若数据集再分发条款没有单独说明,不得根据代码许可证推断。