-
Notifications
You must be signed in to change notification settings - Fork 41
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
fastdotai versus fastai username at Docker Hub #22
Comments
@jph00 I guess I need to deprecate the If you have any pointers, LMK or if you have an idea how to quickly make these containers on top of the @amy-tabb : If you want to use GPUs I would suggest sticking to the |
Just as some rough notes, the way I see people building CUDA containers currently in the wild is layering ontop of Nvidia's images, i.e. FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 The way I tried to circumvent this situation is by using conda's P.S. I had initially tried inheriting from
However, this did not seem to expose the GPU ( and yes, I made sure I ran docker with the |
Hi @hamelsmu thanks for the info. I have a tutorial for the current FastAI course using the If you happen to deprecate I have the pipeline for cuda too in the tutorial, install the drivers from NVIDIA and then NVIDIA-Docker. I'm working on another deadline, still have to check the tutorial + its links, but when I get back to it, will incorporate looking into cudnn. But -- I am getting all the Jupyter notebooks to run for Chapters 1-9 (had to stop) and |
@amy-tabb no problem will do. You can safely depend on We will tag you on this issue if there are updates. BTW thanks for doing the tutorial, I think myself and @jph00 would love to hear more about what you are working on and what kind of tutorial it is! |
Sure thing -- once I get everything checked I'll send it over. The main idea behind the tutorial is for someone who wants to run the 2020 FastAI course from their local machine, doesn't know anything about Docker, but maybe has some idea about installing things. (I don't go into all the GPU problems, though I have had some, i.e., a bad power supply.) The project was driven by my own constraints and preferences, and I documented it along the way -> tutorial. |
@hamelsmu small note, you don't have install cudnn separately if you have the NVIDIA driver and NVIDIA-Docker installed, because in pytorch, the cuda libraries are now included (the docs I could find are here ... would love a better reference) when using the binaries. (Building from source, yes, you need to install all of the NVIDIA libs yourself.) So with this testing program, import torch
from fastai.vision import *
from fastai.metrics import error_rate
print("Is cuda available?", torch.cuda.is_available())
print("Is cuDNN version:", torch.backends.cudnn.version())
print("cuDNN enabled? ", torch.backends.cudnn.enabled)
x = torch.rand(5, 3)
print(x) I get something like this, using the fastai-user@atabb-Precision-T7610:~/testing$ python3 test2.py
Is cuda available? True
Is cuDNN version: 7603
cuDNN enabled? True
tensor([[0.7559, 0.9504, 0.9759],
[0.7765, 0.6080, 0.1925],
[0.7885, 0.9641, 0.9562],
[0.4040, 0.7394, 0.5701],
[0.4912, 0.2765, 0.4441]]) |
Hi @hamelsmu here's the tutorial. Any bad links, bad info, type of feedback appreciated. I have redone it a few times now. It is live now, but other parts of my website don't link to it at the moment. |
👀 |
This looks great! Some questions - I see you have this:
However, the base image already comes with a script like this: Why do you choose to overwrite it? You might want to mention that you can run commands like a jupyter notebook without actually entering the container interactively (I find that many people do not realize this): Also you do not have to clone the fastai book and jupyter notebooks. Per the README Other random things:
Thanks |
@amy-tabb left some questions above, one more comment is perhaps go through the README of this repo you might find something useful (hopefully). Also let me know if you have any questions! Welcome to the fastai community 🎉 |
I don't overwrite Because the WORKDIR= I chose in this tutorial to use the I will add a detail about running not as bash, thanks. Ok, I will look into gpustat. Thanks for taking a look! I have some things to fix. |
That makes sense , thanks again for sharing! |
Hi @hamelsmu , don't know the Github etiquette for this. Should I close this, leave the issue open, something else? I don't need anything else : ) |
Ahh no reason to stress :). We aren’t dogmatic about these things. Thanks
for being so thoughtful :). Feel free to close the issue!
…On Fri, Oct 9, 2020 at 10:40 AM Amy Tabb ***@***.***> wrote:
Hi @hamelsmu <https://github.com/hamelsmu> , don't know the Github
etiquette for this. Should I close this, leave the issue open, something
else? I don't need anything else : )
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALKJEVC762LLXVUNJDZZHDSJ5DHZANCNFSM4SCBTDEA>
.
|
I'm playing around with these Docker images, by mistake I pulled
fastai/fastai
instead offastdotai/fastai
.There are links to both from this repo -- to
fastdotai
in the README, and on the right, tofastai
, but more occurrences offastdotai
in the README.Which is the preferred username to pull from? Thanks.
The text was updated successfully, but these errors were encountered: