xnn.gnn.models.tensornet_foundation.from_foundation#
- xnn.gnn.models.tensornet_foundation.from_foundation(name='tensornet-matpes-pbe-2025.2', dtype=None, cache_dir=None)[source]#
Download (once) and convert a registered MatGL TensorNet potential.
- Parameters:
name (str, optional) – A key of
FOUNDATION_MODELS, by default the MatPES PBE model.dtype (torch.dtype or str, optional) – Final dtype;
Nonekeeps the checkpoint’s float32.cache_dir (str or pathlib.Path, optional) – Model cache directory (the hub’s default when
None).
- Returns:
The converted potential, in evaluation mode.
- Return type: