Questions tagged [opennmt]
38 questions
0
votes
1 answer
Cudnn issue while using OpenNMT-tf 2.10 with tensorflow 2.2 inAnaconda virtual env
I am trying to train OpenNMT-tf transformer model on GPU GeForce RTX 2060 8GB Memory. You can see steps Here.
I have created Anaconda virtual environment and installed tensorflow-gpu using following commend.
conda install…

Ikram Ul Haq
- 76
- 5
0
votes
1 answer
Trouble installing PyTorch for OpenNMT
I'm trying to train an openNMT model using the instructions here - https://pypi.org/project/OpenNMT-py/
However I run into a problem while installing (using python setup.py install)
It runs into an error -
Processing dependencies for…

captain vhagar
- 1
- 2
0
votes
1 answer
Tensorflow Serving - Not found: Op type not registered 'GatherTree'
I just a newbie. I have problem when I serving tensorflow model in this case:
I. Using this http://opennmt.net/OpenNMT-tf/quickstart.html to train the model.
II. Serving the model with following steps:
Create docker image with:
docker build…

Andy Nguyen
- 131
- 1
- 9
0
votes
1 answer
Getting the gradients of a model trained in OpenNMT-py
When training a model using OpenNMT-py, we get a dict as output, containing the weights and biases of the network. However, these tensors have requires_grad = False, and so, do not have a gradient. For example. with one layer, we might have the…

thaumoctopus
- 113
- 1
- 13
0
votes
2 answers
Getting alignment/attention during translation in OpenNMT-py
Does anyone know how to get the alignments weights when translating in Opennmt-py? Usually the only output are the resulting sentences and I have tried to find a debugging flag or similar for the attention weights. So far, I have been unsuccessful.

thaumoctopus
- 113
- 1
- 13
0
votes
0 answers
Finding cell state in OpenNMT-py
I can't seem to find a value for the cell state when loading a model trained with a network of LSTM neurons in OpenNMT-py. I can only find the weight matrices and biases under 'model' in the model loaded with torch.load. Does anyone know if the cell…

thaumoctopus
- 113
- 1
- 13
0
votes
1 answer
Transfer learning with OpenNMT
I'm training a transformer model with OpenNMT-py on MIDI music files, but results are poor because I only have access to a small dataset pertaining to the style I want to study. To help the model learn something useful, I would like to use a much…

Gianluca Micchi
- 1,584
- 15
- 32
0
votes
0 answers
How to run OpenNMT-py model to translate a given string in jupyter notebook?
The documentation only mentions using the command line to run the translate.py script already given in the OpenNMT-py repo, i.e. use
python translate.py -model model_name.pt -src data/src-test.txt -output pred.txt
and that's fine, but how do I use…

charmander
- 957
- 1
- 8
- 21