- Joined
- Oct 20, 2019
So I grumbled and moved a whole lot of partitions around and installed Ubuntu as a dual boot. Got to be honest, it was kind of nice to be back in Linux land and not have to fight the system to avoid seeing ads in the start menu. I'm half tempted to stick with it as my default. I used to have Gentoo as my default OS so Ubuntu is easy-mode.
Anway, to the point:
I don't doubt your recollection. It may be that there are significant boosts in speed with more recent ROCm versions - it's progressing at pace. And there might be other factors. I still hope they release v6 for Windows soon if for no other reason that I'd like to see what the same software does on Windows and if there's a difference. But I'll probably keep my Linux install around for a while either way - Microsoft have made some big strides with WSL2 in terms of making Windows developer friendly but it still couldn't compete with how easy it felt getting all the right versions lined up on Linux.
Anway, to the point:
I just had to satisfy my curiosity and see what the difference really was. And there may be other factors but it looks like the difference is big. First off though, this was with ROCm 6.0.2 which I needed for Radeon 7900XT support. Or least ways I had to break with the default version of 5.4 in Ubuntu 22.04 because that didn't support it. So after some merry old fiddling around with libraries and finding that PIP got its knickers in a twist about installing things in the right order, I was up and running and boy was it fun - from 3s/it with DirectML (on Windows) up to 2it/s with ROCm on Linux. Sometimes less, around 1.2it/s but either way I was seeing consistent minimums of 3x the speed. I could get a 1024x1024 SDXL image in around 20seconds. I didn't do serious benchmarking but I was typically doing around 40 steps. So more steps and < 1/3rd the time as well.Yeah I dunno. I can't speak on how much faster ROCM will be for you. I just didn't think DirectML would be that far behind. In my own experience, ROCM on my RX 570 was only like, single digit percentage faster than DirectML. I just stopped using Linux for inference because I couldn't update my packages without also updating ROCM to a version that no longer supports my ancient card. (RIP) So just mess around from time to time on Windows generating 704x704 images in 30 seconds or so on SD 1.5-based models.
I don't doubt your recollection. It may be that there are significant boosts in speed with more recent ROCm versions - it's progressing at pace. And there might be other factors. I still hope they release v6 for Windows soon if for no other reason that I'd like to see what the same software does on Windows and if there's a difference. But I'll probably keep my Linux install around for a while either way - Microsoft have made some big strides with WSL2 in terms of making Windows developer friendly but it still couldn't compete with how easy it felt getting all the right versions lined up on Linux.