xnn.gnn.models.matgl_format#

The model directories of MatGL (BSD-3-Clause), read by the model hub’s "matgl" format.

A MatGL model is a directory of model.json (the architecture) and state.pt (the weights). The architecture’s class picks the converter: TensorNet potentials (xnn.gnn.models.tensornet_foundation), QET potentials (xnn.gnn.models.qet_foundation) and MEGNet property models (xnn.gnn.models.megnet_foundation).

Module Attributes

CONVERTERS

MatGL architecture -> the module whose convert_directory converts it.

Functions

convert_directory(path[, dtype])

Convert a MatGL directory with the converter of its architecture.

is_matgl_dir(path)

Whether path is a MatGL directory of an architecture xnn converts.

matgl_class(path)

The architecture of a MatGL directory ("TensorNet", "MEGNet", ...), or None.