facebookresearch/fairchem
fairchem
by FAIR Chemistry
fairchem
is the FAIR Chemistry’s centralized repository of all its data, models,
demos, and application efforts for materials science and quantum chemistry.
:warning: FAIRChem version 2 is a breaking change from version 1 and is not compatible with our previous pretrained models and code. If you want to use an older model or code from version 1 you will need to install version 1, as detailed here.
Read our latest release post!
Read about the UMA model and dataset release.
Try the demo!
If you want to explore model capabilities check out our educational demo
Installation
Install fairchem-core using pip,
|
|
The PyPI install (pip install fairchem-core) is not available right now as we are waiting for a few dependencies to release their PyPI packages, will update this soon when it’s available!
Quick Start
The easiest way to use pretrained models is via the ASE FAIRChemCalculator
.
A single uma model can be used for a wide range of applications in chemistry and materials science by picking the
appropriate task name for domain specific prediction.
Instantiate a calculator from a pretrained model
Make sure you have a Hugging Face account, have already applied for model access to the UMA model repository, and have logged in to Hugging Face using an access token.
Set the task for your application and calculate
- oc20: use this for catalysis
- omat: use this for inorganic materials
- omol: use this for molecules
- odac: use this for MOFs
- omc: use this for molecular crystals
Relax adsorbate on a catalytic surface,
|
|
Or relax an inorganic crystal,
|
|
Run molecular MD,
|
|
Looking for Fairchem V1, models and code?
Fairchem V2 is a major upgrade and we completely rewrote the trainer, fine-tuning, models and calculators.
We plan to bring back the following models compatible with Fairchem V2 soon:
- Gemnet-OC
- EquiformersV2
- ESEN
We will also be releasing more detailed documentation on how to use Fairchem V2, stay tuned!
The old OCPCalculator, trainer code will NOT be revived. We apologize for the inconvenience and please raise Issues if you need help! In the meantime, you can still use models from fairchem version 1, by installing version 1,
|
|
And using the OCPCalculator
|
|
LICENSE
fairchem
is available under a MIT License.