ThilinaRajapakse/simpletransformers

MMBT no longer supported by huggingface transformers.

nicholas-botzer opened this issue · 1 comments

Huggingface has dropped support for models that are not often used, one of them being the MMBT model.
(https://github.com/huggingface/transformers/releases/tag/v4.31.0)

When using the latest transformers version with simpletransformers this will cause an error while using classification models as the module not longer exists.

from simpletransformers.classification import ClassificationModel, MultiLabelClassificationModel

File "simpletransformers/classification/init.py", line 5, in
from simpletransformers.classification.multi_modal_classification_model import (
File "simpletransformers/classification/multi_modal_classification_model.py", line 47, in
from transformers.models.mmbt.configuration_mmbt import MMBTConfig
ModuleNotFoundError: No module named 'transformers.models.mmbt'

Fixed (see issue #1539): Simple Transformers 0.64.3 now available.