Instructions to use ibm-research/materials.pos-egnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ibm-research/materials.pos-egnn with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ibm-research/materials.pos-egnn", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - AnemoI
How to use ibm-research/materials.pos-egnn with AnemoI:
from anemoi.inference.runners.default import DefaultRunner from anemoi.inference.config.run import RunConfiguration # Create Configuration config = RunConfiguration(checkpoint = {"huggingface":"ibm-research/materials.pos-egnn"}) # Load Runner runner = DefaultRunner(config) - MedVAE
How to use ibm-research/materials.pos-egnn with MedVAE:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Position-based Equivariant Graph Neural Network (pos-egnn)
This repository contains PyTorch model for loading and performing inference using the pos-egnn, a foundation model for Chemistry and Materials.
GitHub: https://github.com/IBM/materials/tree/main/models/pos_egnn
HuggingFace: https://huggingface.co/ibm-research/materials.pos-egnn
Introduction
We present pos-egnn, a Position-based Equivariant Graph Neural Network foundation model for Chemistry and Materials. The model was pre-trained on 1.4M samples (i.e., 90%) from the Materials Project Trajectory (MPtrj) dataset to predict energies, forces and stress. pos-egnn can be used as a machine-learning potential, as a feature extractor, or can be fine-tuned for specific downstream tasks.
Besides the model weigths pos-egnn.v1-6M.pt (download from HuggingFace), we also provide an example.ipynb notebook (download from GitHub), which demonstrates how to perform inference, feature extraction and molecular dynamics simulation with the model.
For more information, please reach out to rneumann@br.ibm.com and/or flaviu.cipcigan@ibm.com
- Downloads last month
- 48