/atomistic-skills:mat-lammps-mdfrom Atomistic Skills
Builds and runs GPU-accelerated LAMMPS molecular dynamics with isolated MLIP binaries (MACE, MatGL/CHGNet, FairChem) to avoid Python/Torch conflicts.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run GPU-accelerated LAMMPS molecular dynamics with MLIP backends using three isolated binaries (MACE, MatGL/CHGNet, FairChem) so Python embedding through ML-IAP/mliappy remains stable and reproducible.
Select the MLIP backend and model family first using the foundation-potential guide:
mlip for MACE and MatGL, fairchem for FairChem) and which LAMMPS binary you must use.Check system prerequisites.
nvidia-smi
nvcc --version
g++ --version
cmake --version
mpicxx --version
nvidia-smi --query-gpu=name,compute_cap --format=csv,noheader
8.0 -> Kokkos_ARCH_AMPERE808.6 -> Kokkos_ARCH_AMPERE868.9 -> Kokkos_ARCH_ADA899.0 -> Kokkos_ARCH_HOPPER9010.0 -> Kokkos_ARCH_BLACKWELL10012.0, 12.1 (e.g. GB10 / DGX Spark) -> Kokkos_ARCH_BLACKWELL120 (Kokkos 4.6 has no 12.1 target; it runs, with a performance warning)Build the environment-matched LAMMPS binary (choose one of the three paths below). Builds go to $LAMMPS_ROOT (default ~/.cache/atomisticskills/lammps) and need the environment to run natively on the host.
Path A: MACE (ACEsuit's LAMMPS fork with ML-MACE, linked against the mlip environment's libtorch)
bash ${CLAUDE_SKILL_DIR}/scripts/build_lammps_mace.sh
~/.cache/atomisticskills/lammps/mace/lmpmlip+lammpsCUDA_HOME) at least as new as the environment's torch build (12.6 for cu126, 13.0 for cu130); PyTorch's CMake config refuses an older one.Path B: MatGL/CHGNet (Kokkos with CUDA, ML-IAP with the Python coupling, embedding the mlip environment's Python)
KOKKOS_ARCH_FLAG=Kokkos_ARCH_AMPERE80 \
bash ${CLAUDE_SKILL_DIR}/scripts/build_lammps_matgl.sh
~/.cache/atomisticskills/lammps/matgl/lmpmlip+lammpsLAMMPS_REF defaults to stable_22Jul2025_update4, whose Kokkos knows current GPU architectures.Path C: FairChem (no build: the lammps extra installs the LAMMPS wheel and fairchem-lammps)
${CLAUDE_SKILL_DIR}/../../venv/run fairchem+lammps lmp_fc --help
lmp and lmp_fc in the fairchem+lammps environment# (example; switch environment/binary pair as needed)
${CLAUDE_SKILL_DIR}/../../venv/run mlip+lammps ~/.cache/atomisticskills/lammps/mace/lmp -h
See scripts/three-backends-build-check/README.md for a minimal build/verification matrix across MACE, MatGL, and FairChem. See the respective README.md files under examples/mace/, examples/matgl/, and examples/fairchem/ for model-specific run scripts.
venv/run mlip+lammps or venv/run fairchem+lammps).fairchem environment, or lmp_fc in mlip.KOKKOS_ARCH_* from actual compute_cap output.ML-IAP/mliappy usage.Author: Jurģis Ruža Contact: GitHub @JurgisR
examples/fairchem/README.md (opens in a new tab)examples/fairchem/in.relax_adsorption_fairchem (opens in a new tab)examples/fairchem/run_fairchem_co_cu111_adsorption.sh (opens in a new tab)examples/mace/README.md (opens in a new tab)examples/mace/generate_na2si3o7_structure.py (opens in a new tab)examples/mace/in.na2si3o7_quench_mace (opens in a new tab)examples/mace/run_mace_na2si3o7_quench.sh (opens in a new tab)examples/matgl/README.md (opens in a new tab)examples/matgl/in.cu_phase_transition_matgl (opens in a new tab)examples/matgl/run_matgl_cu_phase_transition.sh (opens in a new tab)scripts/build_lammps_mace.sh (opens in a new tab)scripts/build_lammps_matgl.sh (opens in a new tab)scripts/three-backends-build-check/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job