Replies: 10 comments 25 replies
|
https://blogs.nvidia.com/blog/2023/05/23/microsoft-build-nvidia-ai-windows-rtx/
Optimize DirectML performance with Olive |
|
:-o Does |
|
"The stable diffusion models are large, and the optimization process is resource intensive. It is recommended to run optimization on a system with a minimum of 16GB of memory (preferably 32GB). Expect optimization to take several minutes (especially the U-Net model)." |
|
Let's see how it fares in real world usage. |
|
Yeah, I don't have much faith in this. "Olive" optimized means compiling model from Torch to ONNX and then using new ONNX backend with built-in tensor cores support. And if going down that path, I'd much rather support TensorRT directly instead of ONNX unless someone says that ONNX is next-best-thing and will completely surpass Torch in the near-future. Microsoft uses ONNX internally in Azure for ML-as-a-Service, so this makes nVidida a much more interesting choice for MS and I get why nVidida would do it (why wouldn't they?). |
|
I had a look this yesterday. |
|
I never got the Olive stuff to work on native Ubuntu. I have a theory that it is the ONNX intermediate stage that is messing up the quality during the conversion. I see many large values clamped to INT32 and subnormal FP16 value warnings. A1111 does crisp images using fp16. I don't see why a compiled TRT model using fp16 should be worse unless during certain intermediate processing some weights were screwed up. I can't get confirmation on this theory although I did post an issue on the onnx github. |
|
a test run on Windws: https://youtu.be/r-ZYOlZTLDA |
|
That's what I was going to ask... if the underlying technology can't just be harnessed without needing to go about this whole route. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Found this today: https://www.reddit.com/r/StableDiffusion/comments/13q4ku4/nvidia_2x_performance_improvement_for_stable/
This reads like its tensorrt but its coming straight from Nvidia. Models will need to be converted just like with tensorrt. Release tomorrow
Apparently AMD cards support it too: https://gpuopen.com/amd-microsoft-directml-stable-diffusion/
All reactions