Materials
Collection
Welcome to IBM’s multi-modal foundation model for materials, FM4M, designed to support and advance research in materials science and chemistry. • 14 items • Updated • 6
How to use ibm-research/materials.selfies-ted2m with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="ibm-research/materials.selfies-ted2m") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ibm-research/materials.selfies-ted2m")
model = AutoModelForSeq2SeqLM.from_pretrained("ibm-research/materials.selfies-ted2m")selfies-ted is an transformer based encoder decoder model for molecular representations using SELFIES. This is a 2.2M parameter version of the model. For the full-sized version and more information on architecture, see selfies-ted.
This version also includes a projection layer to convert the last hidden state of the BART model (256-dimensional vector per token) to a single 128-dimension vector for the whole SELFIES sequence.