Note that the latest fastai2 requires PyTorch 1.6. If you want to use an earlier version of PyTorch (e.g. I think Kaggle and Colab haven’t upgraded yet) use 0.0.20 or earlier.
Alternatively, you can install PyTorch 1.6 in Colab (and maybe Kaggle too) using the instructions in this link: