Traceback (most recent call last):


 "bench.py", line 6, in <module>

from cythonperegrine import build_specific_collections as cython_build


 "/home/ytigiev/.local/share/virtualenvs/peregrine-W46Z6EVM/lib/python3.7/site-packages/peregrinearb-1.2.2-py3.7.egg/cythonperegrine/__init__.py", line 1, in <module>
ModuleNotFoundError: No module named 'cythonperegrine.CollectionBuilder'

Traceback (most recent call last):


 "/home/scarrion/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap

fn(i, *args)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq/distributed_utils.py", line 270, in distributed_main

main(args, **kwargs)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq_cli/train.py", line 125, in main

valid_losses, should_stop = train(args, trainer, task, epoch_itr)


 "/home/scarrion/anaconda3/lib/python3.7/contextlib.py", line 74, in inner

return func(*args, **kwds)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq_cli/train.py", line 223, in train

args, trainer, task, epoch_itr, valid_subsets, end_of_epoch


 "/home/scarrion/packages/fairseq-0.10.2/fairseq_cli/train.py", line 266, in validate_and_save

valid_losses = validate(args, trainer, task, epoch_itr, valid_subsets)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq_cli/train.py", line 323, in validate

trainer.valid_step(sample)


 "/home/scarrion/anaconda3/lib/python3.7/contextlib.py", line 74, in inner

return func(*args, **kwds)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq/trainer.py", line 764, in valid_step

logging_output = self._reduce_and_log_stats(logging_outputs, sample_size)


 "/home/scarrion/packages/fairseq-0.10.2/fairseq/trainer.py", line 1068, in _reduce_and_log_stats

self.task.reduce_metrics(logging_outputs, self.get_criterion())


 "/home/scarrion/packages/fairseq-0.10.2/fairseq/tasks/translation.py", line 375, in reduce_metrics

metrics.log_scalar("_bleu_counts", np.array(counts))


 "/home/scarrion/anaconda3/lib/python3.7/site-packages/torch/tensor.py", line 630, in __array__

return self.numpy()
TypeError: can't convert cuda:1 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
