---
title: PepMLM
canonical_url: "https://www.modelscope.cn/models/ai4s/PepMLM"
md_url: "https://www.modelscope.cn/models/ai4s/PepMLM.md"
repository: ai4s/PepMLM
chinese_name: PepMLM
last_updated: 2025-09-22
license: apache-2.0
library_name:
  - transformer
downloads: 17
stars: 8
---

# PepMLM

> PepMLM - ai4s 在 ModelScope 开源的模型。PepMLM: Target Sequence-Conditioned Generation of Peptide Binders via Masked Language Modeling In this work, we introduce PepMLM, a purely target sequence-conditioned de novo generator of linear peptide binders. By employing…

ai4s/PepMLM 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可。

- **Repository**: ai4s/PepMLM
- **License**: apache-2.0
- **Downloads**: 17
- **Stars**: 8
- **Last updated**: 2025-09-22

Source: https://www.modelscope.cn/models/ai4s/PepMLM

---

# <img src="logo.png" alt="Logo" width="100" height="45"/>
# PepMLM: Target Sequence-Conditioned Generation of Peptide Binders via Masked Language Modeling 
In this work, we introduce **PepMLM**, a purely target sequence-conditioned de novo generator of linear peptide binders. By employing a novel masking strategy that uniquely positions cognate peptide sequences at the terminus of target protein sequences, PepMLM tasks the state-of-the-art ESM-2 pLM to fully reconstruct the binder region, achieving low perplexities matching or improving upon previously-validated peptide-protein sequence pairs. After successful *in silico* benchmarking with AlphaFold-Multimer, we experimentally verify PepMLM's efficacy via fusion of model-derived peptides to E3 ubiquitin ligase domains, demonstrating endogenous degradation of target substrates in cellular models. In total, PepMLM enables the generative design of candidate binders to any target protein, without the requirement of target structure, empowering downstream programmable proteome editing applications.

<img alt="Copy of Sequence Based Illustration" src="pepmlm.png" />

Check out our [manuscript](https://arxiv.org/abs/2310.03842) on the *arXiv*!

- HuggingFace: [Link](https://huggingface.co/TianlaiChen/PepMLM-650M)
- Demo: HuggingFace Space Demo [Link](https://huggingface.co/spaces/TianlaiChen/PepMLM).
- Colab Notebook: [Link](https://colab.research.google.com/drive/1u0i-LBog_lvQ5YRKs7QLKh_RtI-tV8qM?usp=sharing)
- Nature Biotechnology: [Link](https://www.nature.com/articles/s41587-025-02761-2)

# Load Model
```python
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
from modelscope import snapshot_download
import os

model_dir = snapshot_download('ai4s/PepMLM',cache_dir='/mnt/workspace')
model_weights_dir = os.path.join(model_dir,'weights/')

tokenizer = AutoTokenizer.from_pretrained(model_weights_dir)
model = AutoModelForMaskedLM.from_pretrained(model_weights_dir)
```

# Citation
```
@article{chen2025pepmlm,
  title={Target sequence-conditioned design of peptide binders using masked language modeling},
  author={Chen, Tianlai and Quinn, Zachary and Dumas, Madeleine and Peng, Christina and Hong, Lauren and Lopez-Gonzalez, Moises and Mestre, Alexander and Watson, Rio and Vincoff, Sophia and Zhao, Lin and Wu, Jianli and Stavrand, Audrey and Schaepers-Cheu, Mayumi and Wang, Tian Zi and Srijay, Divya and Monticello, Connor and Vure, Pranay and Pulugurta, Rishab and Pertsemlidis, Sarah and Kholina, Kseniia and Goel, Shrey and DeLisa, Matthew P. and Chi, Jen-Tsan Ashley and Truant, Ray and Aguilar, Hector C. and Chatterjee, Pranam},
  journal={Nature Biotechnology},
  year={2025}
}
```
