Skip to content
appliedCLPublic

About

smallfold: single-sequence protein backbone prediction

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

430 Commits

Folders and files

Repository files navigation

SmallFold

Single-sequence protein backbone prediction with PyTorch.

SmallFold architecture: ESM-2 embeddings and attention maps feed a sequence–pair trunk and an invariant point attention backbone decoder, with recycling.

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.

Installation

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]'

Training

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.

About

smallfold: single-sequence protein backbone prediction

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages