Skip to content

esm c (esmc-300m-2024-12 or esmc-600m-2024-12): AttributeError: property 'cls_token' of 'EsmSequenceTokenizer' object has no setter. #240

@595693085

Description

@595693085

When using the latest version of esmc (esmc==3.2.0), the code "model = ESMC.from_pretrained("esmc_300m")" throws the following error: AttributeError: property 'cls_token' of 'EsmSequenceTokenizer' object has no setter.
Currently, there appears to be no solution available online, and we can only wait for the developers to explain or fix the issue. Based on testing, the error does not occur when the esm version is below 3.1.5, but it consistently occurs with version 3.1.5 or above. The current workaround is to downgrade esm to version 3.1.4. Does anyone have a better solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions