Fix import for latest Transformers compatibility
#3
by
bernardo-de-almeida - opened
- Updated
modeling_esm.pyto importfind_pruneable_heads_and_indicesfromtransformers.utils.modeling_utilsinstead oftransformers.modeling_utils. - Ensures compatibility with Transformers >=4.30.
- Enables AutoModelForSequenceClassification to load the model without ImportError.
bernardo-de-almeida changed pull request status to
merged