Model reference · open weights

MolDeBERTa-contrastive_mtr

Embeddings SaeedLab Embeddings 1 build Non-commercial 930 dl/mo

MolDeBERTa-contrastive_mtr is an open-weight embedding model from SaeedLab. MolDeBERTa-base-123M-contrastive_mtr (FP32) weighs 176 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • MolDeBERTa-contrastive_mtr is a molecular foundation model developed by SaeedLab for feature extraction tasks.
  • It utilizes the DeBERTaV2 architecture with byte-level BPE tokenization and was pretrained on 123 million SMILES using a contrastive MTR objective.
  • The model contains 88 million parameters, supports a context length of 128 tokens, and is distributed under the cc-by-nc-nd-4.0 license.

Summary of the SaeedLab/MolDeBERTa-base-123M-contrastive_mtr model card, 2026-10-01

What it is

Released bySaeedLab
Released2026-01-19
Parameters88M
VRAM176 MB for the weights

What it runs on

Memory and cards for MolDeBERTa-base-123M-contrastive_mtr (FP32)

176 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What SaeedLab says about MolDeBERTa-contrastive_mtr

Read the model card

This model corresponds to the MolDeBERTa base architecture pretrained on the 123M dataset using the contrastive MTR pretraining objective.

[Paper] | [Github Repo] | [Dataset on HuggingFace] | [Model Collection] | [Cite]

Abstract

Foundational models that learn the "language" of molecules are essential for accelerating material and drug discovery. These self-learning models can be trained on large collections of unlabelled molecules, enabling applications such as property prediction, molecule design, and screening for specific functions. However, existing molecular language models rely on masked language modeling, a generic token-level objective that is agnostic to physicochemical and substructure molecular properties. Here we introduce MolDeBERTa, a chemistry-informed self-supervised molecular encoder built upon the DeBERTaV2 architecture with byte-level Byte-Pair Encoding (BPE) tokenization. MolDeBERTa is pretrained on up to 123 million SMILES from PubChem using three novel pretraining objectives designed to inject strong inductive biases for molecular properties and substructure similarity directly into the latent space. The model is systematically investigated across three architectural scales, two dataset sizes, and five distinct pretraining objectives, of which three are novel and two are adapted from prior work. When evaluated on 9 MoleculeNet benchmarks, MolDeBERTa achieves the best overall performance on 4 out of 9 tasks and outperforms SMILES-based encoders on 7 out of 9 tasks, with up to a 16% reduction in regression error, and improvements of up to 2.2 ROC-AUC points on classification tasks.

Model Details

MolDeBERTa is a family of encoder-based molecular foundation models built upon the DeBERTaV2 encoder architecture and pretrained on large-scale SMILES data. The framework was evaluated across three architectural scales (tiny, small, and base), pretrained on two datasets of substantially different sizes (10M and 123M molecules), and optimized using five distinct pretraining objectives, resulting in a total of 30 pretrained model variants.

Model Selection Guide

Unsure which of the 30 models to use for your task? Based on our benchmark results, we recommend the following configurations:

Model Usage

You can use this model for feature extraction (embeddings) or fine-tune it for downstream prediction tasks (such as property prediction or sequence classification). The embeddings may be used for similarity measurements, visualization, or training predictor models.

Usage Example

Use the code below to get started with the model:

import torch
from transformers import AutoModel, AutoTokenizer

# Load the model and tokenizer
model_name = "SaeedLab/MolDeBERTa-base-123M-contrastive_mtr"
model = AutoModel.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Example input
smiles = ["CC(=O)Oc1ccccc1C(=O)O"]

# Tokenize and extract embeddings
inputs = tokenizer(smiles, return_tensors="pt", padding=True, truncation=True)
with torch.no_grad():
  outputs = model(**inputs)

# Access the last hidden state
embeddings = outputs.last_hidden_state
print(embeddings.shape)

Citation

If you use MolDeBERTa in your research, please cite:

@article{moldeberta2026,
  title   = {MolDeBERTa: Foundational Model for Physicochemical and Substructure-Informed Molecular Representation Learning},
  author  = {Oliveira, Gabriel Bianchin de and Saeed, Fahad},
  journal = {bioRxiv},
  year    = {2026},
  doi     = {10.64898/2026.02.15.706011},
  url     = {https://doi.org/10.64898/2026.02.15.706011}
}

License

This model and associated code are released under the CC-BY-NC-ND 4.0 license and may only be used for non-commercial, academic research purposes with proper attribution. Any commercial use, sale, or other monetization of this model and its derivatives, which include models trained on outputs from the model or datasets created from the model, is prohibited and requires prior approval. Downloading the model requires prior registration on Hugging Face and agreeing to the terms of use. By downloading this model, you agree not to distribute, publish or reproduce a copy of the model. If another user within your organization wishes to use the model, they must register as an individual user and agree to comply with the terms of use. Users may not attempt to re-identify the deidentified data used to develop the underlying model. If you are a commercial entity, please contact the corresponding author.

Contact

For any additional questions or comments, contact Fahad Saeed (fsaeed@fiu.edu).

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms