CoolFace
Modelpublic

hrishivish23/giorom-3d-t-plasticine-3d

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes3downloads
Model Card

๐Ÿ“Œ PhysicsEngine: Reduced-Order Neural Operators for Lagrangian Dynamics

By [Hrishikesh Viswanath](https://huggingface.co/hrishivish23), Yue Chang, Julius Berner, Peter Yichen Chen, Aniket Bera

Physics Simulation


๐Ÿ“ Model Overview

GIOROM is a Reduced-Order Neural Operator Transformer designed for Lagrangian dynamics simulations on highly sparse graphs. The model enables hybrid Eulerian-Lagrangian learning by:

  • โ€”Projecting Lagrangian inputs onto uniform grids with a Graph-Interaction-Operator.
  • โ€”Predicting acceleration from sparse velocity inputs using past time windows with a Neural Operator Transformer.
  • โ€”Learning physics from sparse inputs (n โ‰ช N) while allowing reconstruction at arbitrarily dense resolutions via an Integral Transform Model.
  • โ€”Dataset Compatibility: This model is compatible with `MPM-Verse-MaterialSim-Small/Plasticine3DNCLAWSmall`,

โš  Note: While the model can infer using an integral transform, this repository only provides weights for the time-stepper model that predicts acceleration.


๐Ÿ“Š Available Model Variants

Each variant corresponds to a specific dataset, showcasing the reduction in particle count (n: reduced-order, N: full-order).

Model Namen (Reduced)N (Full)
giorom-3d-t-sand3d-long3.0K32K
giorom-3d-t-water3d1.7K55K
giorom-3d-t-elasticity-3d2.6K78K
giorom-3d-t-plasticine-3d1.1K5K
giorom-2d-t-water0.12K1K
giorom-2d-t-sand0.3K2K
giorom-2d-t-jelly0.2K1.9K
giorom-2d-t-multimaterial0.25K2K

๐Ÿ’ก How It Works

๐Ÿ”น Input Representation

The model predicts acceleration from past velocity inputs:

  • โ€”Input Shape: [n, D, W]
  • โ€”n: Number of particles (reduced-order, n โ‰ช N)
  • โ€”D: Dimension (2D or 3D)
  • โ€”W: Time window (past velocity states)
  • โ€”Projected to a uniform latent space of size [c^D, D] where:
  • โ€”c โˆˆ {8, 16, 32}
  • โ€”n - ฮดn โ‰ค c^D โ‰ค n + ฮดn

This allows the model to generalize physics across different resolutions and discretizations.

๐Ÿ”น Prediction & Reconstruction

  • โ€”The model learns physical dynamics on the sparse input representation.
  • โ€”The integral transform model reconstructs dense outputs at arbitrary resolutions (not included in this repo).
  • โ€”Enables highly efficient, scalable simulations without requiring full-resolution training.

๐Ÿš€ Usage Guide

1๏ธโƒฃ Install Dependencies

bash
pip install transformers huggingface_hub torch
git clone https://github.com/HrishikeshVish/GIOROM/
cd GIOROM

2๏ธโƒฃ Load a Model

python
from models.giorom3d_T import PhysicsEngine
from models.config import TimeStepperConfig

time_stepper_config = TimeStepperConfig()

simulator = PhysicsEngine(time_stepper_config)
repo_id = "hrishivish23/giorom-3d-t-sand3d"
time_stepper_config = time_stepper_config.from_pretrained(repo_id)
simulator = simulator.from_pretrained(repo_id, config=time_stepper_config)

3๏ธโƒฃ Run Inference

python
import torch

๐Ÿ“‚ Model Weights and Checkpoints

Model NameModel ID
giorom-3d-t-sand3d-long`hrishivish23/giorom-3d-t-sand3d-long`
giorom-3d-t-water3d`hrishivish23/giorom-3d-t-water3d`

๐Ÿ“š Training Details

๐Ÿ”ง Hyperparameters

  • โ€”Graph Interaction Operator layers: 4
  • โ€”Transformer Heads: 4
  • โ€”Embedding Dimension: 128
  • โ€”Latent Grid Sizes: {8ร—8, 16ร—16, 32ร—32}
  • โ€”Learning Rate: 1e-4
  • โ€”Optimizer: Adamax
  • โ€”Loss Function: MSE + Physics Regularization (Loss computed on Euler integrated outputs)
  • โ€”Training Steps: 1M+ steps

๐Ÿ–ฅ๏ธ Hardware

  • โ€”Trained on: NVIDIA RTX 3050
  • โ€”Batch Size: 2

๐Ÿ“œ Citation

If you use this model, please cite:

bibtex
@article{viswanath2024reduced,
  title={Reduced-Order Neural Operators: Learning Lagrangian Dynamics on Highly Sparse Graphs},
  author={Viswanath, Hrishikesh and Chang, Yue and Berner, Julius and Chen, Peter Yichen and Bera, Aniket},
  journal={arXiv preprint arXiv:2407.03925},
  year={2024}
}

๐Ÿ’ฌ Contact

For questions or collaborations:

  • โ€”๐Ÿง‘โ€๐Ÿ’ป Author: Hrishikesh Viswanath
  • โ€”๐Ÿ“ง Email: hviswan@purdue.edu
  • โ€”๐Ÿ’ฌ Hugging Face Discussion: Model Page

๐Ÿ”— Related Work

  • โ€”Neural Operators for PDEs: Fourier Neural Operators, Graph Neural Operators
  • โ€”Lagrangian Methods: Material Point Methods, SPH, NCLAW, CROM, LiCROM
  • โ€”Physics-Based ML: PINNs, GNS, MeshGraphNet

๐Ÿ”น Summary

This model is ideal for fast and scalable physics simulations where full-resolution computation is infeasible. The reduced-order approach allows efficient learning on sparse inputs, with the ability to reconstruct dense outputs using an integral transform model (not included in this repo).