Model reference · open weights
MolDeBERTa-mtr is an open-weight embedding model from SaeedLab. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | SaeedLab |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 88M |
| Context | 128 tokens |
| Runs with | transformers |
| Released | 2026-01-19 |
| Popularity | 5k downloads / month |
| Licence | Commercial licence needed |
About
This model corresponds to the MolDeBERTa base architecture pretrained on the 123M dataset using the MTR pretraining objective. We recommend to use this model (Overall SOTA).
[Paper] | [Github Repo] | [Dataset on HuggingFace] | [Model Collection] | [Cite]
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.
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.
Unsure which of the 30 models to use for your task? Based on our benchmark results, we recommend the following configurations:
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.
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-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)
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}
}
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.
For any additional questions or comments, contact Fahad Saeed (fsaeed@fiu.edu).
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys moldeberta-mtr for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (moldeberta-mtr below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"moldeberta-mtr","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.