ImportError: 'ROBERTA_PRETRAINED_MODEL_ARCHIVE_LIST' when using TransQuest/monotransquest-da-multilingual with Hugging Face Transformers

#3
by ShahadAlshalawi - opened

Hello Hugging Face Community,

I’m encountering an error while working with the following models: monotransquest-da-multilingual, monotransquest-da-en_any, and monotransquest-da-any_en from TransQuest.

Here’s the full error message:

ImportError: cannot import name 'ROBERTA_PRETRAINED_MODEL_ARCHIVE_LIST' from 'transformers.models.roberta.modeling_roberta'

The transformers library I am using doesn't have the ROBERTA_PRETRAINED_MODEL_ARCHIVE_LIST constant in the expected location. This could be due to an Outdated or incompatible transformers library. Can you help to fix this issue?

Steps Taken:

  • I’ve already tried upgrading/downgrading the transformers library.

Here’s my setup:

Sign up or log in to comment