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/infer_json_format.md from aurekaresearch/OpenDDE: direct link, hf CLI and curl.
- Browser
- Download file 9.81 kB
-
https://huggingface.co/aurekaresearch/OpenDDE/resolve/main/docs/infer_json_format.md
- Command line
-
hf download hf://aurekaresearch/OpenDDE/docs/infer_json_format.md
-
curl -L -o infer_json_format.md https://huggingface.co/aurekaresearch/OpenDDE/resolve/main/docs/infer_json_format.md
Inference JSON Format
OpenDDE input is a JSON file whose top-level value is a non-empty list of jobs.
It uses AlphaFold Server-style entity keys (proteinChain, dnaSequence,
rnaSequence, ligand, ion), not the single-job alphafold3 dialect.
Minimal job:
[
{
"name": "example_job",
"modelSeeds": [101],
"sequences": [
{
"proteinChain": {
"sequence": "ACDEFGHIKLMNPQRSTVWY",
"count": 1
}
}
]
}
]
covalent_bonds is optional and is omitted here; see the section below for when
to add it.
Job fields:
| Field | Required | Meaning |
|---|---|---|
name |
Yes | Job name used in output paths. |
sequences |
Yes | List of entities. Each item has exactly one entity key. |
modelSeeds |
No | Default seeds for the job. Overridden by --seeds; if neither is set, a random seed is sampled. |
covalent_bonds |
No | Explicit covalent links between entities. |
constraint |
No | Contact/epitope requests applied by TFG guidance (--use_tfg_guidance true). |
distance_constraint |
No | Distance conditioning through the constraint embedder (opendde_v2 only). |
Every entity has count. Optional id is a list of chain IDs; its length must
match count.
proteinChain
{
"proteinChain": {
"sequence": "ACDEFGHIKLMNPQRSTVWY",
"count": 1,
"id": ["A"],
"modifications": [
{"ptmType": "CCD_MSE", "ptmPosition": 1}
],
"pairedMsaPath": "/absolute/path/to/pairing.a3m",
"unpairedMsaPath": "/absolute/path/to/non_pairing.a3m",
"templatesPath": "/absolute/path/to/hmmsearch.a3m"
}
}
sequence: 20 standard amino-acid letters plusX.ptmType: CCD code prefixed withCCD_;ptmPositionis 1-based.pairedMsaPath,unpairedMsaPath: optional protein A3M files.templatesPath: optional template hits file (.a3mor.hhr), used only with--use_template true.
dnaSequence
{
"dnaSequence": {
"sequence": "GATTACA",
"count": 1,
"id": ["D"],
"modifications": [
{"modificationType": "CCD_6MA", "basePosition": 2}
]
}
}
- Supported documented letters:
A,T,G,C,N,X. - DNA is single-stranded; add another
dnaSequencefor the other strand. basePositionis 1-based.
rnaSequence
{
"rnaSequence": {
"sequence": "GUAC",
"count": 1,
"id": ["R"],
"modifications": [
{"modificationType": "CCD_5MC", "basePosition": 4}
],
"unpairedMsaPath": "/absolute/path/to/rna_msa.a3m"
}
}
- Supported documented letters:
A,U,G,C,N,X. unpairedMsaPathis optional and used only with--use_rna_msa true.
ligand
{
"ligand": {
"ligand": "CCD_ATP",
"count": 1,
"id": ["L"]
}
}
ligand can be:
- A CCD code prefixed with
CCD_, e.g.CCD_ATP. - Multiple CCD codes joined by underscores, e.g.
CCD_NAG_BMA_BGC. - A 3D ligand file prefixed with
FILE_(.pdb,.sdf,.mol,.mol2). - A SMILES string.
ion
{
"ion": {
"ion": "MG",
"count": 2,
"id": ["M", "N"]
}
}
Ion codes are CCD component names without the CCD_ prefix.
covalent_bonds
"covalent_bonds": [
{
"entity1": "1",
"copy1": 1,
"position1": "2",
"atom1": "SG",
"entity2": "2",
"copy2": 1,
"position2": "1",
"atom2": "C1"
}
]
Fields:
entity1,entity2: 1-based indices insequences.copy1,copy2: optional 1-based copy indices.position1,position2: 1-based residue/ligand-part positions.atom1,atom2: atom names. Integer references are also accepted for mapped SMILES or file ligands.
Use entity1/entity2 for new inputs. The old left_entity/right_entity
style is accepted for compatibility.
constraint (TFG guidance)
OpenDDE accepts a singular constraint object that steers the
prediction through Training-Free Guidance (TFG). Enable it with
--use_tfg_guidance true. Supported keys are contact, movable_chains and
epitope; any other key is rejected with an error. Constraints do not create
covalent bonds; use covalent_bonds for hard links. Guidance modes and the
environment settings they need are described in
TFG constraint guidance.
constraint.contact
Soft distance restraints between atom pairs.
"constraint": {
"contact": [
{
"entity1": "1",
"copy1": 1,
"position1": "20",
"atom1": "CA",
"entity2": "2",
"copy2": 1,
"position2": "102",
"atom2": "CA",
"min_distance": 3.5,
"max_distance": 8.0
}
]
}
Fields (addressing matches covalent_bonds):
entity1,entity2(orleft_entity/right_entity): 1-based indices insequences.copy1,copy2(orleft_copy/right_copy): optional 1-based copy indices. Prefer explicit copies for AbβAg inputs.position1,position2(orleft_position/right_position): 1-based residue positions.atom1,atom2(orleft_atom/right_atom): atom names. For protein residues, omitted atoms default toCA.min_distance,max_distance: flat-bottom bounds in Γ (defaults3.5/8.0).
If constraint.contact is present but TFG is disabled, inference logs a hint to
pass --use_tfg_guidance true.
constraint.movable_chains
"constraint": {"movable_chains": ["H", "L"], "contact": [...]}
A non-empty list of distinct chain IDs (proteinChain.id) that move together as
one rigid body during rigid-body guidance; every other chain stays where the
sampler put it. It must name some but not all chains. Without it, rigid contact
guidance supports exactly two chains and moves the one holding the second atom
of the contacts. With rigid contact guidance, every contact must join one atom
of a movable chain to one atom outside it.
constraint.epitope
Asks that an antibody-like group (the movable_chains) binds a set of antigen
residues, without naming any antibody-side residue.
"constraint": {
"movable_chains": ["H", "L"],
"epitope": {
"residues": [
{"entity": "3", "copy": 1, "position": "248", "residue": "P"},
{"entity": "3", "copy": 1, "position": "249", "residue": "N"}
],
"paratope": "all",
"min_fraction": 0.5
}
}
residues: non-empty list of antigen residues.entity,copyandpositionare integers or strings of digits; the optional one-letterresidueis checked against the sequence. A repeated residue counts once. Epitope residues must not lie in a movable chain.paratope: the heavy atoms of the movable chains that count as the binding face."all"(default) uses every residue of the movable chains,"cdr"uses positions 24β40, 50β66 and 88β115 of every movable chain, and{"windows": {"H": [[26, 35], [50, 66]]}}gives explicit 1-based windows per movable chain.min_fraction: in(0, 1], default0.5. The request is met when at leastK = max(1, ceil(min_fraction * n))of thendistinct epitope residues have a heavy atom within 5 Γ of a paratope heavy atom.
epitope requires movable_chains and cannot be combined with contact.
Malformed fields are errors. The epitope request is applied only by rigid-body
guidance, which runs by default when the input carries it (see
TFG constraint guidance); without
--use_tfg_guidance true, or with sample_diffusion.guidance.rigid.contact set
to off or control, the run stops with an error instead of ignoring the request.
distance_constraint (constraint embedder, opendde_v2)
opendde_v2 can be conditioned on distances through the pair constraint
embedder it was trained with. Unlike constraint (TFG guidance, which moves
coordinates during sampling), distance_constraint is an input to the trunk: it
is projected into the pair representation, needs no --use_tfg_guidance, and
works only with a model that builds the embedder (opendde_v2; opendde_v1
stops with an error). It is a job-level key next to sequences.
"distance_constraint": {
"site": [
{
"source": [{"entity": 2}],
"site": [{"entity": 1, "positions": [160, 161, 164]}],
"max_distance": 10.0
}
],
"pair": [
{
"left": [{"entity": 1, "copy": 1, "positions": [161]}],
"right": [{"entity": 2, "positions": [9]}],
"min_distance": 0.0,
"max_distance": 9.0
}
]
}
site: every residue insitelies withinmax_distanceof its nearest residue insource(for example, a ligand or nucleic acid that must sit on a set of residues).pair: every residue inleftand every residue inrightis betweenmin_distance(default 0) andmax_distanceof each other.- Selectors:
entity(1-based, as insequences) is required;copy(1-based) andpositions(1-based residue numbers) narrow it. Withoutpositionsthe whole entity is selected. A selector that matches no residue is an error. - Distances are in Γ
between representative atoms (CA for amino acids, C1' for
nucleotides), at most 32. The model was trained with
max_distancebetween 6 and 12.
The constraint is a hint to the model, not a hard restraint; it is not checked against the prediction.
Output layout
python runner/batch_inference.py pred writes:
<out_dir>/<job_name>/seed_<seed>/predictions/
βββ <job_name>_sample_<rank>.cif
βββ <job_name>_summary_confidence_sample_<rank>.json
βββ <job_name>_full_data_sample_<rank>.json # only when --need_atom_confidence true
The summary JSON includes confidence metrics such as plddt, gpde, ptm,
iptm, clash flags, and ranking_score when available.