OpenNMT Forum

Several errors after hours of training - OpenNMT-py

Newbie here, trying to set up the default OpenNMT-py EN-DE on my pc.
I fixed several errores/problems on my own with some research and finally got to testing the files with my GPU (which was supposed to finish tomorrow by ~11:00 AM), but I can’t seem to fix this.

However, a few minutes ago I got several errors:

[2020-02-02 23:58:11,951 INFO] number of examples: 403
        Traceback (most recent call last):File "C:\Users\?\OpenNMT-py\onmt\", line 377, in _gradient_accumulation trunc_size=trunc_size)
          File "C:\Users\?\OpenNMT-py\onmt\utils\", line 165, in __call__ for shard in shards(shard_state, shard_size):
          File "C:\Users\?\OpenNMT-py\onmt\utils\", line 381, in shards torch.autograd.backward(inputs, grads)
          File "C:\Users\?\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\autograd\", line 99, in backward allow_unreachable=True)  # allow_unreachable flag
        RuntimeError: CUDA error: unspecified launch failure
        [2020-02-02 23:58:14,929 INFO] At step 32541, we removed a batch - accum 0
        Traceback (most recent call last):
          File "", line 6, in <module> main()
          File "C:\Users\?\OpenNMT-py\onmt\bin\", line 204, in main train(opt)
          File "C:\Users\?\OpenNMT-py\onmt\bin\", line 88, in train single_main(opt, 0)
          File "C:\Users\?\OpenNMT-py\onmt\", line 143, in main valid_steps=opt.valid_steps)
          File "C:\Users\?\OpenNMT-py\onmt\", line 244, in train report_stats)
          File "C:\Users\?\OpenNMT-py\onmt\", line 399, in _gradient_accumulation self.optim.step()
          File "C:\Users\?\OpenNMT-py\onmt\utils\", line 359, in step clip_grad_norm_(group['params'], self._max_grad_norm)
          File "C:\Users\?\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\utils\", line 32, in clip_grad_norm_ param_norm =
          File "C:\Users\?\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\", line 339, in norm return torch.norm(self, p, dim, keepdim, dtype=dtype)
          File "C:\Users\?\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\", line 747, in norm return torch._C._VariableFunctions.norm(input, p)
        RuntimeError: CUDA error: unspecified launch failure
            '.git' is not recognized as an internal or external command,
            operable program or batch file.

I trained the model deleting some data from the files because it was too huge and I just wanted to test it with fewer sentences (to try and see if I got it to work and later on use other data with a EN-ES language pair). I trained it using:

onmt_train -data data/demo -save_model demo-model

I continued on to execute the translation and it worked. Obviously, the results are really bad but it did work.

Anyone can help? Thank you beforehand. :smiley: