I have a 2011 27" iMac with a failed GPU. I spent loads of time about a year ago looking into info on replacing it.
I ended up getting an NVIDIA K610M - IIRC, I'll need to at least flash it (blindly) and likely need to load OpenCore, so I can get backlight control (though, I'm not 100% sure...