xnn.hybnn.models.byteff_foundation.from_foundation#
- xnn.hybnn.models.byteff_foundation.from_foundation(name='byteff-26', *, structure=None, cache_dir=None, dtype=None, charge=0, local_files_only=False, **options)[source]#
Load a released ByteFF or ByteFF-Pol model through the model hub.
The networks are downloaded on first use into the hub cache. They are distributed under CC BY-NC 4.0: by loading them you accept its terms (no commercial use).
- Parameters:
name (str) –
"byteff-26"(the five-network ensemble),"byteff-26-member-<i>"(one of its networks) or"byteff-pol-25".structure (optional) – A system to bind.
cache_dir (str or Path, optional) – Model hub cache directory.
dtype (torch.dtype, optional) – Floating-point dtype of the model.
charge (int, optional) – Total charge for bond perception when binding an
ase.Atoms.local_files_only (bool, optional) – Do not download; fail when a network is not cached.
**options – Options of the model class, for example
cutofffor periodic cells.
- Returns:
The model in evaluation mode.
- Return type: