Open DavidGOrtega opened 1 year ago
Mps performance is also quite bad, similar to WGPU
type Backend = TchBackend<f32>;
let device = TchDevice::Mps;
We need to review/profile if the stft (featurizer) is slow. I believe it was implemented manually and might be slow compared to specialized libraries.
thanks for the reply @antimora Im going to profile and see
I haven't yet prioritized optimization. Caching should speed up the inference significantly. I don't think the burn-wgpu backend has been significantly optimized yet. You might want to check with its maintainers.
As a TVM user Im very excited of this project because of the use of burn and its access to WGPU native. Personally speaking is the way to go. However my tests are very discouraging. WGPU seems to be performing worse than CPU
WGPU
CPU
the code was slightly modified:
Same 3X for tiny CPU vs tiny WGPU
Might not be optimised for my machine? It's not working maybe?