: Approximately 4.27 GB (Full) or 2.13 GB (Pruned/FP16).
pipe = StableDiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", torch_dtype=torch.float16) pipe.to("cuda") image = pipe("a photograph of an astronaut riding a horse").images[0] image.save("test_output.png") print("Model works correctly.") runwayml stable-diffusion-v1-5 huggingface download
git lfs install git clone https://huggingface.co/runwayml/stable-diffusion-v1-5 cd stable-diffusion-v1-5 git lfs pull : Approximately 4
# Use 'float16' for lower memory usage (recommended for GPUs) pipe = StableDiffusionPipeline.from_pretrained( model_id, torch_dtype=torch.float16 ) runwayml stable-diffusion-v1-5 huggingface download
This usually means you haven't accepted the license (Step 1) or your authentication token isn't active.