Can anyone help me solve it?

RuntimeError: cuDNN version incompatibility: PyTorch was compiled against (8, 5, 0) but found runtime version (8, 4, 0). PyTorch already comes bundled with cuDNN. One option to resolving this error is to ensure PyTorch can find the bundled cuDNN.Looks like your LD_LIBRARY_PATH contains incompatible version of cudnnPlease either remove it from the path or install cudnn (8, 5, 0)

I’m unable to find the $LD_LIBRARY_PATH and remove multiple path appended.

Which PyTorch release are you using as I believe this error should not be raised anymore?
You can access $LD_LIBRARY_PATH in your terminal and can print it via echo $LD_LIBRARY_PATH.