I get this error while loading model weights of a previous epoch on Google colab. I'm using PyTorch version 1.12.0. I can't downgrade to a lower version as there are external libraries that Im using that require Pytorch 1.12.0
Thanks!
It seems related to a newly introduced parameter (capturable) for the Adam and AdamW optimizers. Currently two workarounds:
optim.param_groups[0]['capturable'] = True. This seems to slow down the model training by approx. 10% (YMMV depending on the setup).Source: https://github.com/pytorch/pytorch/issues/80809#issuecomment-1173481031
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With