Skip to content

Why the inference time isn't changed? #14

@mmjwxbc

Description

@mmjwxbc
# 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions