Transformers
Safetensors
English
esmfold2
biology
esm
protein
protein-structure-prediction
structure-prediction
protein-design
3d-structure
confidence-estimation
molecular-dynamics
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:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("biohub/ESMFold2-Fast", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -60,7 +60,8 @@ from transformers.models.esmfold2.modeling_esmfold2 import ESMFold2Model
|
|
| 60 |
# Ubiquitin (PDB 1UBQ)
|
| 61 |
sequence = "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
|
| 62 |
|
| 63 |
-
|
|
|
|
| 64 |
output = model.infer_protein(sequence, num_loops=3, num_sampling_steps=50)
|
| 65 |
|
| 66 |
print(f"pLDDT mean: {float(output['plddt'].mean()):.3f}, pTM: {float(output['ptm'].mean()):.3f}")
|
|
|
|
| 60 |
# Ubiquitin (PDB 1UBQ)
|
| 61 |
sequence = "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
|
| 62 |
|
| 63 |
+
# optionally use "biohub/ESMFold2"
|
| 64 |
+
model = ESMFold2Model.from_pretrained("biohub/ESMFold2-Fast").cuda().eval()
|
| 65 |
output = model.infer_protein(sequence, num_loops=3, num_sampling_steps=50)
|
| 66 |
|
| 67 |
print(f"pLDDT mean: {float(output['plddt'].mean()):.3f}, pTM: {float(output['ptm'].mean()):.3f}")
|