Skip to content

ModuleNotFoundError: Could not import module 'MistralForSequenceClassification' #47893

Description

@cqray1990

System Info

transformers 5.10, 5.5.3

Who can help?

envs/verl_env/lib/python3.12/site-packages/transformers/utils/import_utils.py", line 2295, in getattr
raise ModuleNotFoundError(
ModuleNotFoundError: Could not import module 'MistralForSequenceClassification'. Are this object's requirements defined correctly?

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

envs/verl_env/lib/python3.12/site-packages/transformers/utils/import_utils.py", line 2295, in getattr
raise ModuleNotFoundError(
ModuleNotFoundError: Could not import module 'MistralForSequenceClassification'. Are this object's requirements defined correctly?

Expected behavior

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions