-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError for 'ALBERT_PRETRAINED_MODEL_ARCHIVE_LIST' from 'transformers' #39
Comments
@esther1262 I think the version of transformers we used is Meanwhile, @chenaokun @cpenguf any of u can check the transformers package compatibility issue and we might need to update this repo for any break updates. |
Hi, I couldn't install transformers earlier than version 4.34.0. It gave me the following errors:
So I installed ver 4.34.0 which also contains ALBERT_PRETRAINED_MODEL_ARCHIVE_LIST. It's just there were some warnings:
Otherwise, the code is working. Thanks. |
Great to know. Thanks. |
Hi, I followed this tutorial with the sample data.
https://github.com/uf-hobi-informatics-lab/ClinicalTransformerNER/blob/master/tutorial/pipeline_preprocessing_model_training_prediction.ipynb
Everything worked well until I ran the command
python ../src/run_transformer_ner.py
.I use anaconda and I installed transformer v4.41 using conda forge.
Pytorch was installed using conda too for linux and cuda 12.1.
The
ClinicalTransformerNER
folder is stored in/home/user
.I stored the training data in
/home/user/language model/sample data/ddi_bio/merge
.This is the command I used:
Here is the error I got:
Can someone please help how to fix the error? I restarted the computer already. In python, I can run commands like
from transformers import TFBertModel, BertModel
but there's nothing namedALBERT_PRETRAINED_MODEL_ARCHIVE_LIST
or any PRETRAINED_MODEL_ARCHIVE_LIST intransformers/__init__.py
.Thanks
The text was updated successfully, but these errors were encountered: