-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
# the latest version
self.prot_model = FAEsmForMaskedLM.from_pretrained("./esm_weights/esm2_35M").to(torch.float16) if pretrained else EsmModel(EsmConfig.from_pretrained('esm_weights/esm2_35M'))
# the old version
self.prot_model = ESMModel.from_pretrained("./esm_weights/esm2_35M").to(torch.float16) if pretrained else EsmModel(EsmConfig.from_pretrained('esm_weights/esm2_35M'))the memory usage is also equal, and the inference time isn't changed
Metadata
Metadata
Assignees
Labels
No labels