Thanks for your previous reply. It inspired me to check the cuda version in colab. The cuda version I get in colab is 11.2. The problem occurs when I use PyTorch version 1.8.1+cu101 or 1.8.1+cu102, while it disappears in 1.8.1+cu111.