Fill-Mask
Transformers
PyTorch
Joblib
Safetensors
DNA
biology
genomics
custom_code

Fix import for latest Transformers compatibility

#3
InstaDeep Ltd org
  • Updated modeling_esm.py to import find_pruneable_heads_and_indices from transformers.utils.modeling_utils instead of transformers.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

Sign up or log in to comment