@philpax @BartWronski I don't know if this will solve the problem for you, but here's a rust version of stable diffusion
https://github.com/LaurentMazare/diffusers-rs
It uses tch-rs, which uses "py"torch, but only the c++ part of it (no python is involved). I've shipped binaries using tch-rs to other machines by just copying around a few `.so` files (the ones in the `/lib` of a pytorch tarball), but not to consumers, so I can't speak to what pitfalls there might be for that.
@gregmorenz @BartWronski Yeah, really excited about that! It's a huge step forward (no more Python in the deployment stack!)
Unfortunately, as you mention, it still requires you to ship Torch dependencies and/or ensure that the user has the correct version of CUDA.
Server-side deployment should be a lot simpler, but client-side deployment is still problematic :(