lda2vec icon indicating copy to clipboard operation
lda2vec copied to clipboard

when no CUDA, it takes ages to run twenty newsgroup example

Open elisehuard opened this issue 8 years ago • 5 comments

Without CUDA, it's absolutely single-threaded, and that means that even on my machine which is reasonably recent with Intel Core i7 processor, it takes about 5 days to run the 200 epochs.

elisehuard avatar Aug 01 '16 08:08 elisehuard

That's correct. Same here. Everything hangs on CUDA to pass on the computation-intensive tasks to GPU for faster computing. I had found it impossible to enable multithreaded + GPU computation with lda2vec on my Windows computer. Others say that in a Linux-based system and/or in a distributed computing cloud you can correctly install all the dependencies.

radekrepo avatar Aug 01 '16 12:08 radekrepo

What is the issue here? That it is not optimized? As far as i know it's normal for a non-cuda training to take several days on a CPU.

AdrianTudC avatar Jun 26 '17 14:06 AdrianTudC

how you guys get the result, I am confusing how can I run the code to see the output. except in examples/twenty_newsgroup/lda2vec/lda2vec_run.py which I got the error for cuda environment setup, most files run successfully. I want to apply on another dataset and see the result, would you please tell which files should I run in order?

Thanks:)

un-lock-me avatar Jun 06 '18 05:06 un-lock-me

Hi you all! I'm also having problems setting up the CUDA environment. Can someone help us with that issue?

that's what a get by after installing: pip instal chainer==1.5.1

Thank you in advance..It's really important to me make lda2vec work in my system...

File "lda2vec_run.py", line 23, in cuda.get_device(gpu_id).use() File "/home/xxxx/.conda/envs/entorno/lib/python2.7/site-packages/chainer/cuda.py", line 159, in get_device check_cuda_available() File "/home/xxxx/.conda/envs/entorno/lib/python2.7/site-packages/chainer/cuda.py", line 82, in check_cuda_available raise RuntimeError(msg) RuntimeError: CUDA environment is not correctly set up (see https://github.com/pfnet/chainer#installation).cannot import name core

acdf-pue avatar Jun 08 '18 10:06 acdf-pue

Well obviously you didn't set up your CUDA environment correctly. First set it up correctly and then lda2vec_run.py will work correctly.

AdrianTudC avatar Jun 12 '18 07:06 AdrianTudC