Skip to content
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

Pytorch Jupyter Cuda Support #997

Closed
3 tasks
tlok666 opened this issue Nov 22, 2020 · 5 comments
Closed
3 tasks

Pytorch Jupyter Cuda Support #997

tlok666 opened this issue Nov 22, 2020 · 5 comments

Comments

@tlok666
Copy link

tlok666 commented Nov 22, 2020

Configuration

  • Version of DeepDetect: v0.11.0
    • Locally compiled on:
      • Ubuntu 20.04 LTS
    • Docker GPU 2 TITAN Xp

Your question / the problem you're facing:

I have tried jolibrain/deepdetect_gpu_torch:latest and jolibrain/deepdetect_gpu_torch:v0.11.0
but none of them works on pytorch cuda
How could I make it work?
image

@sileht
Copy link
Contributor

sileht commented Nov 23, 2020

Hi, the docker images of deepdetect provide a REST API on top of different machine learning libraries, they are not jupyter distributions.

When you do

import torch
torch.cuda.is_available()

There is no involvement of deepdetect here, you are just loading the pytorch version shipped with your Jupyter.

I'm not sure about what you trying to achieve. Did you install the complete deepdetect platform ? Or is it your own installation of Jupyter?

@tlok666 tlok666 closed this as completed Nov 23, 2020
@tlok666 tlok666 reopened this Nov 23, 2020
@tlok666
Copy link
Author

tlok666 commented Nov 23, 2020

I installed the complete deepdetect platform. The docker was installed under the guidance below.
image

And the Jupyter was started from the deepdetect website. 127.0.0.1:1912

Do you mean the pytorch version shipped with the docker of jolibrain/jupyter_dd_notebook ?

Hi, the docker images of deepdetect provide a REST API on top of different machine learning libraries, they are not jupyter distributions.

When you do

import torch
torch.cuda.is_available()

There is no involvement of deepdetect here, you are just loading the pytorch version shipped with your Jupyter.

I'm not sure about what you trying to achieve. Did you install the complete deepdetect platform ? Or is it your own installation of Jupyter?

@tlok666
Copy link
Author

tlok666 commented Nov 23, 2020

I am a new starter of deepdetect, I was trying to use the complete dd_platform to train and forward PyTorch models. So, I installed the complete dd_platform and start the JupyterLab from the website.

When I use the 'torch.cuda.is_available()' in the JupyterLab, I found it is not supported.

Besides, in the Predict page. The Pytorch mllib is still not supported yet?

@sileht
Copy link
Contributor

sileht commented Nov 23, 2020

The user of our platform does their machine learning works with deepdetect, and not directly with the underlying ml lib.
That why this doesn't work out of the box.

I opened a PR to add access from Jupyter to the GPUs here jolibrain/dd_platform_docker#45.
It can be useful for debugging, but nothing more.

@tlok666
Copy link
Author

tlok666 commented Nov 23, 2020

Thanks. jolibrain/dd_platform_docker#45. solves my question.

For the ml lib, I think this is another question. How to use Pytorch in the 'Predict services'.

@tlok666 tlok666 closed this as completed Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants