You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the initialitation process
label-studio-ml init smdia-backend-ner --script models/ner.py --force
I'm receiving this error to all the models AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'
Traceback (most recent call last):
File "/usr/local/bin/label-studio-ml", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/label_studio_ml/server.py", line 119, in main
create_dir(args)
File "/usr/local/lib/python3.6/dist-packages/label_studio_ml/server.py", line 73, in create_dir
model_classes = get_all_classes_inherited_LabelStudioMLBase(script_path)
File "/usr/local/lib/python3.6/dist-packages/label_studio_ml/utils.py", line 29, in get_all_classes_inherited_LabelStudioMLBase
module = importlib.import_module(module_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/labelstudio/label-studio-transformers/models/ner.py", line 36, in <module>
[list(conf.pretrained_config_archive_map.keys()) for conf in (BertConfig,CamembertConfig, RobertaConfig, DistilBertConfig)],
File "/labelstudio/label-studio-transformers/models/ner.py", line 36, in <listcomp>
[list(conf.pretrained_config_archive_map.keys()) for conf in (BertConfig,CamembertConfig, RobertaConfig, DistilBertConfig)],
AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'
I tried to downgrade transformers to 2.0.0 but them fails the transformers import
could someone check this issue?
The text was updated successfully, but these errors were encountered:
On the initialitation process
label-studio-ml init smdia-backend-ner --script models/ner.py --force
I'm receiving this error to all the models
AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'
I tried to downgrade transformers to 2.0.0 but them fails the transformers import
could someone check this issue?
The text was updated successfully, but these errors were encountered: