ORT dist - Use dispatch() for SD 1.5, SD Turbo and Whisper Base - #56
Conversation
|
@ibelem @fdwr I am seeing a considerable slowdown in the sd-turbo performance with unet inference times going from 100ms to 1000ms. this happens when changing from 1.20.0-dev.20240927-b81e76b9a6 (or 1.20.0-dev.20240919-bd60add8ce used here before this commit) to 1.20.0-dev.20240928-1bda91fc57 (or later including 1.21.0-dev.20241109-d3ad76b2cf of this commit and the latest 1.21.0-dev.20241127-b930b4ab5b). The main change seems to be the dispatch() change in ORT. I did not change anything in the code other than the ORT version. |
|
eyaler Thanks for the report! What's your detailed test environment? We looked at the performance gap between compute() and dispatch(), but didn't see a 10x performance drop when comparing the daily performance test reports for unet models. Did you clear the cache/memory when compare the performance?
|
|
AMD Ryzen 7 6800H not sure about clearing cache/memory - what is the recommended procedure? i did switch ORT versions back and forth multiple times and could consistently see the performance differences correlated with the compute/dispatch change for the UNET (as well as the VAE encoder in my im2im fork) |
|
Thanks @eyaler , I just wanted to check if you are under clean test environment (e.g. no other tabs openned or no other backgound heavy applications are running) since there is a knonw memory increasing issue for Tab (blink process). We don't have RTX 3070 Ti Laptop but the RTX 4070S, the first and second inference times are:
ONNX Runtime Web: 1.21.0-dev.20241122-a2ba3cb547 dispatch() Considering the performance gap between 3070Ti Laptop and 4070S, the ~26ms is the expected results on 4070S. Have you tried on https://microsoft.github.io/webnn-developer-preview/demos/sd-turbo/ directly? Thanks! |



Update latest dev version of ORT dists which support dispatch() for SD 1.5, SD Turbo and Whisper Base demos.
@fdwr PTAL