Training A Stable Diffusion Model