>>106938740
You need a more recent build of pytorch that supports the 5000 series of cards.

Best to create a new venv to get a fresh install of pytorch instead of upgrading the old one.

Assuming you're on windows, check the attached image and follow the install steps for Auto1111 again but when it gets to the python install part..

1) https://pytorch.org/get-started/locally/
2) click the same options I've shown in the image
3) cut'n'paste the command it builds at the bottom of the table and run that instead.
4) continue rest of Auto1111 install