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
* number of parameters: 91402259
encoder: 34166272
decoder: 57235987
Loading train dataset from training/data/data.train.1.pt, number of examples: 1872377
/home/sai/anaconda3/envs/s2sv/lib/python3.6/site-packages/torch/nn/modules/module.py:357: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
result = self.forward(*input, **kwargs)
Traceback (most recent call last):
File "train.py", line 405, in <module>
main()
File "train.py", line 401, in main
train_model(model, fields, optim, data_type, model_opt)
File "train.py", line 219, in train_model
train_stats = trainer.train(train_iter, epoch, report_func)
File "/home/sai/grammar/OpenNMT-py/onmt/Trainer.py", line 214, in train
report_stats, normalization)
File "/home/sai/grammar/OpenNMT-py/onmt/Trainer.py", line 179, in gradient_accumulation
self.model(src, tgt, src_lengths, dec_state)
File "/home/sai/anaconda3/envs/s2sv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
result = self.forward(*input, **kwargs)
File "/home/sai/grammar/OpenNMT-py/onmt/Models.py", line 561, in forward
context_lengths=lengths)
ValueError: not enough values to unpack (expected 4, got 3)
Any idea on how to fix this ? I am using conda 4.5.4, the setup script didn't install pytorch into the s2sv environment, so I just ran conda install pytorch=0.3.1 -c soumith
after source activate .
The text was updated successfully, but these errors were encountered:
As a test for training the model, can you use this commit on the main branch: OpenNMT/OpenNMT-py@3bd5190 (or any older one). It is being refactored for pytorch 0.4 right now, and I will update Seq2SeqVis once this is done.
For the server I think we need to add some fixes for the transformer, since it is not quite clear which attention we want to visualize.
I tried starting training for my data in the downloaded OpenNmt with the following flags,
It throws the following error
Any idea on how to fix this ? I am using conda 4.5.4, the setup script didn't install pytorch into the s2sv environment, so I just ran
conda install pytorch=0.3.1 -c soumith
after source activate .
The text was updated successfully, but these errors were encountered: