Ubuntu 18.04, AMD 3700, RTX 3070 black screen after boot

I have a Windows 10 machine that I am trying to dual boot. I have installed Ubuntu 18.04 on my machine. My hardware is a AMD 3700 and an RTX 3070. I tried installing the graphics driver 460 and 465, but both give me a black screen after I boot. It doesn’t seem like any Nvidia settings work when I try to use nvidia-settings. Any ideas how to solve this? Thanks!