Skip to content

v4.1.1

Choose a tag to compare

@shyuep shyuep released this 21 Oct 04:30
· 40 commits to main since this release
b5e533f
  • Breaking: Beta GRACE removed. matgl.models.GRACE and its layers have been deleted, along with the tests. Use tensorpotential. (#847)
  • Fix: float64 inference via potential.double(). M3GNet and CHGNet previously crashed with a
    float/double mismatch because several forward paths hard-cast to matgl.float_th or allocated tensors
    without a dtype. Potential.forward now casts its float inputs (lat, frac_coords, pbc_offset,
    state_attr) to the model dtype, and the embedding, three-body and CHGNet line-graph paths follow their
    module/input dtype. A global matgl.set_default_dtype("float", 64) is no longer required. In float64,
    batched and single-structure predictions agree to ~1e-14 (vs. ~1e-5 GPa stress drift in float32), so
    batch-equivalence tests can use tight tolerances. (#846)