Single-sequence protein backbone prediction with PyTorch.
Protein illustration: experimental ubiquitin structure 1UBQ, rendered by RCSB PDB; shown as an example rather than a SmallFold prediction.
SmallFold turns ESM-2 sequence features into backbone coordinates and confidence through a sequence–pair trunk and a structure decoder. Recycling refines the prediction. The distillation recipe first learns residue distances, then trains backbone geometry and confidence.
Requires Python 3.11 or newer. Run from the project directory.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[data]'
Prepare a small public structure dataset and train a local pilot model.
python scripts/prepare_public_data.py
python -m smallfold train \
--manifest data/pdb-human-pilot/manifest.jsonl \
--config configs/local.json \
--output runs/training/model \
--steps 1000 \
--crop 128 \
--device auto
For AFDB distillation with online ESM-2 3B and a two-stage training schedule,
run bash scripts/train_distillation.sh stage1 followed by stage2.
Prepare the full corpus and benchmark the GPU before launching the complete run.
