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:
- Environment: Google Colab Pro+
- Python version: 3.10
- GPU: A100 GPU
- Library versions:
- transformers: 4.44.2
- torch: 2.4.0+cu121
- I installed TransQuest using !git clone https://github.com/TharinduDR/TransQuest.git