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
I am executing the following command with the necessary parameters: python3.8 src/stancedetection/models/trainer.py
For now, I am just using 3 datasets with a very small number of synthetic examples, just to make sure that the code is working.
However, I am getting the following error:
File "src/stancedetection/models/trainer.py", line 903, in <module>
main()
File "src/stancedetection/models/trainer.py", line 822, in main
model = load_model_from_pretrained(
File "src/stancedetection/models/trainer.py", line 291, in load_model_from_pretrained
model = model_cls.from_pretrained(model_name_or_path, **from_pretrained_kwargs)
File "venv/lib/python3.8/site-packages/transformers/modeling_utils.py", line 947, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/scratch/rrs99/mole-stance/src/stancedetection/models/nn.py", line 147, in __init__
task2labels=config.task2labels,
AttributeError: 'RobertaConfig' object has no attribute 'task2labels'
The text was updated successfully, but these errors were encountered:
I am executing the following command with the necessary parameters:
python3.8 src/stancedetection/models/trainer.py
For now, I am just using 3 datasets with a very small number of synthetic examples, just to make sure that the code is working.
However, I am getting the following error:
The text was updated successfully, but these errors were encountered: