ChatterjeeLab / TD3B

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 21 2026

Introduction of TD3B

Model Details of TD3B

TD3B: Transition-Directed Discrete Diffusion for Allosteric Binder Generation

Screenshot 2026-05-10 at 6.52.29 PM

TD3B is a sequence-based generative framework that designs peptide binders with specified agonist or antagonist behavior. It combines a Direction Oracle, a soft binding-affinity gate, and amortized fine-tuning of a pre-trained discrete diffusion model (MDLM).

Installation
conda env create -f env.yml
conda activate td3b
pip install -e .
Data and Checkpoints

Download the pretrained checkpoints and data from Google Drive (TBA) .

Place the files as follows:

TD3B/
├── checkpoints/
│   ├── pretrained.ckpt          # Pre-trained MDLM weights
│   ├── td3b.ckpt                # Fine-tuned TD3B model
│   └── direction_oracle.pt      # Direction Oracle weights
├── data/
│   ├── train.csv                # Training set (target-binder pairs)
│   └── test.csv                 # Test set
├── scoring/functions/classifiers/
│   ├── binding-affinity.pt
│   ├── hemolysis-xgboost.json
│   ├── nonfouling-xgboost.json
│   ├── permeability-xgboost.json
│   └── solubility-xgboost.json
└── tokenizer/
    ├── new_vocab.txt
    └── new_splits.txt
Code Structure
TD3B/
├── inference.py                 # Generate binders (main inference entry point)
├── finetune_multi_target.py     # Multi-target TD3B training
├── finetune_utils.py            # Training utilities
├── launch_multi_target.sh       # Training launcher script
├── diffusion.py                 # MDLM backbone (TR2-D2)
├── roformer.py                  # RoFormer wrapper
├── noise_schedule.py            # Noise schedules
├── peptide_mcts.py              # MCTS tree search
├── td3b/
│   ├── direction_oracle.py      # Direction Oracle (f_φ)
│   ├── td3b_scoring.py          # Gated reward R = g_ψ · σ(d*·(f_φ−0.5)/τ)
│   ├── td3b_losses.py           # L_WDCE + λ·L_ctr + β·L_KL
│   ├── td3b_mcts.py             # TD3B-extended MCTS
│   ├── td3b_finetune.py         # Training loop
│   └── data_utils.py            # Data loading utilities
├── scoring/                     # Affinity predictor (g_ψ) and property classifiers
├── baselines/                   # CG, SMC, TDS, PepTune, Unguided baselines
├── tokenizer/                   # SMILES tokenizer (vocab + splits)
├── configs/                     # Model and training configs
└── utils/                       # Misc utilities
Inference

Generate agonist/antagonist binders for target proteins:

python inference.py \
    --ckpt_path checkpoints/td3b.ckpt \
    --val_csv data/test.csv \
    --save_path results/ \
    --seed 42 \
    --num_pool 32 \
    --val_samples_per_target 8 \
    --resample_alpha 0.1

This generates 32 candidates per (target, direction), scores them with the Direction Oracle and affinity predictor, applies Algorithm 2 weighted resampling, and saves only valid peptide samples.

Output: results/td3b_results_seed42.csv with columns: target, sequence, direction, affinity, gated_reward, direction_oracle, direction_accuracy.

Training
Multi-target TD3B
  1. Edit launch_multi_target.sh — set paths to checkpoints, data, and oracle:
BASE_PATH="/path/to/TD3B"
PRETRAINED_CHECKPOINT="${BASE_PATH}/checkpoints/pretrained.ckpt"
TRAIN_CSV="${BASE_PATH}/data/train.csv"
ORACLE_CKPT="${BASE_PATH}/checkpoints/direction_oracle.pt"
  1. Launch training:
bash launch_multi_target.sh

Key hyperparameters (in launch_multi_target.sh ):

  • CONTRASTIVE_WEIGHT=0.1 — λ for L_ctr
  • KL_BETA=0.1 — β for L_KL
  • SIGMOID_TEMPERATURE=0.1 — τ for gated reward
  • NUM_ITER=20 — MCTS iterations per round
  • NUM_CHILDREN=16 — Children per MCTS expansion
Baselines

Run baseline methods (CG, SMC, TDS, PepTune, Unguided):

cd baselines/
bash run.sh --baseline cg --device cuda:0
bash run.sh --baseline smc --device cuda:0
bash run.sh --baseline tds --device cuda:0
Citation
@inproceedings{
  cao2026td3b,
  title={TD3B: Transition-Directed Discrete Diffusion for Allosteric Binder Generation},
  author={Anonymous},
  booktitle={Forty-third International Conference on Machine Learning},
  year={2026},
  url={https://openreview.net/forum?id=RNuC8Nj6rD}
}

Runs of ChatterjeeLab TD3B on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About TD3B huggingface.co Model

TD3B huggingface.co

TD3B huggingface.co is an AI model on huggingface.co that provides TD3B's model effect (), which can be used instantly with this ChatterjeeLab TD3B model. huggingface.co supports a free trial of the TD3B model, and also provides paid use of the TD3B. Support call TD3B model through api, including Node.js, Python, http.

ChatterjeeLab TD3B online free

TD3B huggingface.co is an online trial and call api platform, which integrates TD3B's modeling effects, including api services, and provides a free online trial of TD3B, you can try TD3B online for free by clicking the link below.

ChatterjeeLab TD3B online free url in huggingface.co:

https://huggingface.co/ChatterjeeLab/TD3B

TD3B install

TD3B is an open source model from GitHub that offers a free installation service, and any user can find TD3B on GitHub to install. At the same time, huggingface.co provides the effect of TD3B install, users can directly use TD3B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

TD3B install url in huggingface.co:

https://huggingface.co/ChatterjeeLab/TD3B

Url of TD3B

Provider of TD3B huggingface.co

ChatterjeeLab
ORGANIZATIONS

Other API from ChatterjeeLab

huggingface.co

Total runs: 12
Run Growth: 2
Growth Rate: 16.67%
Updated:November 15 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 21 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 19 2026