My apologies. Seem to have found a solution - will document should anyone experience the same. Problem seem to originate from fastai and pytorch versions not matching. The below works better:
Hi @peter_zacho.
Does it means that it is better not to upgrade fastai to latest version (fastai 2.1.2 that works with pytorch 1.7) and stay with a version of fastai (2.0.18 for example) that worked well with pytorch 1.6?
I’m no expert but I’ve not been able to make it work with pytorch 1.7 on Colab so far. I’m getting the error
“the nvidia driver on your system is too old (found version 10010)”. Then I’ve tried different combinations as described on https://pytorch.org/, e.g.
Just for completeness - will document should anyone experience the same problem. Thanks to Jeremy’s recent release of fastai 2.1.3 the problem seems to have been resolved. I now am able to use pytorch 1.7 at Colab:
Hello ! Did the upgrade to fastai 2.1.4 work okay for you ? I had the same issues as you but when I switched to fastai 2.1.4 with pytorch 1.7.0, I encoutered this issue during training
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [2, 10]], which is output 0 of TanhBackward, is at version 1; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!