Check out keras-helper.. I made it to switch between various backend implementations which are non NVidia specific.
Pytorch may eventually need porting, but for now I don't need it. I've been trying out Coriander and DeepCL now but I decided to stick to Keras, which seems to be a decent compromise. Not using 2.4.x though, do not need it.
OpenCL based backends are cutting it for me, running production workloads without needing to install CUDA/ROCm is the best way to go.