Your model might be too big for your device. It’s a bit weird that you are seeing this error after calling model.cuda(), as this would mean that your model parameters are using more than 11GB.
Could this be the case?
If not, make sure that your GPU memory is free before running the script (check it via nvidia-smi).