facebookresearch / esm

Evolutionary Scale Modeling (esm): Pretrained language models for proteins
MIT License
3.16k stars 627 forks source link

How do I set the pretrained model download path? #347

Closed Catiks closed 1 year ago

Catiks commented 1 year ago

I want to change the download path of the esmfold pre-trained model , what should I do

j-kopec commented 1 year ago

in the python script add these 2 lines:

import torch.hub as hub hub.set_dir("path/to/folder/where/you/store/models")

Catiks commented 1 year ago

it works, Thanks