RuntimeError: CUDA out of memory

I tried to execute the chexnet code of github but failed. (code github address:https://github.com/arnoweng/CheXNet )
error message is as follows:
RuntimeError: CUDA out of memory.
So I reduced the batch size to 8. However, the same error still occurred. Is there another way to eliminate this error?