Memore allocation error

I am facing memory allocation error in a chapter in deep learning course 2020
error: (OSError: [Errno 12] Cannot allocate memory)

    learn = cnn_learner(dls, resnet18, metrics=error_rate)

learn.fine_tune(2)

How much RAM do you have on your computer?
May want to reduce the batch size to 1 to validate that the model works.

Are you using a GPU?
If not, you may want to try using the free Colab infrastructure or other low cost cloud services.

I am using paperspace Gradient GPU Free-P5000 — NVIDIA P5000 GPU
I have tried colab also but fastai image search function not working there