Cake: Distributed LLM and StableDiffusion inference for mobile desktop or server