Torch not able to utilize GPU ram properly

Please tell me how CUDA_VISIBLE_DEVICES can solve Tyan’s problem. I encountered the same problem. Why do I need to configure CUDA_VISIBLE_DEVICES? Can you help me?