RTX 3090 graphics card driver version, CUDA version, cudnn version, tf and pytorch versions

Hi, i was working on to setup driver, CUDA, cuDNN, tensorflow, pytorch on RTX 3090, ubuntu 22.04 , driver 555. I have been facing lot of issues in trying to setup pytorch and tensorflow with CUDA 12.4 & cuDNN 8.9
please suggest which versions of these libraries would be compatible with RTX 3090.