Download model/__init__.py from OneScience-Group/MatterSim: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/OneScience-Group/MatterSim/resolve/main/model/__init__.py
- Command line
-
hf download hf://OneScience-Group/MatterSim/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/OneScience-Group/MatterSim/resolve/main/model/__init__.py
757 Bytes
| """MatterSim model and integration entry points.""" | |
| MATTERSIM_SOURCE_VERSION = "1.2.3" | |
| MATTERSIM_INTEGRATION_VERSION = "dcu2" | |
| from .adapter import ( | |
| DEFAULT_CHECKPOINT, | |
| load_calculator, | |
| load_potential, | |
| predict_structures, | |
| resolve_checkpoint, | |
| ) | |
| __all__ = [ | |
| "DEFAULT_CHECKPOINT", | |
| "M3Gnet", | |
| "MATTERSIM_INTEGRATION_VERSION", | |
| "MATTERSIM_SOURCE_VERSION", | |
| "MatterSim", | |
| "load_calculator", | |
| "load_potential", | |
| "predict_structures", | |
| "resolve_checkpoint", | |
| ] | |
| def __getattr__(name): | |
| if name in {"M3Gnet", "MatterSim"}: | |
| from .mattersim import M3Gnet, MatterSim | |
| return {"M3Gnet": M3Gnet, "MatterSim": MatterSim}[name] | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |