Where does the heat always go? It goes into the environment. In space the environment is space. It goes from high-temperature GPU made for space to a large metamaterial coated heatsink with optimal geometry to radiate into space.
That is a great question, and materials are still being researched to dissipate heat effectively in space. Meanwhile, I put together this brief video to document the current understanding: