Moving the fastai 0.7 folder - do not use pip for the MOOC!


(Won Seob Seo) #23

Hi, sorry I forgot to put the link to my medium post! All my code is in screenshot if you read the medium post. Thanks!


#24

Hello, I’m new around here and have watched a few of the videos, am hooked, and I think what you’re up to here is amazing, so thank you!

I’ve got a question about the fastai library version. I’ve set up my own ubuntu dual-boot workspace, putting my 1080ti to more productive use than what I usually use it for… and have the old/0.7 version of the notebooks running smoothly. I’m sure that the general deep learning concepts from the now old version of the course are still just as valuable and I will go through them regardless, however I’m wondering about if at some point we can look forward to a new or updated version using the fastai 1.0 libray, considering it’s a from scratch rewrite? Do you think there is any harm at all in getting deep into the 0.7 course at this point? (just to be clear when I say old, I still mean the 2018 version, I say old because of the “old” wrapper version used in the course)


(Jeremy Howard (Admin)) #25

Yes, early 2019.

Still very useful - the concepts don’t change, and that’s what takes time to learn. Library changes are easy to learn.


(Sparsh) #26

Thank you for your work!!


#27

HI - thank you for all the work you have done. I am just starting and have seen the intro to Random Forests lesson 1. I am not sure how to proceed with library/version changes. I use the following code that I found in the forum to install fasai. Some of the libraries work, but I cannot get “from fastai.structured import *” (interested in the add_datepart function) to install. I see in the forum that the library has moved, but I am not sure what I need to do to access this “old” library.


#installs FastAI
#https://github.com/fastai/course-v3/blob/7dfe63de54daf2210f5b23f237e70ee246be5d0c/docs/google_colab_tutorial.md
from os.path import exists
from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag

platform = ‘{}{}-{}’.format(get_abbr_impl(), get_impl_ver(), get_abi_tag())
cuda_output = !ldconfig -p|grep cudart.so|sed -e ‘s/..([0-9]).([0-9]*)$/cu\1\2/’
accelerator = cuda_output[0] if exists(’/dev/nvidia0’) else ‘cpu’

!pip install torch_nightly -f https://download.pytorch.org/whl/nightly/{accelerator}/torch_nightly.html
!pip install fastai==1.0.28

import torch

print(torch.version)
print(torch.cuda.is_available())
print(torch.backends.cudnn.enabled)