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
Traceback (most recent call last):
File "../src/pytorch-transformers/examples/run_pdtb.py", line 592, in<module>main()
File "../src/pytorch-transformers/examples/run_pdtb.py", line 518, in main
model = model_class.from_pretrained(args.model_name_or_path, from_tf=bool('.ckpt'in args.model_name_or_path), config=config)
File "/home/aq/.local/lib/python3.8/site-packages/pytorch_transformers/modeling_utils.py", line 536, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/home/aq/.local/lib/python3.8/site-packages/pytorch_transformers/modeling_xlnet.py", line 1110, in __init__
self.transformer = XLNetModel(config)
File "/home/aq/.local/lib/python3.8/site-packages/pytorch_transformers/modeling_xlnet.py", line 731, in __init__
self.word_embedding = nn.Embedding(config.n_token, config.d_model)
File "/home/aq/.local/lib/python3.8/site-packages/torch/nn/modules/sparse.py", line 137, in __init__
self.weight = Parameter(torch.Tensor(num_embeddings, embedding_dim))
RuntimeError: Trying to create tensor with negative dimension -1: [-1, 1024]
The text was updated successfully, but these errors were encountered:
Subject
When trying to run the run.py script to train an xlne-large-uncased for the PDTB2_LEVEL1 task, a strange RuntimeError occurs.
Environnment
Expected behaviour
The script should start the training process and then evaluate at the end.
Steps to reproduce
After downloading the PDTB2.0 corpus in CSV format, I ran your preprocessing script as follows:
After the preprocess, I ran the
src/pytorch-transformers/examples/run_pdtb.py
with th following parameters:And the error message is the following:
The text was updated successfully, but these errors were encountered: