-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error importation cudnn #38
Comments
Hmm can you try "require cudnn" in a torch prompt (by command "th") and see if that works? |
sorry I meant entering "th" first, then in the prompt, enter "require cudnn" |
Oh I think it seems to be some issue with installing cudnn. Installing torch correctly might be hard, would you mind using docker? Here is a docker file that can be directly used: https://github.com/OpenNMT/OpenNMT/blob/master/Dockerfile |
Ok I didn't know about the existence of Docker, thanks for the tips it looks great! I have one more question if I succeed to launch this dockerfile. Then I can use the Lua language with file on my computer? or just inside the "container". Thanks you for the advice already ! |
For the first question, I think you need to put the dockerfile inside a folder, then inside this folder do For the second question, it allows using Lua inside docker container only. |
BTW, I think you might need to use nvidia-docker (https://github.com/NVIDIA/nvidia-docker) to support using GPUs inside docker container. |
Ok I succeeded to use |
I think it should be |
I wanted to install nvidia-docker but I needed to install NVIDIA driver first. but it seems that this step require Linux operating system and I am on MacOs .... but I was surprised because one good point for docker was that everyone can run it from every operating system ! Then I tried docker Moreover when I tried to see if the module 'cudnn' is in the system I get : I am still confused about how to approach the big picture... Can I import files into the container? Do I really need nvidia-docker ? Thank you again for your time @da03 . |
Hmm I suspect that your CUDA driver version might be too outdated (what's the output of |
On the link https://github.com/NVIDIA/nvidia-docker , they talk about Linux |
Oh no, so it seems |
I can't install on my mac because Nvidia doesen't support mac system anymore. I think the incompatibility is also mentionned there I am surprised of this CUDA/NVIDIA requirement to use the container though. |
Oh that explains why: this code (or cudnn) only supports CUDA and cannot run on systems without GPUs. While this version (https://opennmt.net/OpenNMT-py/im2text.html, code can be found at https://github.com/OpenNMT/OpenNMT-py) supports CPU only training, doing so would be extremely slow without the parallelism provided by GPUs. Another way might be using cloud computes such as Amazon EC2 or Google GCE or Microsoft Azure, and rent a GPU instance. |
I manage to get another computer but the GPU is AMD Radeon and so I can't use the cudnn module ... I think it should be mentioned on the prerequisites since docker can't solve this hardware issue. I was about to try CPU but I think that on the link you gave me (https://opennmt.net/OpenNMT-py/im2text.html) there is dependencies like torch vision and pytorch is required ( and so CUDA-enabled GPU are needed again no ? ) I try to follow the steps from https://opennmt.net/OpenNMT-py/im2text.html I will try to use cloud computes probably. But just to be sure ( correct me if I am wrong) :
|
Yes you are right that OpenNMT-py uses PyTorch and this project uses LuaTorch. PyTorch does not require GPUs (you can do CPU-only installation), but again, it might be extremely slow without using GPUs. For the onmt_preprocess missing issue, have you installed OpenNMT-py following the instructions here? https://github.com/OpenNMT/OpenNMT-py |
I had issues with onmt commands because I use python environment using google collab ( You can activate GPU on the settings and it seems to be a good free solution ) Is Using Google-collab a good way to perform GPU calculations ? I am trying to train the model, but it takes a lot of times, do you now how much ? |
Yeah I think so! The only problem is that the runtime would be disconnected if it's idle for a certain period of time, and the instance would be freed so all progress would be lost. Therefore, you might want to connect to your google drive, and save progress (checkpoints) to your google drive. |
when launching :
th src/train.lua -phase train -gpu_id 1
-model_dir model
-input_feed -prealloc
-data_base_dir data/sample/images_processed/
-data_path data/sample/train_filter.lst
-val_data_path data/sample/validate_filter.lst
-label_path data/sample/formulas.norm.lst
-vocab_file data/sample/latex_vocab.txt
-max_num_tokens 150 -max_image_width 500 -max_image_height 160
-batch_size 20 -beam_size 1
cudnn is not found....
I tried" luarocks install cudnn"
still doesen't work
The text was updated successfully, but these errors were encountered: