Procedure

  1. Sign in to your KAGGLE Account
  2. Go to Kaggle → Sign in or Create your Kaggle account.
  3. Create a new notebook
  4. Click on the create (+) icon on the top-left corner of the page → Select “New Notebook” to open a new Kaggle Notebook Editor.
  5. Enable Internet and GPU Access
    • Since by default, the GPU is disabled. To enable it follow the given steps: Click on the sessions option on the bottom-right corner
    • →Verify your phone number (if already not verified).
    • →Enter the verification code sent to your phone number.
    • →Once verified, turn on the internet tab and enable GPU access.
  6. Select GPU Accelerator
  7. Click on the settings tab at the top of the notebook → Click on the Accelerator Option → Choose GPU-P100 from the given options.

Alternative Procedure

Accessing T4 GPU using Google colab.

  1. Open Google Colab
  2. Go to Google Colab → Sign in with your Google account → Create a new notebook or open an existing one.
  3. Enable GPU Acceleration
  4. In your Colab notebook, click on Runtime in the top menu → Select Change runtime type from the dropdown menu → A pop-up window will appear → Under Hardware accelerator → select GPU from the dropdown menu → Click Save.
  5. Verify GPU Availability
  6. import tensorflow as tf
    # Check if GPU is available
    if tf.test.gpu_device_name():
        print('GPU found:')
        !nvidia-smi
    else:
        print('No GPU found. Check your settings.')

    This will display information about the GPU (e.g., Tesla T4, K80, etc.) if it is available.