mattertune.configs.backbones.m3gnet
- class mattertune.configs.backbones.m3gnet.FinetuneModuleBaseConfig(*, properties, optimizer, lr_scheduler=None, ignore_gpu_batch_transform_error=True, normalizers={})[source]
- Parameters:
properties (Sequence[PropertyConfig])
optimizer (OptimizerConfig)
lr_scheduler (LRSchedulerConfig | None)
ignore_gpu_batch_transform_error (bool)
normalizers (Mapping[str, Sequence[NormalizerConfig]])
- properties: Sequence[PropertyConfig]
Properties to predict.
- optimizer: OptimizerConfig
Optimizer.
- lr_scheduler: LRSchedulerConfig | None
Learning Rate Scheduler
- ignore_gpu_batch_transform_error: bool
Whether to ignore data processing errors during training.
- normalizers: Mapping[str, Sequence[NormalizerConfig]]
Normalizers for the properties.
Any property can be associated with multiple normalizers. This is useful for cases where we want to normalize the same property in different ways. For example, we may want to normalize the energy by subtracting the atomic reference energies, as well as by mean and standard deviation normalization.
The normalizers are applied in the order they are defined in the list.
- abstract classmethod ensure_dependencies()[source]
Ensure that all dependencies are installed.
This method should raise an exception if any dependencies are missing, with a message indicating which dependencies are missing and how to install them.
- class mattertune.configs.backbones.m3gnet.M3GNetBackboneConfig(*, properties, optimizer, lr_scheduler=None, ignore_gpu_batch_transform_error=True, normalizers={}, name='m3gnet', ckpt_path, graph_computer)[source]
- Parameters:
properties (Sequence[PropertyConfig])
optimizer (OptimizerConfig)
lr_scheduler (LRSchedulerConfig | None)
ignore_gpu_batch_transform_error (bool)
normalizers (Mapping[str, Sequence[NormalizerConfig]])
name (Literal['m3gnet'])
ckpt_path (str | Path)
graph_computer (M3GNetGraphComputerConfig)
- name: Literal['m3gnet']
The type of the backbone.
- ckpt_path: str | Path
The path to the pre-trained model checkpoint.
- graph_computer: M3GNetGraphComputerConfig
Configuration for the graph computer.
- properties: Sequence[PropertyConfig]
Properties to predict.
- optimizer: OptimizerConfig
Optimizer.
- lr_scheduler: LRSchedulerConfig | None
Learning Rate Scheduler
- ignore_gpu_batch_transform_error: bool
Whether to ignore data processing errors during training.
- normalizers: Mapping[str, Sequence[NormalizerConfig]]
Normalizers for the properties.
Any property can be associated with multiple normalizers. This is useful for cases where we want to normalize the same property in different ways. For example, we may want to normalize the energy by subtracting the atomic reference energies, as well as by mean and standard deviation normalization.
The normalizers are applied in the order they are defined in the list.
- class mattertune.configs.backbones.m3gnet.M3GNetGraphComputerConfig(*, element_types=<factory>, cutoff=None, threebody_cutoff=None, pre_compute_line_graph=False, graph_labels=None)[source]
Configuration for initialize a MatGL Atoms2Graph Convertor.
- Parameters:
element_types (tuple[str, ...])
cutoff (float | None)
threebody_cutoff (float | None)
pre_compute_line_graph (bool)
graph_labels (list[int | float] | None)
- element_types: tuple[str, ...]
The element types to consider, default is all elements.
- cutoff: float | None
The cutoff distance for the neighbor list. If None, the cutoff is loaded from the checkpoint.
- threebody_cutoff: float | None
The cutoff distance for the three-body interactions. If None, the cutoff is loaded from the checkpoint.
- pre_compute_line_graph: bool
Whether to pre-compute the line graph for three-body interactions in data preparation.
- graph_labels: list[int | float] | None
The graph labels to consider, default is None.
Modules