Chris Hokamp

Results comments of Chris Hokamp

I had the same issue with tensorflow `1.0` and Spacy `1.5.1`, importing spacy before tensorflow fixed it for me.

Hi, I think you need to use pytorch `0.4.0`, not `0.4.1` or later On Thu, Aug 9, 2018 at 8:01 AM chengduo wrote: > When I use multi-gpu to train...

@alphadl there could be other issues with your setup. I had the same error and I downgraded from `0.4.1` to `0.4.0` for Ubuntu 16.04 (https://pytorch.org/previous-versions/) in a conda environment and...

@alphadl, not sure what the issue(s) could be, but can confirm that it works for me with `CUDA Version 9.2.148`, nvidia `Driver Version: 396.37`, and pytorch `0.4.0` from [this link](http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl)

Hi, I think you should be able to get the (log) probability `p(y|x)` by calling `model.generator(outputs)` on the outputs of the model (like after these lines): https://github.com/OpenNMT/OpenNMT-py/blob/master/onmt/trainer.py#L281-L282). So, for example,...

hi, a typical hack for this is to just generate outputs `Y_hat` from the model (i.e. sample or translate with beam search), then pass a batch of `(X, Y_hat, Y)`...

Create a translator and trainer that use the same model

Hi I guess it's [this line](https://github.com/pytorch/text/blob/7ab2ee56c3590ec112da81cf09dcc057c0563b6b/torchtext/data/dataset.py#L248) that's taking a long time. But after `self.examples` has been created, you should be able to pickle it. So a hackish way would be...

np :smile: I'm also not super familiar with all the torchtext possibilities, but I think for your usecase it might suffice to change [this line](https://github.com/pytorch/text/blob/7ab2ee56c3590ec112da81cf09dcc057c0563b6b/torchtext/data/dataset.py#L248) to `examples = (make_example(line, fields)...

yeah i guess that's the intuition behind doing it all upfront, but I don't think that would be the bottleneck for NMT at least, since tokenization and batching should be...