Skip to content

Instantly share code, notes, and snippets.

@ramithuh
Created April 23, 2025 05:10
Show Gist options
  • Save ramithuh/c3e5b0b8289567a070431ee9059b2246 to your computer and use it in GitHub Desktop.
Save ramithuh/c3e5b0b8289567a070431ee9059b2246 to your computer and use it in GitHub Desktop.
Setup ESMFold on aarch64

Conda Environment and Package Setup for ESMFold

1. Create and Activate Conda Environment

conda create -n esm2 python=3.10
conda activate esm2

3. Install OpenFold from GitHub

pip install 'openfold @ git+https://github.com/sokrypton/openfold.git'

4. Install PyTorch and Related Libraries (CUDA 12.4)

pip install torch==2.4.0 --index-url https://download.pytorch.org/whl/cu124

5. (Optional) Test Torch Installation in Python

python
# import torch
# torch.cuda.is_available()
# True (hopefully)

7. (Optional) Reinstall OpenFold if Needed

pip install 'openfold @ git+https://github.com/sokrypton/openfold.git'

8. Install Jupyter Kernel Support

conda install ipykernel
python -m ipykernel install --user --name esm2 --display-name "Python (esm2)"

9. Install Additional Packages

pip install "fair-esm[esmfold]"
pip install modelcif
pip install --upgrade deepspeed
pip install biotite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment