Run this model with HF Jobs
Run aurekaresearch/OpenDDE on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/aurekaresearch/OpenDDE. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aurekaresearch/OpenDDE on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use aurekaresearch/OpenDDE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenDDE
How to use aurekaresearch/OpenDDE with OpenDDE:
# pip install 'opendde[gpu]' # Checkpoints are fetched from the Hub into $OPENDDE_ROOT_DIR (default ~/.cache/opendde) opendde doctor opendde pred -i examples/input.json -o ./output -n opendde_v1
- Notebooks
- Google Colab
- Kaggle
Download docs/design.md from aurekaresearch/OpenDDE: direct link, hf CLI and curl.
- Browser
- Download file 6.35 kB
-
https://huggingface.co/aurekaresearch/OpenDDE/resolve/main/docs/design.md
- Command line
-
hf download hf://aurekaresearch/OpenDDE/docs/design.md
-
curl -L -o design.md https://huggingface.co/aurekaresearch/OpenDDE/resolve/main/docs/design.md
Binder Backbone Design
OpenDDE supports backbone generation at masked polymer positions directly inside
runner/batch_inference.py pred. Masked residues are represented by generic
backbone atoms (N, CA, C, O for protein; sugar–phosphate backbone for
RNA/DNA), and their MSA/template identity is cleared automatically during
featurization.
| Polymer entry | Unknown residue letter(s) in sequence |
Model residue |
|---|---|---|
proteinChain |
X |
UNK (N, CA, C, O backbone) |
rnaSequence |
N (or X) |
N (RNA backbone) |
dnaSequence |
N (or X) |
DN (DNA backbone) |
Pair masked positions with distance_constraint (opendde_v2) or TFG epitope
guidance (constraint.epitope) to steer the designed loop or binder onto a
target site. For design tasks, we recommend the design-optimized checkpoint
opendde_v2_co.pt (-n opendde_v2 --load_checkpoint_path "$OPENDDE_ROOT_DIR/checkpoint/opendde_v2_co.pt").
Sequence decoding from the generated backbones is performed with an
external inverse-folding tool (for example, SolubleMPNN or ProteinMPNN), after
which candidate sequences can be refolded and ranked with opendde_v2.
Case 1: Epitope-conditioned VHH CDR-H3 backbone design (opendde_v2)
Keep the VHH framework (FR1–FR4) and CDR1/CDR2 fixed, replace the 10-residue
CDR-H3 loop with XXXXXXXXXX, and specify antigen epitope residues through
distance_constraint.site:
[
{
"name": "7st3_vhh_h3_design",
"modelSeeds": [101],
"sequences": [
{
"proteinChain": {
"sequence": "YMLDLQPETTDLYCGGGGSGGGGSGGGGSIQRTPKIQVYSRHPAENGKSNFLNCYVSGFHPSDIEVDLLKNGERIEKVEHSDLSFSKDWSFYLLYYTEFTPTEKDEYACRVNHVTLSQPKIVKWDRDMGGGGSGGGGSGGGGSGGGGSGSHSMRYFFTSVSRPGRGEPRFIAVGYVDDTQFVRFDSDAASQRMEPRAPWIEQEGPEYWDGETRKVKAHSQTHRVDLGTLRGCYNQSEAGSHTVQRMYGCDVGSDWRFLRGYHQYAYDGKDYIALKEDLRSWTAADMCAQTTKHKWEAAHVAEQLRAYLEGTCVEWLRRYLENGKETLQRTDAPKTHMTHHAVSDHEATLRCWALSFYPAEITLTWQRDGEDQTQDTELVETRPAGDGTFQKWAAVVVPSGQEQRYTCHVQHEGLPKPLTLRWEHHHHHH",
"count": 1,
"id": ["A"],
"pairedMsaPath": "./examples/constraint/msa/7st3/1/pairing.a3m",
"unpairedMsaPath": "./examples/constraint/msa/7st3/1/non_pairing.a3m"
}
},
{
"proteinChain": {
"sequence": "EVKLVESGGGLVQPGGSLRLSCAASGSIFSINTMGWYRQTPGKQRDLVADISSGGSTKYGDSVKGRFTISRDNTKNTVYLQMNSLKPEDTAVYYCXXXXXXXXXXWGQGTQVTVSS",
"count": 1,
"id": ["B"],
"unpairedMsaPath": "./empty.a3m"
}
}
],
"distance_constraint": {
"site": [
{
"source": [{"entity": 2}],
"site": [{"entity": 1, "positions": [69, 72]}],
"max_distance": 8.0
}
]
}
}
]
Create the empty .a3m placeholder so the designed antibody chain runs without
an MSA while the antigen keeps its precomputed MSA, then sample backbones:
touch empty.a3m
python runner/batch_inference.py pred \
-i 7st3_vhh_h3_design.json \
-o ./output_design \
-n opendde_v2 \
--use_msa true \
--sample 5 \
--step 200 \
--cycle 10
For single-sequence runs without any MSA, omit the *MsaPath fields and pass
--use_msa false.
Case 2: Paired VH–VL CDR-H3 + CDR-L3 design with TFG epitope guidance
Mask both CDR-H3 on chain H and CDR-L3 on chain L with X, and guide the
paired Fv (movable_chains: ["H", "L"]) onto antigen epitope residues with
TFG:
[
{
"name": "vhvl_h3_l3_design",
"modelSeeds": [101],
"sequences": [
{
"proteinChain": {
"sequence": "EVQLVESGGGLVQPGGSLRLSCAASGFTFSSYAMSWVRQAPGKGLEWVSAISGSGGSTYYADSVKGRFTISRDNSKNTLYLQMNSLRAEDTAVYYCAKXXXXXXXXXXXXWGQGTLVTVSS",
"count": 1,
"id": ["H"],
"unpairedMsaPath": "./empty.a3m"
}
},
{
"proteinChain": {
"sequence": "DIQMTQSPSSLSASVGDRVTITCRASQSISSYLNWYQQKPGKAPKLLIYAASSLQSGVPSRFSGSGSGTDFTLTISSLQPEDFATYYCXXXXXXXXXFGQGTKVEIK",
"count": 1,
"id": ["L"],
"unpairedMsaPath": "./empty.a3m"
}
},
{
"proteinChain": {
"sequence": "MKTIIALSYIFCLVFA...",
"count": 1,
"id": ["A"],
"pairedMsaPath": "/path/to/antigen_msa/pairing.a3m",
"unpairedMsaPath": "/path/to/antigen_msa/non_pairing.a3m"
}
}
],
"constraint": {
"movable_chains": ["H", "L"],
"epitope": {
"residues": [
{"entity": "3", "copy": 1, "position": "45"},
{"entity": "3", "copy": 1, "position": "48"},
{"entity": "3", "copy": 1, "position": "52"}
],
"paratope": "cdr",
"min_fraction": 0.5
}
}
}
]
python runner/batch_inference.py pred \
-i vhvl_h3_l3_design.json \
-o ./output_vhvl_design \
-n opendde_v2 \
--use_msa true \
--use_tfg_guidance true \
--dtype bf16 \
--enable_tf32 false \
--sample 5
Case 3: Nucleic acid backbone design (rnaSequence / dnaSequence)
Mask designed RNA or DNA positions with N alongside a target protein:
[
{
"name": "rna_motif_design",
"modelSeeds": [101],
"sequences": [
{
"proteinChain": {
"sequence": "MKTIIALSYIFCLVFA...",
"count": 1,
"id": ["A"]
}
},
{
"rnaSequence": {
"sequence": "GGGNNNNNNNNCCC",
"count": 1,
"id": ["R"]
}
}
],
"distance_constraint": {
"site": [
{
"source": [{"entity": 2}],
"site": [{"entity": 1, "positions": [10, 12]}],
"max_distance": 8.0
}
]
}
}
]
Downstream sequence design and refolding
- Generated structures are written to
<out_dir>/<job_name>/seed_<seed>/predictions/<job_name>_sample_<rank>.cif, withUNK(N, CA, C, O) at masked protein positions. - Run an external inverse-folding model (such as SolubleMPNN or ProteinMPNN) on
the generated
.cifbackbones, redesigning only the masked positions while keeping the target and framework fixed. - Replace the
Xpositions in the input JSON with the decoded sequences and refold without constraints (runner/batch_inference.py pred -n opendde_v2) to rank candidates byiptm,ranking_score, and backbone RMSD.