Comments (9)
I did solved the issue by using Python 3.5.3, apparently Python 3.6 does not likes concurencies when multiple heavy processes already run on the machine :(
from unsupervisedmt.
Could you share the full log file? When you say "the NMT runs for a while" is it after a few epochs or something? Usually the issues on the CPU threads happen immediately or not at all.
from unsupervisedmt.
Sorry for late reply. This is the full log file, nohup.out.txt . This error did occur during training.
from unsupervisedmt.
Up! I get the exact same error at the difference that the training crashs at the beginning of the epoch 0. Find here my log.txt file.
OS: Debian unstable (sid)
GPU: K80
Python version: 3.6.7
Pytorch version: 0.4.1
from unsupervisedmt.
I did update my Pytorch version to 1.0.0.dev20181022
and still the same exception :(
from unsupervisedmt.
Did you have to change something in the code? Or just using another version of Python solved the issue?
from unsupervisedmt.
Well, to be more specific, firstly I noticed that adding a timeout to the poll()
function at line 72 partially solved the problem, because apparently there was a sync issue between the read/write in the Pipe. Unfortunatelly, this solution was slowing the process a lot and sometimes, depending of the usage of the machine, was changing. Then I wanted to see if the Python 3.5 version was working or not, I did install it, run the training and it worked perfectly without changing any line of code.
I'm not good enough in Python to be able to explain what is the difference between 3.5 and 3.6 in multiprocessing to know really what was the issue, sorry :(
from unsupervisedmt.
In my case, this might be caused by a mismatch between the pytorch version (compiled on cuda9.0) and the cudatoolkit version (10.0). I reinstalled the correct pytorch, cudatoolkit, and upgraded to python 3.7.7, issue gone.
from unsupervisedmt.
FYI, this issue was solved in Python 3.7 by this python issue (see the same stack trace there):
https://bugs.python.org/issue31069
It can likely be closed
from unsupervisedmt.
Related Issues (20)
- why MemoryError
- Why codes file is empty.? HOT 4
- for different language, where to make change?
- How to train NMT + PBSMT ?
- UnboundLocalError: local variable 'n_words' referenced before assignment
- About number of shared layers
- RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [14, 32, 1536]], which is output 0 of AddBackward0, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). HOT 1
- How to run PBSMT +NMT ?
- transformer multihead attention scaling layer error
- Setting the random seed does not result in same outputs across runs
- I have trouble when run get_data_enfr.sh
- How can I modify the code to train may own dataset on specific language?
- Low utilization rate of cuda HOT 1
- How to train the vector of phrases
- Low BLEU on PBSMT HOT 3
- bpe_end issue
- Getting raise EOFError() while executing Linux Command through Netmiko
- How i can run MUSE alignment in .sh
- How to train the model without para_dataset
- Error in runny bash command. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsupervisedmt.