TorchSim/torch-sim

Torch-native, batchable, atomistic simulations.

What it solves

TorchSim addresses the performance limitations of traditional atomistic simulation tools when using modern machine learning potentials (MLIPs). By rewriting core simulation primitives in PyTorch, it enables significantly faster simulations through automatic batching and efficient GPU memory management.

How it works

TorchSim leverages PyTorch to run multiple atomic systems simultaneously on a GPU. It provides a high-level API that integrates with common tools like ASE, Pymatgen, and Phonopy. Users can perform molecular dynamics (such as NVE or NVT Langevin) and structure relaxation (using FIRE or gradient descent) while benefiting from automatic batching that maximizes hardware utilization.

Who it’s for

It is designed for researchers and scientists working with atomistic simulations who need to run large-scale or high-throughput experiments using machine learning potentials. It is particularly useful for those who want to accelerate their existing workflows without abandoning familiar ecosystems like ASE.

Highlights

  • Achieves up to 100x speedup compared to standard ASE implementations.
  • Native support for popular MLIP models including MACE, Fairchem, SevenNet, ORB, MatterSim, and Nequix.
  • Built-in support for classical potentials like Lennard-Jones and Morse.
  • Includes an extensible binary trajectory writing format for custom data collection.
  • Supports advanced techniques like differentiable simulation and swap Monte Carlo.

Related

  • Project
  • Project
  • Project
  • Project
  • Project