Skip to content

Since 5.0 version it breaks too many models #45850

@LOYINuts

Description

@LOYINuts

System Info

Im using DNABERT -2 and after i update transformers there is an error:

AttributeError: 'BertConfig' object has no attribute 'pad_token_id'

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

just use DNABERT-2 and use its tokenizer as well

Expected behavior

Back to normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions