People massively underestimate the front end and it really shows that you never worked on a serious front end. I find it a million times easier to let a LLM generate a whole OpenAPI spec than even trying to get a slightly complicated component such as a "dropdown input field button hybrid" written by ChatGPT.
I'm sure you can do it by installing the ROCm drivers, install pytorch-rocm based on the download page for pytorch, and make sure to set any settings in environment variables.
you can try following my Linux AMD guide and see what you can pick and choose to get it working