Instructions to use biohub/ESMFold2-Fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use biohub/ESMFold2-Fast with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("biohub/ESMFold2-Fast", trust_remote_code=True) model = AutoModel.from_pretrained("biohub/ESMFold2-Fast", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download README.md from biohub/ESMFold2-Fast: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/biohub/ESMFold2-Fast/resolve/c147fc85f34529abd4fcf63bdfd0cb7eb2ec00fa/README.md
- Command line
-
hf download hf://biohub/ESMFold2-Fast@c147fc85f34529abd4fcf63bdfd0cb7eb2ec00fa/README.md
-
curl -L -o README.md https://huggingface.co/biohub/ESMFold2-Fast/resolve/c147fc85f34529abd4fcf63bdfd0cb7eb2ec00fa/README.md
license: mit
Model Card for ESMCFold-Fast
Model Details
ESMCFold is a state-of-the-art protein structure prediction model that combines ESMC (6B parameter) language model representations with a diffusion-based structure prediction architecture inspired by AlphaFold3. The model predicts high-resolution, all-atom 3D protein structures directly from amino acid sequences, with optional multiple sequence alignment (MSA) input for enhanced accuracy on challenging targets. The model outputs comprehensive structural information including all-atom coordinates (backbone and side chains), confidence metrics (pLDDT, pAE, pTM, iPTM), and optional distogram predictions for detailed analysis of predicted structures. Unlike ESMFold, ESMCFold is able to predict structures for all biomolecules, including small molecules, DNA, RNA, and modified amino acids.
ESMCFold-Fast is an Inference optimized single-sequence structure prediction model and is not MSA conditioned.
For additional information, visit the Biohub Platform for no-code tools, step-by-step tutorial notebooks, and detailed information on the models.
System Requirements
- Compute Requirements: GPU
- PyTorch environment with GPU support recommended.
Model Architecture
The architecture consists of an input embedder, which includes the ESMC language model embeddings, a pairwise folding block trunk, an atom diffusion module, an optional MSA encoder, and a confidence head.
This hybrid architecture combines the representational power of large-scale protein language models with and efficient structure prediction modules listed in detail below:
1. Language Model Inputs Embedder:
Uses a frozen ESMC 6B parameter language model to generate rich single-sequence embeddings.
Provides evolutionary and functional context encoded in high-dimensional representations.
Embeddings capture long-range dependencies and sequence patterns learned from billions of protein sequences.
2. Pairformer Trunk:
Processes language model embeddings through a pairformer architecture that refines pairwise and single representations
Architectural improvements: Triangle attention was removed as it did not provide significant benefits, and the single state was removed to improve generalization
Evolves pairwise representations through iterative updates, enabling the model to capture inter-residue relationships and spatial constraints
3. Diffusion-Based Structure Module:
Employs a diffusion process to generate all-atom 3D coordinates (backbone and sidechains)
Uses an ODE (Ordinary Differential Equation) solver for efficient sampling
Optimized sampling schedule: 32 steps for sidechain prediction and 8 steps for backbone prediction provide optimal performance without additional benefit from more steps
This efficient sampling strategy significantly reduces computational cost while maintaining accuracy
4. Optional MSA Encoder (ESMCFold MSA variant):
Processes multiple sequence alignments to extract evolutionary information
Distills MSA information into pairwise representations that enhance structure prediction
Particularly beneficial for difficult targets with limited sequence information
5. Confidence Head:
Additional 4-layer pairformer module that estimates prediction confidence
Outputs multiple confidence metrics: pLDDT (per-residue), pAE (pairwise aligned error), pTM (template modeling score), and iPTM (interface template modeling score for complexes)
6. Auxiliary Losses:
- A trunk distogram head, a smooth-LDDT loss on the denoised sample, and a polymer-ligand bond loss supplement the diffusion MSE and confidence losses.
Model Variants:
| Model | MSA Conditioning | Description | Data Cutoff |
|---|---|---|---|
| esmcfold-fast-2605 | No | Inference optimized single-sequence structure prediction model | June 2025, older cutoff is Sept 2021 |
| esmcfold-2605 | Yes | Large model, capable of either single-sequence or MSA conditioned structure prediction for improved accuracy on difficult targets | June 2025, older cutoff is Sept 2021 |
Confidence Head (optional, for inference):
- 4 pairformer layers
- Outputs: pLDDT, pAE, pTM, ipTM
Intended Use
Primary Use Cases
ESMCFold-Fast is designed to handle a wide range of structural prediction tasks, including:
Complex biomolecular interactions
Complex structure folding: Predict structures of DNA, RNA, and small molecule ligands, including protein–protein interactions and protein-nucleic acid complexes.
Single-sequence folding: Predict 3D structures from amino acid sequences without requiring multiple sequence alignments
Confidence Estimation and Quality Assessment
Per-residue confidence (pLDDT): Local confidence scores (0-100) indicating prediction reliability at each residue position
Predicted aligned error (pAE): Pairwise error estimates for assessing inter-residue distance accuracy
Template modeling score (pTM): Global confidence metric (0-1) for overall structure topology and domain packing
Interface confidence (iPTM): Specialized confidence scores for multimeric complex interfaces
Computational Biology Research
Evolutionary analysis: Study structural conservation and divergence across protein families
Disease variant analysis: Predict structural impacts of mutations and genetic variants
Drug discovery: Support structure-based drug design through accurate binding site prediction
Training Details
The model was trained on sequences from PDB and AlphaFold DB. Refer to the supplement in the paper for details on how data is processed and sampled.
Performance Metrics
ESMCfold was evaluated against state-of-the-art single-sequence and MSA-based structure prediction models on the FoldBench benchmark. ESMCFold meets or exceeds performance by AlphaFold3 on antibody-antigen complex prediction, protein-protein complex prediction and Runs N’ Poses benchmarks. For inference time-scaling on FoldBench, ESMCFold scales gracefully with sample count, comparable to or exceeding AlphaFold3’s scaling behavior on the same targets.
Refer to the paper for details on additional performance metrics.
Usage
Coming soon
Biases, Risks, and Limitations
Potential Biases
- The model may reflect biases present in the training data.
Risks
- Potential misuse: Protein structure predictions may be used for malicious purposes such as designing pathogens or toxins.
Limitations
Static structure prediction: The model predicts single static conformations and is not designed for modeling protein dynamics, conformational flexibility, or multiple conformations of the same protein. It does not capture functional motions, allosteric transitions, or time-dependent structural changes.
Sequence length constraints: Maximum sequence length is approximately 1600 residues per chain, with total complex size limited by available GPU memory. Very large complexes may require specialized hardware or memory optimization strategies.
Training data biases: The model may reflect biases present in the training data (PDB, AFDB, SAbDab), including over-representation of certain protein families, experimental conditions, or structural classes. Performance may vary for underrepresented protein types.
Novel folds and rare structures: While the model generalizes well, extremely novel folds or rare structural motifs not well-represented in training data may have reduced accuracy.
Post-translational modifications: The model provides limited support for non-standard amino acids and post-translational modifications. Performance may be reduced for heavily modified proteins.
Membrane proteins: While the model can predict membrane protein structures, specialized membrane protein prediction tools may provide better results for transmembrane domains and membrane-embedded regions.
Disordered regions: The model may struggle with intrinsically disordered regions, which lack well-defined structure. Low pLDDT scores (<50) often indicate disordered or flexible regions.
Experimental validation required: All predictions should be considered hypotheses requiring experimental validation. The model cannot replace experimental structure determination methods (X-ray crystallography, cryo-EM, NMR) for definitive structural characterization.
Out-of-Scope or Unauthorized Use Cases
Do not use the model for the following purposes:
- Clinical diagnosis or treatment recommendations.
- Any use that violates applicable laws, regulations (including trade compliance laws), or third-party rights such as privacy or intellectual property rights.
- Any use that is prohibited by the model license.
- Any use that is prohibited by the Acceptable Use Policy.
Caveats and Recommendations
Always review and validate outputs generated by the model.
Treat model outputs as machine-generated hypotheses that require further experimental validation, not as established biological facts.
We are committed to advancing the responsible development and use of artificial intelligence. Please follow our Acceptable Use Policy when using the model.
Should you have any security or privacy issues or questions related to this model, please reach out to our team at support@biohub.org.
Acknowledgements
Many people on the Biohub AI Research team and prior EvolutionaryScale team contributed to the development of this model. It would not have been possible without them.