Skip to content

v4.2.0

Latest

Choose a tag to compare

@shyuep shyuep released this 30 Nov 10:38
d2cce1b
  • Breaking: Python 3.12+ required. The minimum supported Python is now 3.12 (was 3.11).
  • Potential checks the periodic cell volume for stress on the device (torch._assert_async) instead of
    branching on a GPU tensor in Python, which forced a host-device synchronization in every stress call and made
    stress training and MD impossible to capture in a CUDA graph. On CPU the check still raises ValueError. (#886)
  • Support joint molecule/material PES datasets in the JSON and Extended XYZ loaders, including partial PBC and
    missing targets. System2Graph dispatches mixed pymatgen inputs with shared element ordering. (#884)
  • Converters preserve per-system PBC, net charge and spin multiplicity. QET receives net charge independently of
    partial-charge supervision. Spin metadata does not add spin conditioning to existing models. (#884)
  • Molecular bulk stress is zero and excluded from training metrics/loss. MGLPotentialTrainer defaults to
    automatic stress weighting (0.1 with periodic stress labels, otherwise 0) and masks missing targets by default.
    Explicit positive stress weights require periodic stress labels. Legacy graphs without PBC metadata retain
    the previous periodic convention; rebuild old processed datasets for the new metadata. (#884)
  • PES collation expands six-component Voigt stresses to 3x3 matrices, yielding (3 * batch_size, 3) labels
    consistently with the potential's stress output. (#884)
  • Optional TorchSim integration (matgl.ext.torch_sim). MatGLModel adapts PyG-backed MatGL Potential
    objects to TorchSim's batched ModelInterface using TorchSim-native neighbor lists, without an ASE/pymatgen
    conversion in the simulation loop. It supports batched energy and force evaluation, periodic stress in
    eV/Angstrom^3, QET partial charges and magnetic moments, total-charge/state extras, device/dtype validation,
    isolated atoms, and both periodic and nonperiodic systems. Install it with pip install 'matgl[torch-sim]'.
    (#885)
  • Attach QET's optional magnetic-moment readout to the graph so Potential(calc_magmom=True) can return it. (#885)
  • Docker images. Each release now builds, smoke-tests and pushes materialyzeai/matgl:<version>/latest
    (amd64 + arm64) and :<version>-kokkos-cpu/latest-kokkos-cpu from the release checkout, so images match the
    release exactly; the Kokkos images also bundle LAMMPS with the pair_matgl plugin. The CUDA Kokkos image is
    built manually; the DGL image is dropped.
  • CI: PRs are screened with a contributor-report check that comments and applies a needs-review label for new
    or low-history accounts; bot PRs and Materials Project/Materialyze.AI members are skipped.