Instructions to use TransQuest/monotransquest-da-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TransQuest/monotransquest-da-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TransQuest/monotransquest-da-multilingual")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TransQuest/monotransquest-da-multilingual") model = AutoModelForSequenceClassification.from_pretrained("TransQuest/monotransquest-da-multilingual") - Notebooks
- Google Colab
- Kaggle
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
transformerslibrary.
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